From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-27-2013 08:06 AM
Hi all,
I'm very new to using LabView and NI devices, so pardon me if my question seems dumb.
I have a NI USB-6501 DAQ that I would like to use to connect to a device that will open or close a lid when triggered.
My question is: Is it possible to programmatically trigger the voltage output of the USB-6501?
I'm using LabView for this and I'm running on Windows 7. I couldn't find basics examples on LabView that were related to the voltage output for the USB-6501.
Any help would be really appreciated, thanks in advance
Solved! Go to Solution.
08-27-2013 08:40 AM
08-27-2013 08:45 AM
That's where I looked, I am currently using the "Write Dig Chan.vi" example, but I can't make it work so that it produces the behaviour I want.
Basically I would like to switch the voltage on and off programmatically.
Thanks for your insights.
08-27-2013 09:15 AM
08-27-2013 10:13 AM
Thanks for your replies.
Actually my problem was that I wanted to shut the output voltage of all the pins. I managed to do this by using the example and adapting it.
08-27-2013 12:36 PM
You'll want to use DAQmx Write. Single channel, single sample boolean for one line.
Look at the example code, there's several examples on how to read and write various formats (booleans, array-of-bools, ints) to the lines/ports.
08-28-2013 02:07 AM - edited 08-28-2013 02:08 AM
Thanks for your replies.
After some modifications the example "Write Dig Chan" helped me get the behaviour I wanted, namely switching on and off a connected device.