Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

6723 AO railed to 1V

I'm trying to turn on the Analog Output for the 6723 to output 5V but the voltage is pegged at 1V.  I noticed that in the DAQ Assistant properties that the VoltageOut value is set at 1.1.  Does this mean that the voltage will stay at 1.1V?  I've updated the value to 5 but it doesn't save the value.

 

I'm using this as a relay control from a boolean button on the Front Panel.

 

Attached is the vi that I was playing with to get it to work.

 

Thanks in advance!

0 Kudos
Message 1 of 6
(3,309 Views)

Hello,

 

I've attached a snippet and an updatesd version of your code.

1.png

I revised the DAQ Xvis to look for scalar doubles .  Casting a BOOLEAN to Dynamic data gives eithe a 0 or 1 value you really needed a double.  If you need just 0 or 5 volts you can edit the slider propertys to only use those values like this

1.png

or use a Digital output task


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(3,303 Views)

Thanks Jeff, that helped out a lot.

 

I also found that you can use a Boolean if you embedd it into an Array.  This allows you to use it as a switch or push button to turn on the digital output instead of using a slide.

 

 

 

0 Kudos
Message 3 of 6
(3,288 Views)

sterr wrote:

I also found that you can use a Boolean if you embedd it into an Array.  This allows you to use it as a switch or push button to turn on the digital output instead of using a slide.



An array of bools makes very little sense here- the task configured is single sample on demand Analog Output.  I can see where you would desire to have 5V out with Bool = T else output 0V.  LabVIEW has a comparison palatte for just these things.  Try something like this

2.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(3,274 Views)

I have another question for you...

 

If I want to control individual outputs from different buttons, do I add that into the loop also?

 

In other words, if I wanted to activate one relay and then activate a seprate one but have overall control with an emergency shutoff button.

0 Kudos
Message 5 of 6
(3,265 Views)

Sterr,

 

If I understand your question correctly, you would like to use different buttons to control different output channels.  In order to do this, yes you would have to have to put the other buttons in the loop and then build an array of all of your data and put it in to the DAQ Assistant.  You would then have to create the channels in your DAQ Assistant that you would like to output.

Analog Output.png

 

Regards,

 

Brian P.

Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,248 Views)