hi Billr,
1.yes the setup.exe works fine and everything lights up like it should but its very limited in any user control.
2.The answer to that question is yes, Those commands are only opening the K8055.dll library file and looking inside it to see if those commands exist. If the command exists inside the dll file it prompts me with a yes.
3.yes i really need to make indenting the code a habit, sorry
i've indented the code.
cls
print "loading DLL link File....." : print
load dll "K8055D.dll",1
if dll exist(1)=1
Print "Yes DLL File K8055D does exist...."
endif
print : print
if dll call exist(1, "OpenDevice")=1
print "okay, OpenDevice Command does exist." : print
else
print "Sorry OpenDevice Command does not exist." : print
endif
if dll call exist(1, "SetAllDigital")=1
print "Yes, SetAllDigital Command does exist." : print
else
print "Sorry that Dll Function failed too!" : Print
print "Deleting DLL...." : print : print
delete dll 1
print "not loaded. press any key to end program"
wait key
end
endif
print "Starting to initialise Interface Card.."
print "Turning on Card Address..."
call dll 1, "OpenDevice",(0)
print "device initialised.."
Print "Turn on all channels"
rem: call dll 1, SetAllDigital
wait 2000
print "Turn all Channels off"
wait 2000
call dll 1, "ClearAllDigital"
wait 2000
print : print : print
Print "This next section is a demonstration section i added to pulse across the screen to test this board"
wait 3000
print
for x = 1 to 5
for t = 1 to 7
call dll 1, "SetDigitalChannel",(t)
wait 500
call dll 1, "ClearDigitalChannel",(t)
next t
next x
print "test 1 completed"
wait 1000
call dll 1, "ClearAllDigital"
for x = 1 to 5
for t = 1 to 7
call dll 1, "SetDigitalChannel", (t)
wait 500
call dll 1, "ClearDigitalChannel", (t)
wait 500
next t
next x
print "test 2 completed"
wait 1000
print "closing device"
call dll 1, "ClearAllDigital"
call dll 1, "CloseDevice", (0)
delete dll 1
print "press any key to end program"
wait key
end
thanks for the pointers