Steps for registration

Hello I'm new here and I am a beginner in Labview. I have Labview program that is capable of data recoding of measures about two hours (from the beginning of the program) and the playback time is a minute at 500 Hz. I did some code for thermocouples type K, but I did find an example for the readings of delay. Thanks for the help!

Concerning

Nejc

Nejc,

You hear every 2 hours (measure a minute, wait 2 hours, repeat, etc.) or a single measure of 1 minute after 2 hours, then stops? Response below assumes that say you every 2 hours and repeat with a measure as soon as you start the program.

One way to do would be to make a simple state machine (it is not as hard as it and it is one of the most useful ways to structure your program, you can find a lot of articles with examples, such as http://www.ni.com/white-paper/3024/en, figure 2 is exactly the structure). Basically a while loop with a case inside structure: each iteration you choose, in which case you want to go.

You have state 0 (first page of the case structure) be a measure of 1 minute at 500 Hz. This could be as simple as a loop with all the code you now and stop the loop after 1 minute (say 60 * 500 iterations for your case). You will need to include a timer to control the timing of 500 Hz. When the loop is finished, thread 1 to your state of the structure value case.

Then have State 1 (second "page" of the structure cases) be a simple waiting for 2 hours (2 * 3600 * 1000 ms by using the command 'wait ms'). At the end of this transfer back to state 0.

There are probably other ways to do it, but it is a very simple way to help you, if you are ready to watch in the state machine.

Hope that make sense.

Dan

Tags: NI Software

Similar Questions

Maybe you are looking for