NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member XUV
Member
XUV
Posts: 5
0 Kudos

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 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page