10-28-2009 11:17 AM - edited 10-28-2009 11:21 AM
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
10-29-2009
04:06 PM
- last edited on
05-30-2025
03:29 PM
by
Content Cleaner
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.
10-30-2009 09:32 AM
One consideration scare me:
General Rules and Conditions:
All Devices
11-02-2009
04:53 PM
- last edited on
05-30-2025
03:32 PM
by
Content Cleaner
Hi Sebastien,
I found the following paragraph in the S Series Manual:
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.
11-03-2009 08:08 AM - edited 11-03-2009 08:15 AM
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