LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch port based on over threshold

Hello,

 

does anyone know how to do:

-threshold with setting the value in the graph,

-if the value is larger than the threshold, then it sends the command

 

I have this program with wave generator and osciloscope and I need to switch the port in the optical switch when the value is higher than the threshold.

 

Thanks for help and answer. 🙂

0 Kudos
Message 1 of 5
(2,220 Views)

Hi Adam,

 

You could add a cursor to the graph and get the value from the cursor in the graph with a property node (Cursors >> Cursor Position >> Cursor Y) and compare against that.

If your new value is larger than that, trigger your command. Is that what you want?

Sorry, I can't open your VI, so if you have questions, please re-upload it for LV 2015.



Remember Cunningham's Law
Message 2 of 5
(2,192 Views)

My first thought is something like this:

threshold.png

 

If this would be too time consuming you could have this logic be executed in another loop.

 

EDIT:

Misread the "setting the value in the graph". The above reply from Peter regarding the graph cursor is a solid idea.

dK
0 Kudos
Message 3 of 5
(2,191 Views)

There is old version VI.

0 Kudos
Message 4 of 5
(2,172 Views)

Thanks for all. 

I have it! 🙂

My theses is saved.

0 Kudos
Message 5 of 5
(2,167 Views)