Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

subtle delay

How can I generate a short delay in crio 9024. For example, I want to generate a 10-us delay. I try to write the while cycle, but I failed. The program will crash when I use many while cycle.

0 Kudos
Message 1 of 4
(3,800 Views)

@galaxy4444 wrote:

The program will crash when I use many while cycle.


That sounds like either you are trying to do way too much in the controller or you really need to work on your memory usage.

 

As far as delays, there is a Wait in the RT palette that goes down to the microseconds.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(3,799 Views)

Yes, you are right., thank you a lot, I found it in real-time plane. But, when I set the delay in 50us. I watch the pin in oscilloscope, I still found the delay is 1ms. 

0 Kudos
Message 3 of 4
(3,792 Views)

if you are using the scan engine programming mode, the IO can be changed only as fast as the scan engine scan rate. Usually the fastest it can go is 1000 Hz  and that's pushing it. You need to write code in FPGA mode to do fast IO like that

0 Kudos
Message 4 of 4
(3,780 Views)