Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6009 DI/O CreateDOChan with Delphi?

Hi all,

I 've been trying to configure the DI/O of my USB 6009 with Delphi (I know NI does not support Delphi officially).
I can create a task , use the analog channels for input and output without any problem,  but when it comes to digital, the system just hangs.
By playing with the error code I narrowed down the error to the create DOChan line. It is probably a syntax error, but I can't find it.
here is the line:
ret:= DaqMxCreateDOChan(hdl,'dev1/port0/line1','',Dqmx_ValChanforalllines);

I want to be able to open 1 line or a range of line, but this syntax does not seems to work

Can anybody help?

Best regards,
Cedric

0 Kudos
Message 1 of 2
(3,363 Views)
answeing my own thread here: sorted, needed a break from the PC to realise I was missing some allocated memory for a pointer!!! Dhoo!
0 Kudos
Message 2 of 2
(3,352 Views)