LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Analog Output Waveform based on buffer iterations in DAQMx and also any substitute for Traditional DAQ AO write.vi's 'Generation completed' boolean in DAQMx

Hi,

 

I am facing problem in generating sine waveform in DAQMX based on Buffer iterations.I am converting program developed in Traditional DAQ waveform generation to DAQMx waveform generation.The requirement is that user inputs frequency,Amplitude,Number of Cycles and i have to regenerate again and again same frequency signal based on user specified cycle.

 

For example if user wants to generate 1 Hz frequency signal with 1 V amplitude, 0 V offset and Number of Cycles =5 from Analog output channel 0 of PCI 4451, then in Traditional DAQ it is programmed as so:

 

1.AO config.vi-where user configures buffer size same as samples generated.

2.AO WRITE.vi-where user writes 2D array of data Generated to the Vi where column 0 consists AO Channel 0 generated data,

3.AO START.Vi-where user specifies Update rate has 50000 and Buffer Iterations has 5(No. of cycles)

4.Then after this while loop comes into picture under that AO WRITE.Vi is linked with the earlier started task.This while loop ends based on 'Generation completed' boolean value Of AO WRITE.vi returns TRUE.Hence this boolean returns true value based on Number of cycles given in Buffer iterations before starting the loop.

 

Can any one please help in programming the same manner in DAQMX for supporting PCI 4461 DSA CArd .

 

Regards,

Sneha

 

0 Kudos
Message 1 of 2
(2,968 Views)