Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to synchronize USB-6361 and 9215

Hello all,

 

I posted a similar question some time ago and I finally purchased all the components needed to hook both cards together.  So what I am planning to do is to use a BNC cable on the PFIO connector of the 6361 and attach it to the PFIO port of the 9215. The 6361 will be the master and the 9215 the slave.  So how does one setup the software to make the master send a timing signal the 9215 and synchronize the two devices.  I have looked at several example programs and I cannot get this to work.  For example, the Multi-Device Synch-Analog Input-Ref Trig-Multi Rate-Trig Skew Correction example has three input fields: Reference Trigger source, Reference clock source, and Reference clock rate.  How do you set this?  Am I supposed to use something else other than the Master's PFIO0 port to send out the timing signal?  Do I need to do something in NI MAX to setup a path for a timing signal to be sent?

 

Thanks for your help in advance....

 

Jay

0 Kudos
Message 1 of 4
(3,781 Views)

Hello Radman,

 

I think what you meant is to use a PFI from the 6361 and connect it to the PFI0 of the chassis the 9215 is in, as the 9215 doesn't have a PFI line itself.


The simplest synchronization you can do is sample clock sharing. Here is a thread where I posted a code that does multiple device synchronization through exporting the sample clock and the start trigger. The customer asked some sync questions you might find useful. In this case, by only sharing the sample clock you should be fine.

 

Sample clk sync.png

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 2 of 4
(3,765 Views)

Daniel,

 

Thanks of responding....I took a good look at your code and decided to copy it and give it a run with the two datacards...first, I am assuming that the export terminal sample clock in the PFI0 line on the 6361 (Master) and the input sample clock terminal is the PFI1 or PFI2 line on the chasis of the 9215. When I setup the code (and wired up the datacards) I kept getting error -89125 which is "no registered trigger could be found between the device in the route".  Does this mean that there is no clock signal being sent from the master to the slave device?  Do I need to set something up in NI Max to make this work? After watching the code execute, it looks like the error occured after the Daqmx start task VI on the slave path followed by the same error on the start task vi on the master path.

 

Thoughts?

 

Thanks for your help in advance,

 

Jay Poret

Us Army ARDEC

0 Kudos
Message 3 of 4
(3,748 Views)

Hello Jay,

 

In my example, we use the DAQmx Export Signal VI to export the sample clock from the Master (cDAQ1) through cDAQ1/PFI0 and importing it on cDAQ2/PFI0 (the slave chassis). Notice that we have two PFI0 lines but from different chassis. The PFI number you import/export the signal can be any, as long as they are physically connected and you configure it to export (on the DAQmx Export Signal) and import (on the Timing (Sample Clock) VI) correctly. If you do this, you don't need to set anything in MAX to make it work.

 

What's the specific error number and description you get when you run your code?

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 4 of 4
(3,742 Views)