Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing 3 different card types:S serie, M Serie and DynamicSignalAcquisition in C

Trying to synchronize a M, a S and a DynamicSignalAcquisition using Daqmx and reference clocks.

 

Here is how I set reference clocks 

 

M:

DAQmxSetRefClkSrc(t_TaskHandle, "PXI_Clk10")

DAQmxSetRefClkRate(t_TaskHandle, 1000000) // 10 MegaHtz = 10 ^ 6 (aka 6 zeros)

 

S:

DAQmxGetMasterTimebaseSrc(t_TaskHandle, "/Dev1/20MHz", PXI_BufferSize));

FAILS -> DAQmxSetMasterTimebaseRate(t_TaskHandle, MHTZ10));

 

DynamicSignalAcquisition:

DAQmxSetRefClkSrc(t_TaskHandle, "PXI_Clk10")

FAILS -> DAQmxSetRefClkRate(t_TaskHandle, 1000000) // 10 MegaHtz = 10 ^ 6 (aka 6 zeros)

 

Now how am I suppose to use the same clocks if I can't use PXI_Clk10 for the S and got no SetRefClkRate for the DynamicSignalAcquisition...

 

Please tell me how you usualy do it,

Thanks,

Seb

Message Edited by Sebastien Dupere on 10-28-2009 11:21 AM
0 Kudos
Message 1 of 5
(3,749 Views)

Hi Sebastien,

 

DSA devices over sample, and hence there sample clocks are not the same as a normal DAQ sample clock, usually this means the DSA card has be used as the master and will not accept an external time base. The following KnowledgeBase article talks about it more.

 

Synchronizing Dynamic Signal Acquisition (DSA) Products with NI-DAQmx

 

Synchronizing DSA or S Series Devices With a Single NI-DAQmx Task

 

I hope that helps,

 

Thanks

Scott M.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,727 Views)

One consideration scare me:

General Rules and Conditions:

        All Devices

  •  
    • All channels in the task must be analog input channels of the same type of device (all DSA devices, or all S Series devices)
    • I want S and DSA together
  •  Also: I am able to time M series on the CLK10 and DSA on the CLK10...does that mean M are compatible with DSA and only S is not?
0 Kudos
Message 3 of 5
(3,716 Views)

Hi Sebastien,

 

I found the following paragraph in the S Series Manual:

S-RTSI.JPG

Some S series cards can import external clocks, however they have to be on RTSI (PXI_TRIG) 7. You can see more on this in the S Series Manual, chapter 10 (pg 89) discuses sharing time bases.

 

Hope that helps.

 

Thanks

Scott M.

 

Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,689 Views)

Tried to call

 

char t_RefTimebase[PXI_BufferSize]; MACRO_DAQmxErrRep(DAQmxGetMasterTimebaseSrc(t_MasterHandle, t_RefTimebase, PXI_BufferSize)); MACRO_DAQmxErrRep(DAQmxConnectTerms(t_RefTimebase, NISYNC_VAL_RTSI7, DAQmx_Val_DoNotInvertPolarity)); MACRO_DAQmxErrRep(DAQmxSetMasterTimebaseSrc(t_TaskHandle, t_SlaveSerieSRefClockName));

 

 

 

And it gave me:
Property not supported: MasterTimebaseSrc for my PXI-6143

Am I using the wrong call? thought the master timebase was what I needed to route on the RTSI7

Message Edited by Sebastien Dupere on 11-03-2009 08:13 AM
Message Edited by Sebastien Dupere on 11-03-2009 08:15 AM
0 Kudos
Message 5 of 5
(3,681 Views)