LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the speed of my timed while loop

So I've been trying to set the source name for my timed loop to the 1 MHz source instead of the default 1kHz, but when I set a constant string "1 MHz" the program does not run. I was wondering if maybe my computer cannot handle that speed, I have an intel duo core with 1.6 GHz speed, so I would think it could handle 1 MHz?

0 Kudos
Message 1 of 3
(2,533 Views)

where's your code?

0 Kudos
Message 2 of 3
(2,518 Views)

Windows cant time 1MHz. A timed loop basically is a while loop with a Wait-command, unless external trigger is used. The smallest Wait (found in the timing palette) is 1ms, and that's very uncertain due to multitasking and task switching. (Also seen in the dT-input)

 

You are wiring 1MHz to the Source name. Which clock generating source is named 1MHz ... Therein lies your solution.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 3
(2,513 Views)