PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform generation using PXI hardware

I am trying to generate waveform and observe in CRO. there is no synchronization between the Lab VIEW waveform and waveform observed in  CRO. There is a time delay.  The CRO is completing waveform generation way too earlier than Lab VIEW chart updation.I have attached snippet for your reference. Kindly help me out to solve the issue.

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

Hi, After looking at you code - the delay you are seeing expected. It is due to the processing loop where you are updating the waveform graph after generating the waveform using Analog AO API. The data processing (arrays, for loop) are going to considerable amount of time ( maybe few ms every iteration) before it updates graph.

 

If you are new to LabVIEW - You need to understand the data flow in LabVIEW - https://www.ni.com/getting-started/labview-basics/dataflow

 

I strongly recommend you to use following architecture. https://www.ni.com/en-in/support/documentation/supplemental/21/producer-consumer-architecture-in-lab...

 

To be clear, try to have minimal data processing in AO loop so that the loop runs at desired rate with low jitter. If you don't want to do this, follow this sequential method and expect delay. Process the data -> Generate the data -> check for errors (repeat this in continuous loop).

Regards,
Dharani | CLA | CTD
0 Kudos
Message 2 of 3
(1,056 Views)

Can you remodify the code and explain the same.

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