Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading PCI-6023E counter by Delphi/NI-DAQ

One current goal of mine is to read out the counter of a NI I/O board PCI-6023E by Delphi/NI-DAQ! But I don't get it work.

I am interested in having a Delphi code using NI-DAQ commands *without ActiveX components*. At NI support doesn't exist yet any example code in Delphi using NI-DAQ just commands.

What part is missing in my code "PCI6023E_Counter.pas"?
http://www.home.fh-karlsruhe.de/~egra0011/Projects/SIM
The "same" prog in VB works fine! Do the NI-DAQ commands/drivers work with Delphi? Thanks.
0 Kudos
Message 1 of 4
(5,838 Views)
Rawi,

NI-DAQ provides a function prototype for Borland Delphi, so NI-DAQ function calls should work fine in that environment. Your program seems to be correct. However, you don't state why it's not working, and I've noticed that you don't seem to be checking the iStatus return value for an NI-DAQ error. You might want to check to see if an error is being returned. That could point you in the right direction. If you continue to have problems, I would recommend contacting National Instruments support for troubleshooting assistance.

Also, the counter/timer developer exchange is targeted towards 660X and TIO-10 counter/timer products. The PCI-6023E is a multifunction I/O board, and in the future, you may want to consider posting your inquiries to the multifuncti
on I/O exchange for assistance.

Regards,
Erin
0 Kudos
Message 2 of 4
(5,837 Views)
Have you tried using the constants in nidaqcns.pas.
ND_COUNTER_0...? instead of 0
0 Kudos
Message 3 of 4
(5,837 Views)
Have you tried using the constants in nidaqcns.pas.
ND_COUNTER_0...? instead of 0
0 Kudos
Message 4 of 4
(5,838 Views)