Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI6221 using reference trigger by PFI0, the thigger sinal do not happen, But the DAQ start,what's problem

like the title, I am using the PCI6221 on a project.

 

there is device it could output the TTL pulse for the signal of   reference trigger.

 

some codes could be seen below:

 

myTask.Stream.Timeout = -1; 
myTask.Triggers.ReferenceTrigger.ConfigureDigitalEdgeTrigger("/Dev1/PFI0", DigitalEdgeReferenceTriggerEdge.Rising, preSamplesPerChanmmel);


// Verify the Task
myTask.Control(TaskAction.Verify);


runningTask = myTask;
reader = new AnalogMultiChannelReader(myTask.Stream);
 

// marshals callbacks across threads appropriately.
reader.SynchronizeCallbacks = true;

reader.BeginReadWaveform(samplesPerChannel, new AsyncCallback(myCallback), null);

 

when click the start button to wait the signal coming, but I do not give the trigger signal, the DAQ start, and get the rubish data.

 

I do not know why,Could some one coudl give help?

 

Thanks very much.

 

0 Kudos
Message 1 of 1
(4,997 Views)