Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing data from 2 NI-9205 units on cDAQ-9188

We use DAQmx library previously (from within C++) to synchronize 2 M-Series or 2 E-Series cards.

 

I tried to apply the same calls for the 2 NI-9205 units but get error code of -200452 (propoerty not supported).

 

Extract of the function calls is below:

 

// Create the task

DAQmxCreateTask  

 

// Set the range for channels

DAQmxCreateAIVoltageChan

 

// Set the timing of the board

DAQmxCfgSampClkTiming

 

// For master board - M series (this gives the -200452 errors)

DAQmxSetRefClkSrc(taskHandle,"OnboardClock")
DAQmxGetRefClkSrc(taskHandle,str1,256)
DAQmxGetRefClkRate(taskHandle,&clkRate)

 

// For slave boards - M series

DAQmxSetRefClkSrc(taskHandle,str1)
DAQmxSetRefClkRate(taskHandle,clkRate)

 

// For master board - get the channel name for ai/StartTrigger

 

// For slave boards - set the ai/StartTrigger

DAQmxCfgDigEdgeStartTrig(taskHandle,trigName,DAQmx_Val_Rising)

 

// For all boards - start the task

DAQmxStartTask (taskHandle)

 

// In a loop called every nth seconds...acquire the data...

DAQmxReadAnalogF64

 

 

Could somebody please provide the appropriate calls needed for the master and slave devices for the NI-9205 units on cDAQ-9188, so I can test it and apply the changes to my application.

 

Any help would be greatly appreciated.

 

Thanks in advance.

 

Waheed Siddiq

Senior Software Engineer.

0 Kudos
Message 1 of 1
(5,497 Views)