LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two AO for laser beam raster scan and one AI acquisition for detector signal reshape

Hello,
I need to write a code for laser beam raster scan in both x and y direction. The two AO channel code is ready. but I don't know how to synchronize the AI acquisition that AI will know in which AI sample represents the start of next line of scan. As the two AO controlling the beam scan in both x and y direction, the region corresponding to the signal acquired would be an image if the AI is well synchronized. Could you help me about the code of AI synchronizing with daq assistant?
Thank you very much

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

Good basics article - https://www.ni.com/en-us/innovations/white-papers/12/synchronization-basics.html 

 

No - you cannot achieve synchronization using the DAQ Assistant, it is too limited and basic to achieve your need.

santo_13_0-1635013788855.png

 

To synchronize AI and AO you definitely need to learn DAQmx and use it to program.

https://www.ni.com/en/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-handl...

(Please skip the DAQ assistant section)

 

This is a good example for synchronization (Help>>Find Examples)

santo_13_1-1635013929997.png

 

  1. Use either the AO channels or AI channel as the master
  2. Export the sample clock
  3. Use this exported sample clock for the slave channel to be synchronized
  4. Now all read/write samples are synchronized

BTW, you did not mention the hardware you are using, some instruments may not be able to synchronize.

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 2 of 3
(1,235 Views)

Thank you, Santhosh! let me have a look at the codes in the link. My card is PCIe-6363. The synchronizing is the first step and then I need to tell the AI about the different lines that one scan controlled by AO. Are there any good solutions?

Thank you

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