04-10-2016 07:45 PM
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.
04-10-2016 07:53 PM
@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.
04-10-2016 08:41 PM - edited 04-10-2016 08:46 PM
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.
04-11-2016 12:55 AM - edited 04-11-2016 12:56 AM
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