08-01-2011 12:23 PM
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!
08-01-2011 01:19 PM
Hello,
I've attached a snippet and an updatesd version of your code.
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
or use a Digital output task
08-02-2011 12:27 PM
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.
08-02-2011 03:12 PM
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
08-03-2011 07:47 AM
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.
08-04-2011 02:47 PM
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.
Regards,
Brian P.