LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How read values from Waveform (DBL) 1d Array and compare it with a double value

I want to stop my measurement (right side od the VI) when the user defined stop voltage has arrived in the measurement. But I do not know how I can read the voltage value from the waveform (DBL) 1d Array and compare it with the user typed stop voltage? Hope someone can help me with that.

 

 

0 Kudos
Message 1 of 13
(4,371 Views)

Hey,

 

Can you please save your vi in an older format?

0 Kudos
Message 2 of 13
(4,368 Views)

 


@simply_me wrote:

Hey,

 

Can you please save your vi in an older format?


Here is the VI for Version 8

 

0 Kudos
Message 3 of 13
(4,364 Views)

Here is one way, prob not the most efficient one but it does the job I believe.

 

 

0 Kudos
Message 4 of 13
(4,346 Views)

Don't use an "=" sign with doubles. Often two double values won't actually be equal in memory even though they look equal to you. This will result in you never getting an equal condition. Use ">=" or check if the value is within a certain range using the "in range and coerce function".

0 Kudos
Message 5 of 13
(4,329 Views)

Yeah, I wanted to put >=, but I wasn't sure about his criteria.... 

 

0 Kudos
Message 6 of 13
(4,324 Views)

But how I can convert it from the waveform datatype into a double array?

0 Kudos
Message 7 of 13
(4,307 Views)

use "Get Waveform Components". The y array of double values can be gotten from that.

0 Kudos
Message 8 of 13
(4,303 Views)

 


@for(imstuck) wrote:

use "Get Waveform Components". The y array of double values can be gotten from that.


where I can find "Get Waveform Compenents" ?

 

0 Kudos
Message 9 of 13
(4,294 Views)

On the waveform palette. You should also know how to use the search button on the Functions palette.

0 Kudos
Message 10 of 13
(4,288 Views)