03-13-2013 07:54 AM
Hello,
How can I do a time with while loop?. I want to read a data in the While- Loop for 1 sec and then go to B .. I added a pic,
03-13-2013 07:59 AM
Hi nichts,
there's the function ElapsedTime in the timing function. You should try to use that in your while loop...
Usually you know how much data you get per second (aka sample rate), so you could just ask for a certain amount of data...
03-13-2013 08:25 AM - edited 03-13-2013 08:28 AM
@nichts wrote:
Hello,
How can I do a time with while loop?. I want to read a data in the While- Loop for 1 sec and then go to B .. I added a pic,
I would use as GerdW has mentioned,"elapsed time.vi" in a statement 1st case structure, after set time has elapsed> goto 2nd case structure. try not to use flat sequences....this can be done with case statements with transitional coding. I have noticed young LV programmers like to use flat sequences...I think it's a trap set up by LV developers?