Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to program PCI-6509 with Delphi7?

Could you please tell me how to control relays using the PCI- 6509 , I am newbie and I am using the Labwindows/CVI for this purpose.

Mehar
0 Kudos
Message 11 of 14
(1,899 Views)
Hello niko72
 
I Just buy PCI-6509 Board, I want to uses for delphi, But i don't know how to
put any DIO at high level or at low level and read the level of any DIO,
 
Can you show me example delphi code for uses  'DIO6509.DLL'
 
Thako you very much for your help!
 
Montree.
0 Kudos
Message 12 of 14
(1,758 Views)
Mehar,
The shipping example ContWriteDigPort-Ext Clk is a good place to start.

Montree,
This KnowledgeBase has a wrapper files for NI-DAQmx 7.4 and 8.0.  Note that NI does not officially support Borland Delphi in the NI-DAQmx driver.

Regards,
Micaela N
National Instruments
0 Kudos
Message 13 of 14
(1,744 Views)

I had used the function in Delphi this way:

 

 

DAQmxCreateTask('', @taskHandle);

DAQmxCreateDOChan(taskHandle, 'Dev1/port4/line0:7', '', DAQmx_Val_ChanForAllLines);

DAQmxWriteDigitalLines(taskHandle, 1, 1, 10,DAQmx_Val_GroupByChannel, @writeArray[0],@sampsPerChanWritten, nil);

DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);

 

 

 

or

 

DAQmxCreateTask('', @taskHandle);

DAQmxCreateDIChan(taskHandle,'Dev1/port0/line0:7','', DAQmx_Val_ChanForAllLines);

DAQmxReadDigitalLines(taskHandle, DAQmx_Val_Auto, 10.0,DAQmx_Val_GroupByChannel, @readArray[0], 8,nil, nil, nil);

// Save your information here

 

//

DAQmxStopTask(taskHandle);
DAQmxClearTask(taskHandle);

 

 

 

 

0 Kudos
Message 14 of 14
(1,054 Views)