LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hello

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 11
(3,258 Views)

correction :

 

The problem is, when the input voltage exceed 5V value or less than 0V, Sorry for typing error.

0 Kudos
Message 2 of 11
(3,252 Views)

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. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 11
(3,240 Views)

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.

0 Kudos
Message 4 of 11
(3,239 Views)

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.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 5 of 11
(3,238 Views)

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.

0 Kudos
Message 6 of 11
(3,223 Views)

I cant wire it to " In Range and Coerce" because the terminal cant accept that data type.

0 Kudos
Message 7 of 11
(3,218 Views)
Solution
Accepted by topic author Hanif88

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.

0 Kudos
Message 8 of 11
(3,199 Views)

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.


 

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 9 of 11
(3,198 Views)

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.

--------------------------------------------------

Nathan - Certified LabVIEW Developer
Message 10 of 11
(3,197 Views)