<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Edge counting with digitial pause trigger in Counter/Timer</title>
    <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526174#M4841</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Adam,&lt;/P&gt;
&lt;P&gt;I have tried to run the program without stop task and just having clear task, but still i m gettin same error as @ task not specified @ &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2007 15:07:38 GMT</pubDate>
    <dc:creator>Rajaram</dc:creator>
    <dc:date>2007-05-24T15:07:38Z</dc:date>
    <item>
      <title>Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/524574#M4809</link>
      <description>&lt;DIV&gt;Hi &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I should write a program for edge counting with digital pause trigger in visual basic.&amp;nbsp; I have found an example of using pause trigger in edge counting but it is written in C#. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Steps in the program followed is:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1) creating task&lt;/DIV&gt;
&lt;DIV&gt;2) creating count edge channel objecy&lt;/DIV&gt;
&lt;DIV&gt;3) configuring thr trigger ( where i have been strucked)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;code in c # is:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;taskname.triggers.pausetrigger.digitalleveltrigger ( source, level)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;When i tried to look for trigger function and to configure it in Visual Basic, I have not found any trigger function to set/configure in the function library&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 May 2007 10:19:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/524574#M4809</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-22T10:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525333#M4823</link>
      <description>&lt;DIV&gt;Hey there,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I'm looking into this for you, but before I go into too much detail with it.&amp;nbsp; What versions are you using?&lt;/DIV&gt;
&lt;DIV&gt;What Hardware are you using?&lt;/DIV&gt;
&lt;DIV&gt;What version of VB are you using?&lt;/DIV&gt;
&lt;DIV&gt;What version of DAQmx are you using?&lt;/DIV&gt;
&lt;DIV&gt;and&lt;/DIV&gt;
&lt;DIV&gt;What device are you trying to set the Pause trigger up on?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I think the properties you are looking to set are in the "DAQmx.DAQmxSetDigLvlPause~" options.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But with more info I can't be sure. Have a look at those properties.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanx&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;AdamB&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 May 2007 11:32:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525333#M4823</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-23T11:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525374#M4824</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi Adam,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for your response. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;DAQmx version: 8.3&lt;/DIV&gt;
&lt;DIV&gt;VB version: VB 6.0&lt;/DIV&gt;
&lt;DIV&gt;Hardware: PCI 6602&lt;/DIV&gt;
&lt;DIV&gt;I am trying to use one of the counters to act as trigger&amp;nbsp; (say counter 0) , which I would like to use it as a trigger (Gate) for other 7 counters. In one of my other post I got a reply that I can use PFI to set up trigger instead of RTSI signal,&amp;nbsp; I am new to all these things, it will be great if i am getting some explanation of using trigger in counters. In that C# example, I tried to use the trigger source, with and without connecting to source supply, but still I am getting counts when the gate level is High, So could you suggest me about setting up the source as well. If any explanations needed, I am happy to state my problems clearly. This project I am converting from Traditional DAQ to DAQmx, I have attched my VB program and also the example C# program which I got from NI website for pause trigger.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;P&gt;Message Edited by Support on &lt;SPAN class="date_text"&gt;07-16-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:52 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2007 12:36:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525374#M4824</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-23T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525910#M4831</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Have you had a look at the function I showed you?&lt;/DIV&gt;
&lt;DIV&gt;These are the three setting you need to set in VB for the pause trigger:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;DAQmxErrChk DAQmx.DAQmxSetPauseTrigType(taskHandle As Long,data As DAQmxTriggerType4)&lt;BR /&gt;DAQmxErrChk DAQmx.DAQmxSetDigLvlPauseTrigSrc(taskHandle As Long,data As String)&lt;BR /&gt;DAQmxErrChk DAQmx.DAQmxSetDigLvlPauseTrigWhen(taskHandle As Long,DAQmx_Val_Level1_High/Low)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The "taskHandle" is the Handle for the counters task.&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;DAQmxTriggerType is deciding whether you need digital trigger,analog etc.&lt;/DIV&gt;
&lt;DIV&gt;In the&amp;nbsp;"..TrigSrc..." function the "data" is the string value of the line you are using as the source for the trigger&lt;/DIV&gt;
&lt;DIV&gt;and "...TrigWhen..." sets the trigger level you want to start and stop the trigger. "DAQmx_Val_Level1_High" or "DAQmx_Val_Level1_Low"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Hope all this helps&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;AdamB&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 May 2007 08:18:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525910#M4831</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-24T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525938#M4832</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Here's the code I made&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;AdamB&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 May 2007 09:04:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525938#M4832</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-24T09:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525940#M4833</link>
      <description>&lt;DIV&gt;Hi Adam,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for your response, I am not able to open the file you sent, as there is no .frm or .bas files in it. It has only one .vbp file. Could you please make sure all the files has been zipped?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 May 2007 09:12:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525940#M4833</guid>
      <dc:creator>Ram.</dc:creator>
      <dc:date>2007-05-24T09:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525949#M4834</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for your swift response, I am not able to open the VB project as there is no form in it. And also could you give some description about how the pause trigger works on that C# example, bcoz i tried using source connected to the pause trigger, but it gives same result irrespective of connection of source.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 May 2007 09:40:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525949#M4834</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-24T09:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525951#M4835</link>
      <description>&lt;DIV&gt;Hi there,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Here is the code in text format.&amp;nbsp; That's pretty much all you need.&amp;nbsp; I took the example code called CntDigEvents.vbp and added the following code before the start task function call:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAQmxErrChk DAQmx.DAQmxSetPauseTrigType(taskHandle, DAQmx_Val_TriggerType6_DigLvl)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAQmxErrChk DAQmx.DAQmxSetDigLvlPauseTrigSrc(taskHandle, "PFI0")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAQmxErrChk DAQmx.DAQmxSetDigLvlPauseTrigWhen(taskHandle, DAQmx_Val_Level1_High)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As for the C# code I am not familiar with C# so I don't think I can be a great help on that one.&lt;/DIV&gt;
&lt;DIV&gt;myTask.Triggers.PauseTrigger.ConfigureDigitalLevelTrigger(triggerSourceTextBox.Text, gateLevel)&amp;nbsp; This function is the main call for the pause trigger and all it is doing is setting the properties.&amp;nbsp; triggersource should be along the lines of "PFI0" or "Ctr0" and gate level defines whether the gate level is "high" or "low)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;How is the VB code going?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;AdamB&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 May 2007 09:52:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525951#M4835</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-24T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525956#M4836</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Adam,&lt;/P&gt;
&lt;P&gt;This has been a great help to me, I am writing an application in VB, so this is fine. I am writing a project with edge counting and using the pause trigger functions you have noted me. So hopefully there should be some process in my project. As you might have seen my traditional DAQ program which I have attached before,&amp;nbsp; I just want to write&amp;nbsp;the same functionality as our hardware, requirements and programming language has not changed except the driver ( DAQmx). Hope this could be a good start for to make the trigger work with edge counting function. I have written another project in VB for Pulse train generation, So the idea is giving the output of the pulse train as the terminal for pause trigger and giving the trigger output ( gate output) to&amp;nbsp;other 7 counters. Does is make sense ? or is there any other way around to solve this issue? &lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2007 10:04:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/525956#M4836</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-24T10:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526145#M4839</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Adam,&lt;/P&gt;
&lt;P&gt;I have written the program and it seems to be fine. but when i am stopping the task, I have two functions in it &lt;/P&gt;
&lt;P&gt;If taskIsRunning = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1) &amp;nbsp; DAQmxErrChk DAQmxStopTask(taskHandle)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2) &amp;nbsp;DAQmxErrChk DAQmxClearTask(taskHandle)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting an error " Error: - 200088 Task specified is invalid or does not exist. There is some error been generated when accessing cleartask.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2007 14:36:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526145#M4839</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-24T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526156#M4840</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hey there,&lt;/P&gt;
&lt;P&gt;Now you shouldn't normally get any kind of error using this, however the Clear task does actually&amp;nbsp;stop the task first.&amp;nbsp; And THEN clear the task.&lt;/P&gt;
&lt;P&gt;I would suggest taking out the stop task.&lt;/P&gt;
&lt;P&gt;AdamB&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2007 14:46:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526156#M4840</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-24T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526174#M4841</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Adam,&lt;/P&gt;
&lt;P&gt;I have tried to run the program without stop task and just having clear task, but still i m gettin same error as @ task not specified @ &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2007 15:07:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526174#M4841</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-24T15:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526183#M4842</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Sounds like you have already cleared the task previous to this part of the code.&lt;/P&gt;
&lt;P&gt;Have you traced through to see if this is repeated more than once?&lt;/P&gt;
&lt;P&gt;AdamB&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2007 15:12:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526183#M4842</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-24T15:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526190#M4843</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Yes I have checked it. there is no repetition. I have attched my program for your reference.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;P&gt;Message Edited by Support on &lt;SPAN class="date_text"&gt;07-16-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:53 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2007 15:19:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526190#M4843</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-24T15:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526617#M4847</link>
      <description>&lt;DIV&gt;Hi Adam,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I have written a VB program in generating a continuous/finite pulse in counter 0&amp;nbsp; and having the output of counter 0 as trigger source and it works fine. Thanks for your help. Now&amp;nbsp;I am working to implement the program functionality based on our application. I do have some questions&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1) When I select clear task , still I get the same error.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2) If I am using the program and if i tried to run it again, I get an message as source/terminal reserved. So I reset the device in MAX and it is fine. Is it possible for me to reset the device in the VB program itself? So that if I am closing my program the device should clear the reserved terminals.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 May 2007 10:36:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526617#M4847</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-25T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526633#M4848</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;I got another problem with generation of pulse. When I have continuous samples used in the function below:&lt;/P&gt;
&lt;P&gt;DAQmxErrChk DAQmxCfgImplicitTiming(taskHandlepulse, DAQmx_Val_AcquisitionType_ContSamps, numSampsPerChannel)&lt;/P&gt;
&lt;P&gt;it is working fine, it generates the pulse. But when I try Finite samples it is not working properly. There is no pulse being generated.&lt;/P&gt;
&lt;P&gt;Have attached the program for reference.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Message Edited by Support on &lt;SPAN class="date_text"&gt;07-16-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:53 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2007 11:24:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526633#M4848</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-25T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526634#M4849</link>
      <description>&lt;DIV&gt;Hi there,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What you need is to change the stop button code to this.&lt;/DIV&gt;
&lt;DIV&gt;Private Sub cmdstop_Click()&lt;BR /&gt;If taskIsRunning = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAQmxErrChk DAQmxStopTask(taskHandle)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAQmxErrChk DAQmxClearTask(taskHandle)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskIsRunning = False&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdstart.Enabled = True&lt;BR /&gt;End Sub&lt;/DIV&gt;
&lt;DIV&gt;You need to set the task is running to false at this stage to stop the code from trying to sample the counter again.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;That should solve the problem&lt;/DIV&gt;
&lt;DIV&gt;Thanx&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;AdamB&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 May 2007 11:36:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526634#M4849</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-25T11:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526641#M4850</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;Thanks a lot. That fix the problem, Still I have some problems in the program&lt;/P&gt;
&lt;P&gt;1) I need to reset the device everytime in MAX explorer to clear the reserved space, is there anyway to reset the device when I close the application?&lt;/P&gt;
&lt;P&gt;2) I tried to use Finite and Continuous samples , as I quoted in my previous post. I would like to use finite samples by specifying number of samples. Is there any way to work around this issue?&lt;/P&gt;
&lt;P&gt;3) I would like to reset the counter, Can I use this function &amp;lt; DAQmxResetCICountEdgesDir(taskHandle As Long, channel As String) As Long &amp;gt; or anything to work out&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2007 11:47:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526641#M4850</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-25T11:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526651#M4851</link>
      <description>&lt;DIV&gt;Hi there,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Sorry you keep posting after I read the first post and start answering so I miss the second lot of questions/problems.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;1)&amp;nbsp; If you clear off the task correctly (not using both stop and clear) you shouldn't get that problem.&amp;nbsp; If however you do still get that problem.. then you need a way to progromatically reset the device.....&lt;/DIV&gt;
&lt;DIV&gt;DAQmx.DAQmxResetDevice(deviceName As String) will work.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2) in what sense is it not working?&amp;nbsp; How many samples are you planning on outputting and at what rate? Do you get any errors?&lt;/DIV&gt;
&lt;DIV&gt;Tha finite pulse train will use 2 counters to do this.&amp;nbsp; Effectively one is set up to gate the other.&amp;nbsp; If you have set this for counter 0 then ctr1 is used to gate it.&amp;nbsp; If you set up as 1 the ctr0 is used to gate it.&amp;nbsp; And so on in pairs. 0-1,2-3,4-5 etc.&amp;nbsp; Make sure the adjacent counter is free.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;3) The only way to do this is to stop the task and then start the task again.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;AdamB&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 May 2007 12:09:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526651#M4851</guid>
      <dc:creator>AdamB</dc:creator>
      <dc:date>2007-05-25T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Edge counting with digitial pause trigger</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526712#M4854</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi there&lt;/P&gt;
&lt;P&gt;I m sorry about lot of questions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ok.&amp;nbsp;Other things&amp;nbsp;are working in the program and&amp;nbsp;no problem with it except pulse generation. &amp;nbsp;As I have attached my program, I have not used adjacent counters in it. I have used Counter 0 for pulse generation and counter 2 for other task. So there is no problem with the setting of counters. But when i tried to use continuous and finite samples, Continuous samples seems to work fine. But finite sample is not taking pulse generated in counter 0 as trigger source ( I hope no generation of pulse at that point).&amp;nbsp; I would like to generate finite pulse say with 1 number of sample. Could you look at my program and suggest me regarding this issue?&lt;/P&gt;
&lt;P&gt;Thanks a lot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2007 13:31:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Edge-counting-with-digitial-pause-trigger/m-p/526712#M4854</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2007-05-25T13:31:46Z</dc:date>
    </item>
  </channel>
</rss>

