10-19-2011 10:07 AM
I need help configuring hardware, drivers, and software for the following triggered analog input application. I am using NI-DAQmx drivers and programming in VB 2008. I want to read the analog voltage when triggered by the prox. I want this process to run continuously until user stop (about 20 minutes).
Trigger: 24vdc prox switch, approx 12-15 pulses per second; duration ~ 2ms
Analog input: 0 - 10 vdc
I have the following hardware at my disposal:
cDAQ-9178
NI-9219 4ch 24-bit AI module
NI-9425 8ch, 30v DI module
Alternatively, I could use
USB-6251 with SCC-2345 (SCC-DI01 module)
Any guidance you could provide is greatly appreciated. Sample code would also be great.
Thanks!
10-20-2011 07:54 PM
As long as you have DAQmx installed on the computer you should have many examples available to you,
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37?OpenDocument#vb6
Follow the link and select Visual Basic and it will tell you the file path where the examples are stored.
Granted the examples are for VB 6.0 but hopefully they will still work for you.
Good luck.