04-23-2013 01:59 PM - edited 04-23-2013 02:06 PM
Hello everyone.
I am a new user of labview and sorry for my English. I am using NI USB 6008. I have wiring DAQ Assistant (analog input) to DAQ Assistant (analog output).
Then I run the program and it works well. The problem is, when the input voltage exceed 5V value or less than 0V, the warning message appear and it state, an error occur. Analog data too large or too small. Do I have to limit the voltage data and how to limit the voltage data?
Can anyone help me? Your help is greatly appreciated.
Thanks in advance.
Hanif
Solved! Go to Solution.
04-23-2013 02:04 PM
correction :
The problem is, when the input voltage exceed 5V value or less than 0V, Sorry for typing error.
04-23-2013 02:23 PM - last edited on 06-03-2024 09:44 AM by Content Cleaner
The Specification for the Analog Output of the device states the range is 0-5V. The error is the device telling you it can't do what you asked.
04-23-2013 02:25 PM
Youu don't have a warning, you have an error.
How are you getting values that are out of range of 0 to 5V?
You can use the In Range and Coerce function to force the values to be withing 0 to 5.
04-23-2013 02:26 PM
Not sure why you are using a DAQ Read and piping the data directly to a DAQ Write. Could you explain your scenario? You will get a write error if anything exceeds 5V or goes below 0V. You will not get an error if the input voltage goes outside of those bounds.
04-23-2013 02:56 PM
The scenario is I have connect 0-5V pressure sensor to analog input. For analog output, I have connect to the positioner that controlling the rate of opening valve. What I want is to control the rate of opening valve acording to voltage value from pressure sensor.
04-23-2013 03:01 PM
I cant wire it to " In Range and Coerce" because the terminal cant accept that data type.
04-23-2013 03:44 PM
Change from the Dynamic Data Type (blue wire) to a scalar value (orange wire) using the From DDT Express VI. Then you can coerce it and wire it into the analog output.
04-23-2013 03:44 PM
I would look into some sort of scaling or something. Yes, you can use the In Range and Coerce, but you may need to convert the data from the Dynamic type into a waveform or something. It looks like there should be more going on given your scenario.
@Hanif88 wrote:
The scenario is I have connect 0-5V pressure sensor to analog input. For analog output, I have connect to the positioner that controlling the rate of opening valve. What I want is to control the rate of opening valve acording to voltage value from pressure sensor.
04-23-2013 03:45 PM
haha, RavensFan I think that is like the third post today that I went to type something and you had already beat me to it. I just need to type faster I guess.