How to use counter as an start and stop trigger in 6009

Hi ALL.
I'm using USB 6009 as a subject of to acquire data.
I would like to know on how to use the counter digital input as a start and stop trigger. 
The acquisition will only start when the first pulse of the digital signal is received and it will stop when the desired number of pulse is received.
I was trying to use the VI as attachment as my reference. However, after tried, the VI is not working for USB 6009 as the counter input cannot be used as a trigger.  
I would be happy if anyone could suggest me some ideas on this matter.
Thanks.
Attachments:
DigitalStartandStopTrigger.vi ‏32 KB

Hi Kate. 
Thanks for your response.
For your information, I've design my VI using the counter method. However, it doesnt work well. Please see the figure below. The file also attached with this reply.
 At first, the first counter from Device 2 will start counting. If the counting equal 0, then the acquisition for Device 1/AIO also the counter of Device 1/ctr0 begin acquiring data and counting the edges respectively.
However, when I did the test, it doesn't work as wanted. It is happened because when counter of device 2 in not equal to 0, the acquisition for Device 1 not happened as it will go to false state.
Is there anything that someone could suggest on how to start the acquisition for device 1 only and if the counter of device 2 is equal to 1. I would like the acquisition of device 1 start only when the counter of device 2 is equal to 1. I cannot use the trigger as 6009 is not support for it. 
-Fird- 
Message Edited by Fird on 07-02-2009 04:28 AM
Attachments:
Acquire Data Test 4.vi ‏27 KB

Similar Messages

  • How can I create software start and stop trigger in LabView using 6023E series DAQ card? I don't want to use the external trigger.

    I am using 6023E DAQ card to collect the signals, such as AE, Force, Torque from the machine. I want to collect only some part of signal for example between start triger and stop trigger. I'd like to know how I can creat those triggers in LabView from one of the channels that I am acquiring at the same time. I found one or two library file that is only for start trigger. I know that this is availabe in some of DIAdem functions. Please let me know if you have done some example for this requirement.

    If you are wanting to create a software trigger based on an analog input voltage in LabVIEW, there are several options. One suggestion would be to compare the voltage values from one input channel to a number within a loop. If the input voltage crosses that threshold (is greater than the number), have a case statement that will acquire data from the other channels. This would simulate a software start trigger in LabVIEW.

  • Start and Stop Trigger using PXI-6120 and DigitalSta​rtAndStopT​rigger.vi not working :-(

    Hello,
    I've been trying for a while now to get my PXI unit to capture a waveform between a Start and Stop (Reference) Trigger using the NI example DigitalStartAndStopTrigger.vi downloaded from the NI website. However, whilst the start trigger and stop trigger seem to be working i.e. the VI runs and stops at  the correct times there is never any data read from my DAQmx compatible PXI-6120 card. So I can see the VI is running around the aquisition loop but the Property Node AvailSampPerChan is always returning zero... this has me slightly puzzled. I thought this might just be a driver issue so I've updated my box to the following software versions (see below) and installed the latest drivers e.g. DCDNov07.exe (also from the NI site) but nothing has changed.
    my software as of now.
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.3.0.49152
    DAQmx 8.6.0f12
    Trad DAQ 7.4.4f7
    before I updated I had the same problem but with the following versions:
    Labview 7.1 (with the 7.1.1 upgrade applied)
    Max 4.2.1.3001
    DAQmx 8.5.0f5
    Trad DAQ 6.9.3f4
    So to cut a long story short I still have the same problem with the triggers... does anybody have any ideas what is going wrong?
    To add insult to injury it the traditional DAQ example ai_start-stop_d-trig.vi was almost working correctly before I did the upgrade. It had the strange behaviour of capturing the AI0 channel but on the wrong edges (e.g. if I set Start on Rise and Stop on Fall it would do the opposite, Start on Fall and Stop on Rise).
    I'm going to leave my box doing a mass compile over night but i'd really like it if someone could suggest a solution or point me in the right direction.
    Many thanks,
    Mike

    Hi Graham
    I'm out of the lab today but I'll try and answer your questions as best I can...
    1) What are the values you have set for Buffer size, Rate, samples per read and post trigger Samples?
    At the moment I have all the values (e.g. sample rate, buffer size etc) unchanged apart from the ones I mentioned in my previous post (see above). I have in the past played around with changing the buffer sizes and rates in the example VI but as this appeared to have no effect on the behaviour I now have them setup as in the download.
    2) Does the program end after the stop trigger is implemented?
    Yep, if I toggle the trigger line high then low I see the program exits the read loop and the VI stops running as expected.
    3) Lastly can you give me the details of triggering method. Are you
    using a digital train of users set digital pulses? how long is the
    program running.I'm using the WriteDigChan.vi to manually toggle the first digital line of the PXI-6733 card which is wired directly to PFI0 of the PXI-6120 card. Generally, I just start the VI running  and then toggle the line high, wait a couple of seconds and then toggle it low.
    To me it all looks like it should be acquiring samples but as I said yesterday it just refuses to fill the buffer with any data (and hence no samples are read).
    Any ideas? and thanks for you help,
    Mike

  • Using the spacebar for starting and stopping a clip does not work

    Hi!
    The spacebar for starting and stopping the playing of a clip in the viewer of a sequence in the timeline has a live of its own. Without changing any setings, it sometimes works, but mostly not. Is there a seeting, I have not figured out yet? While in a session with Final Cut Express, it does not change its behavior. It starts with a working or not working spacebar. The same applies to the arrows to go back and for a frame, or back and for a clip. If the spacebar does not work, the arrows do not work either.

    thanks everybody. But my spacebar and arrow keys still do not work.
    As uggested, I deleted the preferences in the library (which is also what is suggested by fcpbook.com/Misc1.html)
    I am used working with Final Cut for some time now. And just got myself a new iMac and the program. So everything is quite new. I did not change any settings so far.
    The first 2 days everything was fine.
    Then, one day, the spacebar and the arrow key stopped working. Not in the middle of a session, but when I started the FCE new. Inbetween, it worked for some time. Now, the spacebar is gone again.
    It's just the function of playing the clip that does not work. In whatever window (timeline, viewer). The function of the spacebar to make a space (for example in te name of clip or in a text file) works fine.
    I would not mind the spacebar that much, but I miss the arrow keys to go from frame to frame, or from clip. It's strange.

  • How to use Counter/timer PWM Pulse as a trigger to aquire data??

    (1) I'm using the NI DAQpad 6015 multi-function card with the new DAQmx Driver. I'm using the counter/timer (counter 0, and counter 1) to generate 2 different PWM pulses to supply my sensor circuit. each pulse is a 1 second in duration. The pulse with 5m.sec duty cycle is the supply for my sensor. In addition to that, I'd like to use the 5 m.sec as a trigger to aquire the sensor reading. The DETECTIN POINT should be the middle of the HIGH State of the 5m.sec pulse (i.e just at the 2.5 m.sec point of the high state).  
    (2) another point is: how to display the counter/timer pwm output pulses on the front pannel?? 
    Attached is the VI i'm using (Complete PWM.vi)
    regards,
    Attachments:
    Complete PWM.vi ‏49 KB

    Hello alaali,
    It sounds like what you need is a trigger delay property node.  This property node specifies an amount of time to wait after the Start Trigger is received before acquiring or generating the first sample. This value is in the units you specify with Start.DelayUnits.  This way you can still acquire using the trigger, and you can specify the delay to be 2.5 ms so that the point that you actually acquire will be 2.5 ms after the trigger.
    Hope this helps.
    Regards,Message Edited by Raajit L on 04-23-2007 04:34 PM
    Raajit L
    National Instruments
    Attachments:
    DAQmx Trigger Delay.jpg ‏6 KB

  • Acquiring data continuously with a start and stop trigger

    I am currently acquiring data continuously (1000 samples at 5k/s) using a start trigger to start the acquisition and stopping the acquisition with a digital line. The problem with this is that I want the acquisition to stop immediately on a trigger, in otherwords I don't want it to finish with 500 or 200 samples of useless data. I am using a PCI 6024 E. Any suggestions would be appreciated.

    The trick will be to minimize the number of post-trigger scans that will occur after your stop trigger. The stop (reference) trigger requires a minimum of 2 post-triggered scans. Therefore, the way to stop your acquisition as soon as possible is to configure your stop trigger to have only 2 post-triggered scans.
    I've included a little bit of code to illustrate this in LabVIEW 7.0. The number of post-trigger scans will equal the buffer size less the number of pre-trigger scans. Since the minimum number of post-triggered scans is 2, we'd have to set the number of pre-trigger scans to the buffer size less 2. This is wired as the minimum number of pre-trigger scans acquired input to the AI Control.vi in the example.
    This should do what you're
    after. Best of luck to you as you get this all put together.
    Jim Laudie
    Applications Engineer, National Instruments
    Attachments:
    example.vi ‏85 KB

  • Start and stop acquisition using a pulse train

    Hi
    As illustrated in the attached picture I would like to use a pulse train ( connected to PFI line) as a triggering devide to start and stop acquisition on rising edge
    Could you please help me to do it in LabVIEW. My problem is I have to use the same line to start and stop ( trigger and reference trigger ) and both should use rising edge
    Thanks
    Attachments:
    pulse train.jpg ‏33 KB

    tintin_99 wrote:
    I greatly appreciate help on this. How can I use a pulse train to start and stop data acquisition on rising edges as described in attached picture.
    Have a look here
    CLA, LabVIEW Versions 2010-2013

  • Pump Start and Stop?

    While making the I/O list, I have identified theDigital Ouput,  Port0/line1 as start for the pump and Digital Output, Port0/line1 for stop i.e is two port, lines, of the pump...but while making the software, VI, I am using the verticle toggle switch to consider the start of pump as up and stop as down of the toggle switch which works at one DO port line.
    How can I give two signal start and stop to the pump?
    Should I use two buttons? Which ones?
    I am confused. Please let me know.

    What do the two DO lines do?  Ultimately there will be one device (contactor, relay, thyristor, ...) which has two states (like a single boolean) to turn the pump on and off.  How do the two digital lines connect to that control device?  Are they inputs to some kind of electronic pump controller or are they simulating the standard industrial Start and Stop buttons via relays? Something else?
    You can use the single switch on the front panel and the boolean Not function to create the two lines for your DO.
    Lynn

  • Creating OS400 tasks to start and stop CCMS agent

    Hi all,
    Does anybody have any information about how to create the jobs to start and stop the CCMS agent on an iseries machine?
    Regards,
    Koen Engelen

    All,
    Starting the job interactively works great, I'm able to start and to stop the agent.
    But when I schedule the job in the jobscheduler it does not run. The following error is given:
    ILEWRAPPER calling sapccm4x: cannot find PASE executable "sapccm4x" in path
    Can anyone please help?
    Best regards,
    Koen Engelen

  • How do I use the commands to start and restart the jmqbroker normally?

    How do I use the commands to start and restart the jmqbroker normally?
    Because I have tried to use "jmqcmd shutdown bkr" and then tried to type
    "jmqbroker" to start up. My screen hangs up and seems that the process
    hangs up. The message is
    [28/Jun/2002:18:29:07 GMT+08:00] [B1060]: Loading persistent data...
    [28/Jun/2002:18:29:08 GMT+08:00] [B1039]: Broker "jmqbroker" ready.
    The prompt is hanged until I press CTRL-C.
    Then I got the following message:
    [28/Jun/2002:18:32:07 GMT+08:00] [B1047]: Shutting down broker...
    [28/Jun/2002:18:32:07 GMT+08:00] [B1077]: Broadcast good-bye to all
    connections ....
    [28/Jun/2002:18:32:07 GMT+08:00] [B1078] Flushing good-bye messages
    [28/Jun/2002:18:32:07 GMT+08:00] [B1056] Cleaning up persistent
    store...
    [28/Jun/2002:18:32:07 GMT+08:00] proceessing 0 messages and cleaning
    up 0 files...
    [28/Jun/2002:18:32:07 GMT+08:00] [B1063] Done
    [28/Jun/2002:18:32:07 GMT+08:00] [B1048]: Shutdown of broker complete.
    Then, I use jmqadmin to invoke the console, I can start the broker
    again, it gives me
    Error encountered while connecting to the broker: "MyBroker":
    Broker Host: 'localhost'
    Primary Port: '7676'
    [C4003]: Error occurred on connection creation, - caught
    javax.jms.JMSException
    Please verify that there is a broker running on the specified host and
    port.
    I used ps -def | grep jmq there is no process anymore.
    Is it a bug? Would somebody have any idea on what went wrong?

    'jmqbroker' is the command to start a broker.
    When you type 'jmqbroker' in a command window,
    unless you put it in the background, the shell
    prompt won't return until the broker is shutdown.
    So when you see 'Broker "jmqbroker" ready.', it tells
    you that the broker is running and is ready.
    When you CTRL-C the process, it has the same effect
    as using jmqcmd to shutdown the broker. And so after that,
    there's no jmq processes running since you have just
    shutdown the broker.
    Remember that the jmqcmd/jmqadmin 'restart' command is to
    restart an already running broker. jmcmd/jmqadmin does
    not support starting a new broker instance.
    If you are using csh, end the jmqcmd command with an ampersand ("&")
    to have the broker running in the background. An alternative is to
    stop the process with Ctrl-Z then input the command "bg" to have that
    process resumed in the background.
    The problem with not being able to start a broker using the
    administration console is a documented limitation of the product that
    Yvonne also mentioned. Check the Administrator's Guide for that.

  • How to Starting and Stopping OC4J Server using Ant

    How to Starting and Stopping OC4J Server using Ant
    In the ant task definitions for ant-oracle-classes.jar (see antlib.xml) there are two tasks called
         name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"
         name="shutdownServer" classname="oracle.ant.taskdefs.deploy.JSR88ShutdownServer"
    I thought that these would shutdown and start the OC4J server. I guessed the parameters as – (Does anyone know where 50 ant targets are documented?)
    <oracle:restartServer
    userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    <oracle:shutdownServer
         userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    This, however does not start and stop the SOA suite. To do that I've hacked this solution together -
    <path id="oc4j.console">
         <pathelement location="${oracle.home}/config"/>
         <pathelement location="${oracle.home}/jlib/startupconsole.jar"/>
         <pathelement location="${oracle.home}/opmn/lib/optic.jar"/>
         <pathelement location="${oracle.home}/lib/xmlparserv2.jar"/>
    </path>
    <target name="stop" description="stop oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="stop"/>
         </java>
    </target>
    <target name="start" description="restart oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="start"/>
         </java>
    </target>
    This sort of works – except when the SOA suite doesn't stop cleanly – and needs user interaction to press a Close button. This isn't very useful when doing a continous integration build and deploy.
    So, does anyone have any suggestions or alternative methods to do this?
    - frank

    Actually if the server throws exceptions when it stops (which it always has since we applied patch 10.1.3.3) this technique will pause until a user responds to pop-up ... So a better way (I think) is -
    <target name="start" description="start oc4j server" depends="init">
    <java classname="oracle.appserver.startupconsole.view.Runner">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="start"/>
    </java>
    </target>
    <target name="stop" description="stop oc4j server" depends="init">
    <echo message="We expect OC4J *NOT* to stop cleanly, so we will timeout after 3 minutes ..."/>
    <java classname="oracle.appserver.startupconsole.view.Runner" fork="true" timeout="180000">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="stop"/>
    </java>
    </target>
    <target name="restart" description="restart oc4j server">
    <antcall target="stop"/>
    <!-- wait for server to quieten down -->
    <waitfor maxwait="2" maxwaitunit="minute">
    <not><http url="http://${oc4j.http.hostname}:${oc4j.http.port}"/></not>
    </waitfor>
    <antcall target="start"/>
    </target>

  • How to use Counter and variable in xslt

    All,
    How to use Counter in XSLT, and How to do a increament for a count variable?
    How to use a Variable in xslt? and How to define variable inbetween XSLT
    If I am using
    Count=Count+1, its throwin an error ...
    Error: Text is not Supported Under a XSLT Element: $count=$count+1
    Regards
    Francis
    Edited by: Francis on Aug 23, 2012 9:33 AM
    Edited by: Francis on Aug 23, 2012 11:23 AM

    How to use a Variable in xslt? and How to define variable inbetween XSLT
    <xsl:variable name="VariableName">
    <xsl:value-of select='/ns0:SyncItemListEBM/ns0:DataArea/ns0:SyncItemList/corecomEBO:ItemSpecificationGroup/corecom:SpecificationGroup[corecom:Name = "GROUP_NAME"]/corecom:Specification[corecom:Name = "SPECIFICATION_NAME"]/corecom:ValueText'/>
    </xsl:variable>
    How to use Counter in XSLT, and How to do a increament for a count variable?
    You can make use of for-each tag, its simplified in XSLT where you dont need counter if at all needed then you can use of position() to identify the loop counter.
    Thanks,
    Vijay

  • How to use start and reference trigger on HI-Scope digitizer

    HI,
    I would like to ask about the start and reference trigger with PCI-5124.
    I found an sample VI on the following link, however it doesn't work as I expected.
    http://zone.ni.com/devzone/cda/epd/p/id/2998
    The VI "start_and_reference_trigger.vi" can detect both start and reference trigger in my system and they start data acquisition.
    It starts data acquisition when both start and reference triggers are input.
    However what I would like to do is:
     1. Sampling rate at 200MHz with record length 1500 with one channel.
     2. Receive the start trigger (i.e. 50Hz)
     3. Receive the reference trigger (i.e. 50kHz)
     4. For every reference trigger, I would like to acquire the data, i.e. acquiring 1500 data for each 100 reference trigger (not with the combination with the start trigger)
    Start trigger: _|^|_________________________________________
    Ref   trigger:______|__|__|__|__|__|__|__|__|__|__|__|__|__|__|____
                                       ^    ^    ^    ^   ^   ^   ^   ^    ^    ^   ^    ^    ^   ^  
                                     trigger timings that I would like to acquire
    With the sample VI "start_and...", I found that it acquires when both start and reference trigger comes and the data acquisition is only after the one reference trigger. 
    I hope my explanation is understandable and I can have a solution soon.
    解決済!
    解決策の投稿を見る。

    Hi Tom 1225,
    Thanks for posting on Discussion Forum.  Based on your statement, I guess, what you want PCI-5124 to do is what general bench-top type oscilloscopes do.  To realize that functionality, at the end of each sampling of a record length, PCI-5124 has to rearm its trigger for its next sampling.  The amount of "rearm time" is listed in "trigger" section on 5124 manual, said that the rearm time is 10[us] when TDC is ON and 2[us] when TDC is OFF.  So, we have to keep in mind that, if one waveform of measured signal is shorter than 2[us] (TDC OFF), more than one waveform may fail to kick the trigger, because 5124 still rearming its trigger.     
    I made two samples and attached them on this post.  
    In "Sample SW Timing Trigger.vi", trigger rearm occurs at software timing, when the time NI-Scope Start function is called.  In "Sample HW Timing Trigger.vi", trigger rearm occurs at hardware timing.  As seen on the block diagram, for a hardware timing trigger rearm, the number in "number of records" of horizontal setting function should be equal to the times of the trigger-based measurements.  If you have any question on my sample VIs, feel free to ask.  If my post resolves your problem, please click on the green "解決策に決定" icon on my post.  
    Osamu Fujioka
    Applications Enginner 
    National Instruments Japan
    添付:
    Sample SW Timing Trigger Rearm.vi ‏28 KB
    Sample HW Timing Trigger Rearm.vi ‏31 KB

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • Starting and stopping timer using external inputs interfaced with labview

    hello,
    I have trouble finding how to start and stop the timer using external voltage or current pulse. we are interfacing a circuit to labview. so for that we need to count the time it takes between the two external voltages. We have to keep on comparing the voltages to some reference voltage. And when the external voltage crosses the reference voltage we have to start the timer and again we have to stop the timer using tha same logic. We need it for time calculation between the triggers.
    hope you can help.

    https://decibel.ni.com/content/docs/DOC-23334 is agood example to start. You need to modify it to include stop trigger.

Maybe you are looking for

  • Ajax Report Pull from another Page Pagination override

    We are on a time crunch and need to get this application working in a timely manner, any help would greatly be appreciated.. *[History leading up to problem]* We followed the code from this example http://apex.oracle.com/pls/otn/f?p=11933:48:44411421

  • SmartView 11.1.2 not remembering the last selected Planning page member

    Am I missing something here? In Planning web forms, if I have a dimension called "Cost Center" in the Page section of the POV of Form A, and I select Cost Center 12345, and then navigate from form A to form B, and form B has Cost Center in the Page s

  • Hidden showing up unhidden?

    I've had my system files showing up un-hidden, which they're not supposed to do. I had no trouble getting them hidden with terminal, but I was wondering why they showed un-hidden all of a sudden. Any suggestions?

  • Fatal .psd corruption on PS CS6 Trial

    Hi! I'm just testing out the PS CS6 trial version and something weird is happening. Suddenly my .psd got "corrupted" although it's not a big file with many layers. So I want to know if there's some general incompatibility with my rig and PS CS6 (comi

  • Ultra 5

    I am considering buying a used Ultra-5 workstation. It does not have a CD-ROM. Does anyone know if it uses a standard IDE CD-ROM and hard drive like a PC?