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

Similar Messages

  • I want cRIO to start and stop acquisition with push of physical button on cRIO, is that possible?

    When using my cRIO 9024 on the field, I prefer  to be able to start and stop acquisition with push of a physical button on cRIO. 
    I mean I don't want it to be "as start-up," I don't want cRIO to start acquisition as soon as the power is supplied. 
    Is that possible?
    Solved!
    Go to Solution.

    Hi Cashany,
    you surely can read that switch status. But there are easier (but more expensive) ways to switch a button. Fiddling with a pen or small screwdriver to switch USER1 isn't what I call "user friendly"...
    - You have atleast 2 voltage inputs on your module available. Use a switch to supply voltage to those inputs. Use a "real" button!
    - You have a serial port available. You could set some pins to GND or voltage and check their status inside cRIO/RT target...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 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

  • 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.

  • Start and Stop bpel using APIs

    Dear All,
    we have a production on 10.1.3.4
    we have a requirement to start and stop a list of BPELs including their adapters without shutting down the SOA Server.
    I could see in Process table there are values for life_cycle and active.
    is that the best way to inactivate a service ?
    Is there any API which can be used for the same ?
    Thanks for your advise.
    Best Regards
    Arc

    Hi,
    You can do certain things via IBPELDomainHandle (see [http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/com/oracle/bpel/client/IBPELDomainHandle.html]) but BPEL and the adapters are really no more than j2ee applications that run in an oc4j container. If you want to stop bpel or adapters you can stop the applications from the enterprise manager website. I think there are also oc4j administration java api's but i have no experience with them. I would certainly not update dehydration store tables.
    Kind Regards,
    Andre

  • How can I use the pulse train from a 6602 to trigger an niFGEN and niSCOPE on each rising edge of the pulse train?

    Hello,
    Here is my application: I need to use a 6602 counter/timer to generate a pulse train of certain frequency and duty cycle. On each rising edge of this pulse train, I need to output an arbitrary waveform on Ch. 0 of an niFGEN (5422) AND acquire data from CH. 0 of an niSCOPE (5124). I also need to synchronize the niFGEN and the niSCOPE to the same clock used for the pulse train (6602/ctr0). This process needs to continue until the user stops the system.
    I can generate the pulse train using the 6602 just fine using ctr0, but the pulse train shows up on OUT0 by default. When setting up the niFGEN and niSCOPE to trigger on rising/positive slope edge, OUT0 is not an option for either device as a source for the digital rising edge (pulse train). The main options for both are PFI0-3 and RTSI lines.
    Questions:
    1.) Is there a way that I can direct the pulse train to a location (such as an RTSI line) where BOTH the niFGEN and the niSCOPE can use it as a start trigger for each rising edge? I noticed in MAX that a route can be made between ctr0's internal output and a trigger line and others. If this is a solution, could you please explain how to accomplish this?
    2.) Once I configure the niFGEN and niSCOPE to be triggered on a digital rising edge, how can I effectively have this happen for every rising edge from the pulse train? In other words, can I just initiate the FGEN outside of the while loop and it will generate a waveform for each rising edge it sees at the source until the while loop is exitted?
    3.) Is setting a reference clock for the niFGEN and the niSCOPE the same thing as synchronizing both devices using the same clock that generated the pulse train? It is not clear to me the difference, and why it would necessarily be useful.
    Images of my current front panel and block diagram are attached. If you would rather have the actual VI's just let me know. Any help and/or explanation on this is greatly appreciated. Thanks in advance.
    Attachments:
    Front_Panel_Control.jpg ‏278 KB
    Block_Diagram_Control.jpg ‏263 KB

    Hello Cgifford,
    Welcome to National Instruments Forums.
    To output your signal to the PFI lines,
    you can use external connectios between OUT0 and PFI lines. You can also use
    the backplane to do so by routing into the same RTSI line.
    1)
    On the SCOPE and FGEN, the name of the
    terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
    need to route the signal using the property:
    You can also use the DAQmx route signal which perform the same opperation.
    2)
    This will depend on the frequency of
    your pulse train. If this is lower than about 10 ms, then you can probably
    place this on a loop and start and stop the acquisition every time. If the
    frequency is higher than this, you will have to use:
    -       Scripting on the FGEN side (read more)
    -       MultiRecord Fetch (more information in the scope help file
    section “Acquisition Functions Reading versus Fetching”).
    3)
    The short answer is yes. The longer one
    might depend on how tight you need the synchronization to be (us, ns, ps). For
    very tight synchronization, you should look into here.
    Message Edited by Yardov on 06-18-2007 03:14 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    property.JPG ‏7 KB

  • 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

  • Allow a user access to start and stop a particular service in Solaris 11 using RBAC controls

    So, using svcbundle I created a service called "oracle" that starts and shutdown a db. I'm aware of how to grant RBAC access to be a "service operator" to be able to control start/stop ALL services. But I'd like to grant a user access to start and stop JUST this service.
    in this document on page 15, it states that it's possible to do this kind of granularity but doesn't explain how to do it step by step.
    how does one achieve this?
    thanks.

    You need to add a property group such as
    <property_group name='general' type='framework'>
      <!-- to start stop oracle -->
      <propval name='action_authorization' type='astring'
      value='solaris.smf.manage.oracle' />
    </property_group>
    Then add the solaris.smf.manage.oracle authorization to the user profile.
    As an example, see Less known Solaris features: RBAC and Privileges - Part 2: Role based access control - c0t0d0s0.org

  • 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>

  • Starting and Stopping Server from Administration Console without using system ID

    Hi,
    I tried to create another user in the ACL and add it to the Administrators
    group. When I connect to the admin console using this user I receive error
    message NoAccessRuntimeException. Can anybody show me how ti configure user
    to access the console to start and stop managed server. I am using WebLogic
    6.1 SP1. TIA.
    regards,
    Rudy

    Any user added to the Admin group should be able to use the weblogic.Admin
    utility and stop the server and access the console. So if we add Rudy as a user
    to the Admin group then Rudy should be able to stop the server and also use the
    weblogic.Admin commands. however, you cannot start the server with rudy's
    password. You will require a system password for starting the server.
    Please check if the user has been added correctly to the Admin group. you can
    check this in the fileRealm.properties file:
    user.rudy=0x751cc5f18261ba5e570c19a0d2d3cc29a5c5de63
    group.Administrators=system,rudy
    hope this helps,
    Mihir
    Rudy Sutjiato wrote:
    Hi,
    I tried to create another user in the ACL and add it to the Administrators
    group. When I connect to the admin console using this user I receive error
    message NoAccessRuntimeException. Can anybody show me how ti configure user
    to access the console to start and stop managed server. I am using WebLogic
    6.1 SP1. TIA.
    regards,
    Rudy

  • Add-on  starting and stopping using Buttons In SAP BusinessOne

    Hi,
    I have a requirement that   Add-on should be  start and stop should  be done using Button.  When ever i click on Button add-on should start and  after click the button add-on should be stop...
    anyone  have any idea...
    Thanks,
    Y.

    Well... stopping it is no problem, you can stop the addon with a button. But starting it with a button? What is going to place this button in B1? And what is going to handle the event of the button being pressed to start the addon?
    This can't be done without creating another addon (or using an existing one) just to create the button and listen for its event. So it kind of defeats the purpose.
    But all users can have access to addon manager, why not just trigger it from there, where there already are Start and Stop buttons?

  • 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.

  • Start and stop Cisco Secure ACS services using batch.

    Hello.
    I need to start and stop Windows service using a batch.
    What is the correct order?
    Thanks.
    Andrea

    Here is the batch file I use to stop and start services on ACS 4.x Windows and it works perfectly. @ECHO OFF net stop csmon >null 2>&1 net stop cslog >null 2>&1 net stop csdbsync >null 2>&1 net stop csauth >null 2>&1 net stop csadmin >null 2>&1 net stop cstacacs >null 2>&1 net stop csradius >null 2>&1 net start csauth >null 2>&1 net start csmon >null 2>&1 net start cslog >null 2>&1 net start csdbsync >null 2>&1 net start csadmin >null 2>&1 net start cstacacs >null 2>&1 net start csradius >null 2>&1 echo Complete restart finished exit 0

  • When I acquire data using USB6008 and NI_DAQmx Base in VC++, Shall I start and stop the task in ONTimer function?

    void Ctest2Dlg:nTimer(UINT nIDEvent)
       DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
       DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByScanNumber,data,100,&pointsRead,NULL));
      DAQmxBaseStopTask (taskHandle);
    If I do this, the program will halt in about half minute. But if I do not start and stop task in OnTmer function, the program will not halt and the data acquired is not corrected.
    Please help me! Thanks

    This is a duplicate post.  Please post any new replies to the linked forum.
    Samantha
    National Instruments
    Applications Engineer

  • HT1349 cant change start and stop time on aac file using PC

    I am trying to create a ringtone for my iphone.   So i created a AAC file of the song i wanted as a ringtone.  And I am doin exactly what the videos say.  So when i click Get INfo on the AAC file, it says i am supposed to be able to change the start and stop type. but it doesnt allow me to do so. 

    Set the start/stop where you want. Then right-click on the song in your library and choose "Convert Selection to mp3." This creates a new shorter file, files it by artist/album, and adds it to your library. It will play correctly inside or outside of iTunes.
    After you've confirmed the new one plays OK, you can either keep or delete the longer original, as you wish.
    Note that the above assumes that the source file is unprotected, which is true in your case, since you are starting with an mp3.

Maybe you are looking for

  • Window 2000 & RMI client losing network connection

    We have a client/server java application communicating via RMI. The application runs perfect when the network is running smoothly. However, once the client loses connectivity with the network, the client runs in offline mode (as expected). However, o

  • How do I not sync an application AND not delete it.

    I have airshare installed on my iPod touch. and it allows me to use the iPod touch as a small external wireless file server. At the moment I have about 20GB of data managed by airshare. Every time I sync the iPod touch with iTunes, in addition to bac

  • Iphone and windows 8 does not work together

    Can't sync iphone 3GS or 4 with windows 8. Anybody have a solution for this?

  • External hard drive is hidden and I can't get to it

    I got the bright idea to hide the icon of my Lacie firewire hard drive from my wife's account. It disappeared from my desk top as well and now I can't get to the information on the hard drive. System profiler says it is attached to the firewire port.

  • Cleaning a B&W

    Where can I find instructions on taking off all the plastic faceplates and bezels on a B&W G3 tower? I have removed everything but the large side panels... Any ideas out there? Thanks - this tower can REALLY use the cleaning...