Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Current Comparison circuit to generate high frequency pulse train

Hi!

 

I am using cRio 9075 with cModules NI9403, 9225 and 9227. I want to generate high frequency pulse train by comparing a sinusoid/triangular signal with a DC signal using Real Time. I tried to simulate a frequency sinusoid signal using the "Simulate Signal" block, but when the dynamic data needs to be converted into double, the original set frequency of 20kHz changes to meagre 3Hz.

 

Kindly help me to get past this issue. Also point out if there is any erroe with the attached snapshot of code.

 

Thanks in advance.

0 Kudos
Message 1 of 1
(3,086 Views)