From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize Ni-Switch with Analog In/out operation

Hi,

 

Im using a PXI 6366 Daq and a PXI multiplexer (1x16 octal).

 

The program uses a sycnhronised analog ouput waveform to drive a laser. The resulting input from an array of detectors is measured using the 8 analog inputs (which works fine). Currently we are looking to expand out to 128 detectors measuring 8 at a time using the multiplexer. 

 

I have set up a software triggered scan on the multiplexer, placing the "send software trigger" VI in the same loop as "DAQmx read". the multiplexer is switching at the same rate as the wavform is read but is switching partway through the waveform.

 

Basically it should switch at the start of the read window. 

 

I think I need to move to hardware sync but im not sure where to begin.

 

Thanks,

 

Gordon

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

Hi Gordon,

 

Just checking my understanding of what you are trying to do.


You are generating an analog output waveform of constant period on your PXI 6466 which is outputted to a laser. You have 128 detectors and want to read 8 at a time using your multiplexer, switching at the start of each waveform period.

 

Would your multiplexer be a PXIe 2593 by any chance? What sort of waveform frequencies and input frequencies are you talking? A screenshot or upload of your code may be useful.

 

You're right, hardware timing may be of use in this case. If the generation and switching both run off the same internal sample clock, they will be synchronised.

 

http://www.ni.com/white-paper/11369/en/ You may find the 'Share Sample Clock Directly (Sample Clock Synchronization)' section in this whitepaper useful.

 

Are you using 'niSwitch Configure Scan Trigger VI'? One thing that might work would be to send a trigger each time a waveform starts. There is an example included in LabVIEW named 'Switch - Scanning with a DMM - Synchronous' that might be relevant .

 

Here is an example of reading multiple channels sequentially using DAQmx, which I see you already have managed to implement but it may be useful to compare to.
https://decibel.ni.com/content/docs/DOC-6901

 

Let me know if any of these are of use to you.

 

Thanks,

 

Leah

0 Kudos
Message 2 of 2
(2,797 Views)