Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

RTSI Trigger (DAQmx & C++)

Dear Reader

I tried to synchronize the start of two devices using a RTSI-Signal.
The Master-Device does the sampling, the Slave-one not. Could anyone please tell me what's going wrong?

Pascal

//PCIe 6259 (Dev1): AO master, export StartTrigger to RTSI0
    error = DAQmxCreateTask("",&ao6259TaskHandle);
    error = DAQmxCreateAOVoltageChan(ao6259TaskHandle, "Dev1/ao0", "", -5.0, 5.0, DAQmx_Val_Volts, "");
    error = DAQmxCfgSampClkTiming(ao6259TaskHandle, "OnboardClock", 1000.0, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 10000);
    error = DAQmxExportSignal(ao6259TaskHandle, DAQmx_Val_StartTrigger, "RTSI0");
    error = DAQmxWriteRaw(ao6259TaskHandle, 10000, false, 10.0, dataBuffer, NULL, NULL);

//PCI 6733 (Dev2): Slave device (only triggered)
    error = DAQmxCreateTask("", &ao6733TaskHandle);
    error = DAQmxCreateAOVoltageChan(ao6733TaskHandle, "Dev2/ao0", "", -5.0, 5.0, DAQmx_Val_Volts, "");
    error = DAQmxCfgSampClkTiming(ao6733TaskHandle, "OnboardClock", 1000.0, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 10000);
    error = DAQmxCfgDigEdgeStartTrig(ao6733TaskHandle, "RTSI0", DAQmx_Val_Rising);
    error = DAQmxWriteRaw(ao6733TaskHandle, 10000, false, 10.0, dataBuffer, NULL, NULL);


    DAQmxGetExtendedErrorInfo(errBuff,2048);


    error = DAQmxStartTask(ao6259TaskHandle);


0 Kudos
Message 1 of 2
(2,970 Views)
Dear pboehi,

please check the following links if the provided solutions solve your request as well.

Best regards,

Carsten Sprung

What is the procedure to initialize and use RTSI clock (7) signal?
http://forums.ni.com/ni/board/message?board.id=180&message.id=15167&requireLogin=False

How to synchronize scan clock for PCI-6110 devices with LabWindows
http://forums.ni.com/ni/board/message?board.id=180&message.id=10819&requireLogin=False

Import a signal for synchronization of onboard clock
http://forums.ni.com/ni/board/message?board.id=250&message.id=11555

How can I send a pulse to a RTSI line with a software command?
http://forums.ni.com/ni/board/message?board.id=180&message.id=5641&requireLogin=False

Still struggling with RTSI
http://forums.ni.com/ni/board/message?board.id=180&message.id=2254&requireLogin=False


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