Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Turn voltage output of NI 9263 on and off using DAQ assistant.

Something doesn't make any sense. You wouldn't be doing something like using the run continuous button on the toolbar, would you? If you are, don't do that. The way you have your last program, after pressing first the on button and then the stop button, the program should stop completely. Run continuous should be only used for occasional purposes and never in a case like yours.
0 Kudos
Message 11 of 15
(3,761 Views)
I have to agree with Dennis.  The vi I posted was not intended to be run continuous.  I've modified my vi slightly to make a bit more sense for your application.  While the while loop is running, you should be able to turn the output on ( 5V ) and off ( 0V ) using the FAN button.  The while loop will continue writing to the output every 100mS until you press the stop button.  After the while loop stops running, the output will be turned off and the DAQmx task cleared and any errors will be displayed.
0 Kudos
Message 12 of 15
(3,748 Views)
Thanks I'll give this a try. If I still need help I'll let you know.
0 Kudos
Message 13 of 15
(3,738 Views)

Hi,

 

I'm new to Lab View and its hardware. I need to control 2 Solid state relays to turn on/off voltage for a device. Can someone help me with its setup and sample vi's? Like I said I'm new and need a head start configuring vi's and programming. I have an USB NI-9263 4 channel output device. My relays are made by GrayHill model 70-ODC5. I also have a 12~15 volt regulated power supply.

 

Also I need help controlling voltage levels without a programable power supply. Basically 1.5V, 1.4V, 1.3V, 1.2V, 1.1V, 1.0V, 0.9V.........decenting pattern. to achive this what do I have to do? Please provide me all the options. thanks

 

0 Kudos
Message 14 of 15
(3,475 Views)

Hello,

 

There are a few things to consider if you want to control relays:

 

(1) If the relay takes a digital TTL signal (5V, 0V), then you can use digital output. You can find examples of this here: LabVIEW » Help Menu » Find Examples... » Browse Tab » Hardware Input and Output » DAQmx » Digital Generation. The Write Dig Chan.vi is a good place to start to write a High (5V) or Low(0V) to a digital port.

 

(2) If you would like to output random DC Voltage values like 1.5V,1.5V, 1.4V, 1.3V, then you will want to use analog generation and output a DC value. Checkout the Analog Generation section of the Example Finder (location above) for Analog Generation examples. Additionally, the example below should output voltage values like you want:

 

Generate DC Voltage - Software Update

 

Regards,

Aaron

National Instruments
0 Kudos
Message 15 of 15
(3,455 Views)