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.