ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop and send a message ?

I want to stop the program and send a message if the "fwd amp" or "rev amp" indicators show "2.3"~ or more, any suggestions ?

0 Kudos
Message 1 of 5
(4,085 Views)

This is how to stop the loop if either of the voltages is greater than 2.3V and then show a message.

conditional stop.PNG

It will only show the message if the loop stopped by one of the two voltages and not when you hit the stop button.

EDIT:  I noticed that I used the wrong voltage for the conditionals but you can obviously change that to your desired value.

Message 2 of 5
(3,774 Views)

thanks, i will test it in some hours, ill post the results.

edit:

It worked, also, i searched a little bit and I did it with a state structure "machine"

if the amps are bigger than the set point, I stop the motor from working and I display a message asking for a password to continue.

herespart of the VI

thankshttp://i.imgur.com/LdpUZ5K.png

0 Kudos
Message 3 of 5
(3,774 Views)

I replied to wrong message. Apologies. 

0 Kudos
Message 4 of 5
(1,012 Views)

I replied to wrong message. Apologies. 

0 Kudos
Message 5 of 5
(1,011 Views)