LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I reset controls and continue or reset controls and stop?

I am trying to find a way to reset 16 controls and 8 indicators and continue or exit.

I have a system where a change in input will cause the LabVIEW to contact another processor via RS232 and send the change. There are eight seperate circuits to control and each has an enable and voltage input. I have the individual circuits operation with a change of either input but when I try to reset all 16 inputs and 16 indicators then continue or reset the inputs and indicators and stop (I need to do both) the system hangs up. In the debug (light bulb on) mode the system works but normal operation the system hangs up.

I have attached the VI's for this system.
Download All
0 Kudos
Message 1 of 4
(2,568 Views)
The problem may be steming from the fact you don have a delay. In the main vi, put the different diode_cntr2.vi each in a sequence, put a delay of 500 ms or whatever works at the end of execution of each call

Currently, once a the vi finishes one diode, it starts another call immediately for another diode. But since it is the same serial port is being used, data are getting overwritten and corrupted before the device takes it.

In debug mode (ligyht bulb) mode, a delay is created which accounts for the fact the vi works.

also in the diode cntr2.vi while loops, put a small delay of 100 ms or less whatever appropriate
Message 2 of 4
(2,568 Views)
I changed a couple of things in the way you were doing the reset and stop. Look at these changes and see if they work OK.Also the vi named diode control if there is no dependency as to which one gets set first then the way you have it is ok but if there is a dependency the way you have it wired there is no guarantee which one will run first.

Hope this helps



Joe.
"NOTHING IS EVER EASY"
Message 3 of 4
(2,568 Views)
Thank you very much. The Answer was exactly what I needed to know.

H Watkins
0 Kudos
Message 4 of 4
(2,568 Views)