08-28-2008 02:58 PM
I have a lagre program consisting of nested for loops and case statements calibrating an array of patch antennas. The entire process of which will take about 15 hours. During this time, I want to have two things happen.
Every 20 minuites or so, I want the process to stop what it's doing, follow certain commands for the measurement equipment to recalibrate itself, and then go back to what it was doing.
I also want to protect it against unpredicted and predicted crashes. If the system needs to stop for whatever reason, I would like to be able to pick up the process where it left off. A sort of checkpoint system, where, when it passes a checkpoint, if it needs to be restarted, I can tell it to start from the last checkpoint it passed.
Anyone had any experiece with these types of problems?
08-28-2008 03:11 PM
Hi jaysmall,
i mean no harm, but it sounds like you can useTest Stand for it. You will have the ability to write a sequence, to start parallel processes and you can define points, where to start after stoping/breaking the sequence. See also this example of a test sequencer.
Hope it helps.
Mike
08-29-2008 07:13 AM
08-29-2008 08:29 AM
You would need to appropriately architecture the code. Are you familiar with State Machine representation? Basically describe how the software needs to behave based on events. From that you can develop the appropriate architecture in Labview and code your solution.
R
08-29-2008 09:30 AM - edited 08-29-2008 09:31 AM
You can read this for more:
Application Design Patterns: State Machines
08-29-2008 01:54 PM
Try this.
08-29-2008 02:56 PM
08-29-2008 03:44 PM
jaysmall wrote:I also want to protect it against unpredicted and predicted crashes. If the system needs to stop for whatever reason, I would like to be able to pick up the process where it left off. A sort of checkpoint system, where, when it passes a checkpoint, if it needs to be restarted, I can tell it to start from the last checkpoint it passed.
Could you open and append parameters to a file? Every time you restart execution of the vi after crashes you can look through the contents of the file to determine the last operation that was successful and continue with the last know good settings. -SS
09-02-2008 07:24 AM