Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dll for Kit
#8
Probably cannot be opened/closed two times in process. For easier testing, run in separate process.

or

Macro Macro1569
Code:
Copy      Help
out
dll K8055D
,#OpenDevice CardAddress
,CloseDevice
,OutputAnalogChannel Channel Data
,WriteAllDigital Data
,ClearAllDigital

int+ g_kit
if(!g_kit)
,g_kit=OpenDevice(0)+1
,if(!g_kit) end "error"
,;or put this code in a function that runs at startup

WriteAllDigital(9)

;CloseDevice ;;call it when QM exits, for example in a function with trigger "QM events -> file unloading", or from a destructor of a global variable.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)