05-30-2012 03:03 PM
No I mean it shouldn't be involved with minute values. It is supposed to start from 0 till the amount of seconds the program has run for, like 0s till 1000s
05-30-2012 03:14 PM
@Bombbooo wrote:
No I mean it shouldn't be involved with minute values. It is supposed to start from 0 till the amount of seconds the program has run for, like 0s till 1000s
Then use my second suggestion. I presented you with both options. The result of the subtraction of the two times is nothing more than the number of seconds between the two times. Simply use that value.
05-30-2012 03:36 PM
Thank you so much. I finally got what I want!! Thanks Thanks 🙂
05-30-2012 03:48 PM
Anyway I have a question; why did you wire the data array to the case structure without having any outputs?
05-30-2012 07:42 PM - edited 05-30-2012 07:45 PM
05-31-2012 10:25 AM
Wiring the output of the results of your processing to the case statement forces the case statement to execute after all your processing is completed. This is the essence of data flow programming. Any node in LabVIEW will execute only after ALL of its inputs are satisified. The value of the wire I connected to the case structure will not be available until the other code executes. Therefore, the case structure will not execute until then. If you remove the wire the case structure will execute in parallel to the other code. Given that getting a simple timestamp will happen instantly your timestamp will most likely be the time when your other code began, not completed.
Depending on when you want this timestamp to be taken (before or after) will decide whether you want that wire there or not.