07-07-2020 03:32 AM
Hello,
I have a cDAQ-9174 and I am looking to control valves with Labview.
I found about 10'000 videos on youtube about how to acquire sensor or thermocouples data with Labview.
But me I want the opposite : how to control valves and how to emit 0...10 V signal
Any youtube video or thing that could help me ? I start from scratch. Thanks a lot
07-07-2020 03:55 AM
07-07-2020 04:47 AM
Thanks GerdV,
Actually I did, but the example file "Voltage - Continuous Output" is just a hyper-complicated version of what I would like.
I have the constant 5 in labview by example. I want to emits 5 volt. that's it.
I have DAQ assistant. I can open it, => Generate Signal => Analog Output => voltage. Then I choose my channel on my NI 9263.
And ... that's it ? Will it works ? Is there a place on internet where I can learn this ?
07-07-2020 04:59 AM
Actually I found this excellent tutorial :
http://www.ni.com/tutorial/4656/en/
it's pretty clear but is for input, not output like in my case. 😕
07-07-2020 06:22 AM - edited 07-07-2020 06:25 AM
Hi Oxbow,
@Oxbow8 wrote:
Actually I did, but the example file "Voltage - Continuous Output" is just a hyper-complicated version of what I would like.
I have the constant 5 in labview by example. I want to emits 5 volt. that's it.
I have DAQ assistant. I can open it, => Generate Signal => Analog Output => voltage. Then I choose my channel on my NI 9263. And ... that's it ? Will it works ?
That example VI really isn't "hyper-complicated", not even "usual complicated": it configures a AO channel and outputs a waveform.
When you need an even simpler example you should look at the "Voltage output - on demand output" example!
Did you test your DAQAssistent? Does it work as you want? This is a one-minute test, so what are you waiting for?
(I usually don't recommend to use ExpressVIs like the DAQAssistent. They usually do more stuff than needed, and hide relevant parameters from the programmer.)
@Oxbow8 wrote:
Is there a place on internet where I can learn this ?
NI still offers the self-paced online training courses for free. There also is a DAQmx course available!
07-07-2020 06:48 AM
Try this: Getting Started with NI DAQmx . I believe it contains my favorite White Paper -- "Learn 10 Functions in NI DAQmx ...".
Note that you need to consider the current needed to drive something like a valve. Talk to an Engineer ...
Bob Schor
07-07-2020 08:06 AM
I am the author of the topic (just switched account),
So, my valve is plugged, running and configured to receive between 0...10V.
If it receives 10 V it is completely open. 5 V half open. 0 V closed. etc.
It is linked with a NI 9263 (basic analogic output, 0...10V)
I just want to send 2, or 5 V by example.
Here is what I have : I have a number between 0...10 in Labview and want to use that DAQ assistant to convert that in voltage. I have created a DAQ assistant with a 0...10 V range, digital output on the right channel of my NI9263. When I clicked "Run" it didnt do anything. So I am stuck now.
07-07-2020 08:18 AM
@Oxbow88 wrote:
Here is what I have : I have a number between 0...10 in Labview and want to use that DAQ assistant to convert that in voltage. I have created a DAQ assistant with a 0...10 V range, digital output on the right channel of my NI9263. When I clicked "Run" it didnt do anything. So I am stuck now.
But you didn't wire up your data to the DAQ Assistant. It would also help a lot more if you posted your actual VI instead of just an image. We cannot verify your DAQ Assistant settings or see what your other cases are.
07-07-2020 08:33 AM
The file can be just a number.
Take an empty vi, add the constant "4" or "6" and you have the code.
Now I don't understand to convert the "4" (or "6") to 4 V (or 6V) via the DAQ assistant.
I oppened the DAQ assistant, click Generate Signal => click Analog Output => click voltage => the channels of my NI 9263 display (ao0, ao1, ao2, ao3) and I select ao0 where my + and - are wired to control the valve. Then next. I have a graph of a wave. If I click run nothing happens. And that's it.
I don't know what to do next. I jointed a file. Thanks so much if someone can help 😕
07-07-2020 08:39 AM
1. Again, you have to wire your voltage to the DAQ Assistant "Data" input.
2. You should probably set the Generation Mode to "1 Sample (On Demand)".
3. You might be running into hardware limitations. What module are you using to output the signal and what valve are you using?