Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing analog and digital output

Hello,
 
i am trying to output an analog and a digital waveform on my PCI6259. Both waveforms should be synchronized.
As sample clock i use Ctr0 for the digital task and the ao/SampleClock for the analog task.
 
Now i'd like to trigger both outputs to start at the same time. I referred to example
MultiFunctionSyncAIAO_DigStart
but it seems like the digital output cannot be triggered like this.  I always get the following error message:
 
'Specified property is not supported by the device or is not applicable to the task.
Property: CNiDAQmxStartTrigger::Type,
TaskName: DigitalOutTask'
 
This is how i configured my triggers:

// Set up the start triggers

m_taskAnalogOut->Triggers.StartTrigger.ConfigureDigitalEdgeTrigger("Dev1/PFI9", DAQmxDigitalEdgeStartTriggerEdgeRising);

m_taskDigitalOut->Triggers.StartTrigger.ConfigureDigitalEdgeTrigger("Dev1/ao/StartTrigger", DAQmxDigitalEdgeStartTriggerEdgeRising);

 

Thx for your help

Regards, Markus

 
 
0 Kudos
Message 1 of 2
(3,099 Views)

Hi Markus

I 'm not sure but maybe this forums entry will help you.

regards Manuel

0 Kudos
Message 2 of 2
(3,082 Views)