LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using watchdog

Well, I finally made my first labview application 🙂  Looks pretty good, does the things I need (reacts vegetable oil in 3 heating vessels, using a heated oil in the 3 vessels jackets - all controlled by labview and all variables can be changed, ie temperature, timers etc.).
 
However, I cannot get the reset to work the way I would like, due to some timers having to sit in case structures to prevent premature triggering.
 
In the build vi, I don't really want to use a mouse, just a keyboard, but need to restart the application every so often, to give the system a full reset.  Would I be able to do this using watchdog?  I'm hoping it will allow me at the press of a key to reload / restart the built vi.   I've added the program below if anyone needs to check it out for me.
 
Thanks in advance. 
 
Steven
 
0 Kudos
Message 1 of 3
(2,892 Views)
Steven,

Congratulations on getting your first LV program running.

One of the guidelines that many experienced programmers like to follow is to limit the size of the block diagram to fit on one screen. Your diagram is so large that it is very difficult to see what is going on.

In general to propagate Stop (or other) Commands to various nodes of the program you can use functions from the synchronization palette, such as notifiers and queues, or global variables, usually implemented as functional globals or LV2-style globals.

Look at the Style Guide for hints on programming methods which can lead to readable programs.

Consider reworking your VI into a state machine architecture (Case structure inside loop). There are examples which come with LV and much information in the archives of this site. The state machine is more easily modified and maintained and can easily handle things like your stop conditions and errors.

Lynn
0 Kudos
Message 2 of 3
(2,886 Views)
Tried that, with various permutations this morning, but to no avail.  Is there a way to reload the running vi / application from a button press on the panel / keyboard?
0 Kudos
Message 3 of 3
(2,865 Views)