12-11-2006 01:46 PM
12-11-2006 02:06 PM
12-11-2006 02:35 PM
12-12-2006 12:36 PM
Hello kirkland.
Thank you for contacting National Instruments
From what I am reading, you would like to toggle voltage between 5 volts and 0 volts at your discretion to power an actuator. I would recommend using a digital line instead of an analog output to control your actuator for this application. Since digital lines are by default 5 volts when high and 0 volts when low, it will make for easier development on your end. I actually created a quick example program in LabVIEW 8.2 that can do exactly what you desire. I used the exact same hardware you have (PCI-6251 and SCB-68) to test this program. The program outputs either 5 volts or 0 volts on port 0, line 0. The level of the voltage can be changed by the user by simply clicking on the boolean control "data" on the front panel of this VI. Port 0, line 0 corresponds to pin 52 on the 6251 and thus pin 52 on the SCB-68 since the SCB-68 maps 1 to 1 on all pins of the 6251. So, if you connect a wire to pin 52 and one to pin 53 (digital ground), you should measure 5 Volts between these two pins when the program is running and the boolean control is true. If you change the boolean control to false (off), 0 volts will be measured between pins 52 and 53.
Let me know if this answers your question and helps your application be successful. If my statements require additional clarification or spur new questions, please do not hesitate to ask!
Have a great day!
Brian F
Applications Engineer
National Instruments
12-12-2006 12:37 PM
Brian,
Thanks for making the VI, but is there any way you can save it as version 8? I have yet to upgrade to 8.2
Thanks
12-12-2006 12:51 PM
10-12-2011 07:02 PM
Hello,
I have tried the program above on the 6009 oem but it does not work. I connect the positive lead of a voltmeter to P0.0 and negative lead of the voltmeter to D GND. Before I ran the program, the voltmeter readout was -5.06 V and does not change even though I toggle the "data" button on the front panel. I am trying to output a 5V signal to control a relay and am not sure why the program isn't working. Please help.
10-13-2011 05:40 PM
Can you check if you're writing to the correct channels? That can be a problem when using other code.