Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate two independent signal and a pulse train with NI USB-6259

Solved!
Go to solution

Hi all,

 

I am new to the forum, I have searched but I have not found any info about it.

 

I have recently implemented a vi which is capable to generate from a NI USB-6259 two signals which are different in frequency, amplitude and phase (see attachment).

In order to do that at each cycle the buffer size is changed accordingly to the frequencies in order to see an integer number of periods and, thus, not having leakage in generation (or jumps).

 

Now, I would like to generate a pulse train with a frequency which is an integer multiple of the frequency of the input signal (not the 50Hz one).

The resulting frequency of the pulse train could be changed on the fly (or at least being updated at each new cycle of the vi).

 

I am stuck because I have already declared two analog output channels and I want the pulse train to be a digital output for my board (channel PFI), have you got any ideas?

 

many thanks

 

Alberto

 

 

PS. The vi is "programma generazione.vi" but you firstly need to install "generating signal.vi"

Download All
0 Kudos
Message 1 of 2
(3,660 Views)
Solution
Accepted by albertocarboni

Hi,
this is a simple .vi that generates a buffered pulse train, dinamically configurable. I want also let you know that with this type of boards (DAQ) it's impossible to update output in Real-Time. You've to be careful because the time between you use "DAQmx Write" and the effective phisical output change IS NOT FIXED.

 

Regards,

Matteo

Message 2 of 2
(3,580 Views)