08-28-2014 08:34 PM
Hello everyone, we are now using Labview for our project but we are facing a problem.
In our project, we use DAQmx Virtual Channel for our I/P(input) and O/P(output). For we need to compare the value get by I/P so I connect the DAQmx Read to our I/P and set it to 1 channel multiple samples. But the value come from DAQmx Read remins at 5.38V, even though I change the value to I/P.
Could anyone tell me where is wrong with my vi. ?
And this program is to control 1 relay, what if I want to control 2 relays separately ? How can I combine these two program together? I try to use two paralle while loops or one loop with 2 signals but both of them cannot work...
Please help me! Thank you!!!!
08-28-2014 09:22 PM
08-28-2014 09:52 PM
Here is my block diagram
08-28-2014 10:06 PM
08-28-2014 10:52 PM - edited 08-28-2014 11:15 PM
Er...I'm a very beginner for Labview. This my first time to use DAQmx.
At first I used DAQ assistance to get my input, but we decided to use DAQmx Virtual Channel for people can choose the channel from front panel directly. The I/P is used to get voltage from our power source, as we need to use voltage to get our SOC so we need to extract value from the I/P.
As it is DAQmx Event which cannot be connected with 1D array of double (source for our index array) so we choose to use DAQmx Read.
How could we get all values?
"making the multiple samples visible" you mean can get every value from I/P ?
Here is our original vi. with DAQ assistance
08-28-2014 11:29 PM
08-28-2014 11:47 PM - edited 08-28-2014 11:47 PM
I try to use array indicator but the value of DAQmx Read is still remains 5.38V
I need to use all values inside the array for our value inside I/P keeps changing.
08-28-2014 11:55 PM
08-28-2014 11:57 PM
08-29-2014 12:09 AM
here is our front panel pic.
Sorry for not express clearly. I mean Voltage is the value that we get from our I/P channel. We provide this value with a power source which can change from 0V to 10V. Different Voltage will has a different SOC value. When SOC is less than 100, our Output Voltage will generate a constant voltage through our O/P channel.