Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

task.isdone doesn't work

Hi,

 

I have been working with VS 2010 for several month and I am still not very able in using it. I am writing a software that should control the set-up of an experiment by means of a DAQ USB 6251. I have a problem with the pulse train generator that I use as a trigger clock for managing two acquisition tasks that have to work simultaneously.

 

Here are the trigger task features:

 

triggertask.COChannels.CreatePulseChannelFrequency(counterComboBox.Text, _
"PulseTrain", COPulseFrequencyUnits.Hertz, idleState, 0.0, _
Convert.ToDouble(frequencyTextBox.Text), _
Convert.ToDouble(dutyCycleTextBox.Text))

 

triggertask.Triggers.StartTrigger.Type = StartTriggerType.DigitalEdge

 

triggertask.Triggers.StartTrigger.DigitalEdge.Edge = triggerEdge

 

triggertask.Triggers.StartTrigger.DigitalEdge.Source = triggerSourceTextBox.Text

 

triggertask.Timing.ConfigureImplicit(SampleQuantityMode.FiniteSamples, Samplesnumber.Text)

 

triggertask.Start()

 

As it should generate a finite number of samples I suppose that triggertask.isdone should change from false to true after the last pulse has been generated, but this doesn't happen. I need this function to start again the program once the first acquisition is complete.

 

Does anybody can help me?

 

Thanks 

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