02-26-2007 08:07 AM
02-27-2007 02:05 AM
Hi Viller,
I think your questions can be answered by I explain the difference between your timing option 1 & 2.
Timing option 1: When you put a "Wait (ms)" function in a while loop and wire a constant into the function, the loop will execute the code inside the loop and then wait that amount ms as you defined in the constant. If the code takes 30ms to execute and the constant is 100ms. Every While loop iteration will take 30+100=130ms.
Timing option 2: The "Wait Until Nex ms Multiple" function works a little different. With this function you can specifie how many milliseconds lapse when the VI runs. That means, if the constant is 100ms, the While loop iteration will take either 100ms or 200ms 300ms... It all depends the LV codes inside the loop.
You can read more about those timing functions in Labview help.
Best Regards!
02-27-2007 02:24 AM
thank you very much for your explaination! ok so If I understand you right if I want "exactly" (I know it is nok hard real time) lets say 100 ms between every time data is written to the DAQ I should use the "wait until next.."? and the only limitation is that I cant choose a timing value less than the time it takes to execute the code!? --- but if I choose the "wait" it takes the amount of time I specify + the execution time?
But this only explains ½ of my question:-) I would appriciate if you also could answer the first part concerning the cDAQ timing
03-05-2007 11:11 AM