09-08-2010 01:34 PM
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.
09-08-2010 01:36 PM
Hey,
Can you please save your vi in an older format?
09-08-2010 01:42 PM
09-08-2010 02:01 PM - edited 09-08-2010 02:09 PM
Here is one way, prob not the most efficient one but it does the job I believe.
09-08-2010 02:22 PM
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".
09-08-2010 02:29 PM
Yeah, I wanted to put >=, but I wasn't sure about his criteria....
09-08-2010 03:34 PM
But how I can convert it from the waveform datatype into a double array?
09-08-2010 03:49 PM - edited 09-08-2010 03:50 PM
use "Get Waveform Components". The y array of double values can be gotten from that.
09-08-2010 04:36 PM
@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" ?
09-08-2010 05:03 PM
On the waveform palette. You should also know how to use the search button on the Functions palette.