Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Square waveform generator

Solved!
Go to solution

Hi,

 

I want to make a continuous square waveform. there are some samples and files online to do so, but I'd like to be able to change the frequency of waveform continuously, I mean something like a function generator. I try to use PFI channel in NI 6221, but It just provides waveform with constant frequency. I am wondering if it is a good idea to use PFI channel? I want to provide 100 to kHz square waveform.

 

Thanks,

0 Kudos
Message 1 of 3
(5,183 Views)
Solution
Accepted by topic author Saridar

Hi Saridar

 

This example may be what you are looking for! 

 

Regards 

Chris S.
Message 2 of 3
(5,137 Views)
Solution
Accepted by topic author Saridar

Hey Chris,

 

Thanks for your response. It is pretty useful and it gives me some idea for future works.

 

I got some solution for my case from Labview 8.5 examples. I got theidea that I need to use regeneration mode to make a reliable data, kind of independent of windows interruptpion (I mean, when it is not in regenerate mode, windows updates process or anti-virus process made some lags on the output freq.). I was able to modify the code in a way that it lets me to change the freq. on fly.

 

Thanks,

Saridar

0 Kudos
Message 3 of 3
(5,128 Views)