How to implement start & stop triggers when # scans unknown on ni5112?

I want to initiate a data capture trigger on the leading edge of a pulse & then stop the trigger on the next leading edge of the same pulse, using NI 5112 Scope card & LabVIEW v5.1. How to accomplish?? Any help appreciated!

You can implement a start and stop trigger but not with an arbitrary number of points.
The 5112 has two triggers the Acquisition Arm and the Record Arm.
The Acquisition Arm trigger enables the Scope to start taking pretrigger data.
The Record arm trigger is often call the Stop trigger or Reference Trigger. Based upon the Reference Position the board will acquire X pretrigger samples and Y post trigger samples. The Reference trigger defines the transition from pre to post trigger. If you set all of your points to be pretrigger (i.e. 100% reference position) then the Reference trigger will stop acquistion on the trigger. One thing to note: the scope will not be ready to accept the record trigger until it has acquired all the pretrigger points. The scope
will only return one record size of data. Therefore the first samples will be lost.
For example I would like to start a acquisition with a trigger on PFI 1 and use edge triggering on channel 0 to stop the acquisition. I need at least 1000 points.
You will need to make the following changes in the code. Start from the niScope EX Configured Acquisition.vi and set up the triggering for Edge Trigger. Set your minimum record size to 1000 samples. On the diagram go to the Edge Trigger Case of the Triggering Selection Case Structure add a property node before the configure edge trigger similiar to the attached screen shot. Change the property to Acquisition Arm Source found in the synchronization menu. Change the property to write and create a string constant. The available sources for the Acq Arm are PFI 1,2 and RTSI 0-6. The syntax needs to match the following: "VAL_PFI_1". You will miss the edge trigger if you have not already acquired 1000 samples from the acquistion trigg
er and you will only get back 1000 samples.
Good luck and let me know if you have any questions.
Mike Taylor
Attachments:
acqarm.jpg ‏66 KB

Similar Messages

  • How to implement start & stop ai triggers when # scans unknown

    I can't seem to find an implementation example for this application.
    Some are close but seem to have a big gap on close examination.
    The application is to log an unknown number of samples for a
    single rotation of a variable speed drum. The drum is connected
    to a tachometer which generates 1 pulse per revolution and is the
    trigger source.
    The user will initiate the data collection and only a single
    rotation's
    worth of data need be collected and displayed.
    The board is a PCI 6111E sampling a single input at ~2 Megahz.
    All the examples I've found using a start and stop trigger depend
    on knowing how many scans to acquire.
    Is there any way to get around that? It seems so simple to
    have a
    start and stop pulse, a scan rate constant, and just get
    the data out of a buffer. But it does not seem to be that simple
    or am I missing something here?
    There is also an issue with the identical tach signal being used
    for both the start and stop trigger. I think that can be gotten
    around by using a divide by n counter and feeding that to
    trigger config vi but if anyone has any suggestions for that,
    they would be greatly appreciated.
    Gene Couch

    I'm afraid I can't help you beyond that. We use NI boards and NI-DAQ library
    of functions in custom control systems with software written in C++. I have
    not had opportunity to use LabView. Sorry.
    gcouch wrote:
    >On 5 Jun 2000 09:38:46 -0500, "J. Wolters" >wrote>Thank
    you for the response but I'm not sure what the DAQ_Rate function>is. With
    LabVIEW 5.1 it does not appear in the DAQ pallette and I>cannot find it in
    the example vi's. Do you know where it can be>found?>>>>>>Have you looked
    that DAQ_Rate function? You should be able to use this function>>to obtain
    your # of samples.>>>>>>gcouch wrote>>I can't seem
    to find an implementation example for this application.>Some>>a
    re close but
    seem to have a big gap on close examination.>>The application>>is to log
    an unknown number of samples for a >single rotation of a variable>>speed
    drum. The drum is connected>to a tachometer which generates 1 pulse>>per
    revolution and is the>trigger source.>>The user will initiate the data>>collection
    and only a single>rotation's>worth of data need be collected and>>displayed.>>The
    board is a PCI 6111E sampling a single input at ~2 Megahz.>> >>All the examples
    I've found using a start and stop trigger depend>on knowing>>how many scans
    to acquire.>>Is there any way to get around that? It seems>>so simple to>have
    a start and stop pulse, a scan rate constant, and just>>get>the data out
    of a buffer. But it does not seem to be that simple>or>>am I missing something
    here?>>There is also an issue with the identical tach>>signal being used>for
    both the start and stop trigger. I think that can>>be gotten>around by using
    a divide by n counter and feeding that to>trigger>>config v
    i but if anyone
    has any suggestions for that,>they would be greatly>>appreciated.>>Gene Couch>>>

  • How does a workflow get triggered when we create a Shopping cart

    Hi all,
    In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
    Thanks&Regards,
    Hari

    Hi martin,
    yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
    Thanks&Regards,
    Hari

  • How do i detach a document when scanned with several documents?

    how do i detach a document when scanned with several documents?

    You would need the full version of Adobe Acrobat for that. Adobe Acrobat Reader cannot accomplish this at all.

  • This is embrassing, how do I start a backup when my Iphone is plugged in.

    This is embrassing, how do I start a backup when my Iphone is plugged in? I need to retrieve deleted notes.

    http://support.apple.com/kb/HT1766

  • CF8 dev edition - how do you start / stop server?

    mac osx - CF8 dev edition - how do you start / stop server?
    I would like to turn off CF8 auto start on boot up and
    manually be able to start and stop the server...
    Q: How do I set this up?

    > Now, I am also interested in turning off CF8.01 "auto
    start on boot up"
    > (currently set to that now)
    >
    > Q: How do I turn this auto start off?
    >
    > Hi folks - I'm still interested in setting the CF server
    on MAC OSX 10.5 to
    > *NOT* Auto Start - How do I turn this auto start off?
    I googled "cf8 osx don't autostart", and turned up this:
    http://www.feed-squirrel.com/index.cfm?evt=viewItem&ID=96307
    Does that make sense? It's all a bit Greek to me because I've
    not used a
    Mac for...
    crikey...
    TWENTY YEARS.
    Adam
    (suddenly feeling rather old)

  • How to adjust Start/Stop position of a song on the iPhone (not iTunes)?

    Hello all,
    Before I caught my flight today, I decided to make a ringtone of my new favourite song. Obviously one of the steps in doing so involves selecting a specific start and stop position within iTunes be fore creating the ringtone.
    So I got on the plane and realised that I didn't remove the start/stop positions on the song after creating the ringtone. Now i'm stuck with only a 40s interval being able to be played!
    Please tell me there is a way to change the start/stop position of the song within the actual iPhone as I won't have access to my iTunes library for quite some time!
    Any help appreciated.
    Regards
    iPhone 3G2 32bg, 3.1.2

    No

  • How to check/start/stop hardening Service?

    Dear All,
    I want to check on Solaris 10 whether it has hardening service or not, and also want to start/stop this service.
    Please give any idea or advice.
    Thanks and regards,
    Heng

    Hi Heng,
    System hardening requirements changes from environment. So It should be designed to suit your infrastructure. The topic is too big to discuss here.
    I will give some examples of major things done in hardening.
    User level Security.
    1) Password complexity
    2) Restrict multiple login attempts.
    3) Log all failed login attempts
    4) configure pam module
    5) Use RBAC to deligate
    6) Restrict root login to console only.
    7) disable passwordless logins to any users
    8) disable services like rsh rlogin and related services and restrict access through ssh only.
    9) ENABLE & Configure BSM
    10) Enable Auditing
    11) disable/lock all unused system accounts.
    12) enable password encryption (/etc/shadow)
    Network Security
    1) Disable all unwanted services. (svcadm disable service on solaris 10)
    2) disable unused nonsecure services like telnet, ftp etc.
    3) tcpwrapers (restrict the network communication to the required subnets only)
    4) disable unwanted inetd services
    etc etc etc... discussed very few things from the normal hardening, and these things vary from environment to environment.
    Regards
    JKGN
    Edited by: 878434 on May 25, 2012 1:16 AM

  • How do I start, stop and restart a sequence with a periodic input?

    Hi,
    I have written some code that will monitor my com port (rs-232) continuously for an ASCII character (in this case a 'P'). When the P is received, I want a sequence structure to start working. The P will only appear once for a short while, but the sequence should carry on running until it finishes all the frames. On the next time a P appears on my monitor, I want to either stop the sequence structure regardless of which frame its in and restart the sequence from the beginning again or to run the sequence from the start again if it has already completed all the frames.
    What sort of structure do I need to do this, are there any examples?
    James

    James,
    Indiana is correct, my take on this is similiar.
    If you have a 3 element sequence structure for example which runs if 'P' is returned from your COMs thread, you will need to query a variable in each element of the sequence in order to suspend execution of the next/remaining elements in the sequence if this event occurs. You can do this by reading the variable that your COMs thread sets using a case structure in each element of your sequence. In order to re-run your sequence if 'P' is returned during the execution you can simply set the suspend variable and ensure the code is in a while loop to recall the code.
    See the attached example code/screen shot:
    This is however not an elegant solution and the best way would probably be using the events structure and a user event to queue the P events. This is available in 6.1 but I believe its the professional package. See also my implementation using this method, again attached below:
    Hope this helps,
    Kind Regards
    Steven Bird
    Applications Engineer
    National Instruments
    Attachments:
    Example.JPG ‏194 KB

  • ARD 3 stops responding when scanning across subnets

    I am running into he same issue over and over... an
    Occasionally (although it seems to happen more and more as time goes on) a scan will look like it is running but will fail to find anything. If I try to stop the scan it ignores the command, I will then get the spinning beach ball and ARD stops responding. This happens while scanning on or multiple subnets. I am running the admin console on an Intel iMac and a G5 Xserver. I've re-installed ARD twice (not a quick process) will no luck. I am running 10.4.6 fully patched.
    The failure to scan seems tied to an issue where an established list will fail to "see" any systems on it... I've been deleting and rebuilding the list manually to get around this but with limited success. I am inclined to blame my network as there are some oddities in how it handles cross subnet traffic as well as severe reverse DNS issues....
    has anyone else seen this behavior?

    Problems scanning where adding a workstation manually works would indeed seem to be an issue with the routing between your subnets. My guess, and this is just a guess at this point, is that your routers are blocking the scan (this may be deliberate on the part of the network admins as a security measure) and that ARD is taking a long time to time out waiting for replies.
    The lockup when you try to cancel is a bit of a puzzle, though. A few questions:
    - does it happen on both your admin systems, or just one and if so which?
    - are the two admin stations on the same subnet, or on different subnets?
    - when you reinstalled ARD, did you go through the full uninstall process?

  • Solved: ADF BC and primary keys - how to implement without using triggers

    Using the following OBE as an example:
    http://www.oracle.com/technology/obe/obe9051jdev/ADFWorkshop/BuildingADFApplicationsWorkshop.htm
    There is just one view that has CustomerId defined as a primary key, where the value for the primary key comes from the customer_seq sequence.
    How do you create the model using ADF BC entity to create an entity object that has a primary key that needs to be populated by a sequence table when inserted WITHOUT using a trigger?
    Basically I want to just use ADF BC instead of toplink in the OBE. We do not use triggers to insert primary keys, so this example is a good match for what I need.
    Can someone help me out. How do I adjust the model to use just ADF BC - how do I define the entity object to use a sequence. Do I just override the create method in the impl? Is it that simple? Or is there a way to do this point and click in the entity tool.
    Thanks!

    I'm not the dba (or one of several) - so don't shoot the messenger... the dba's do not like to use triggers in the code. I have been told that this has caused too many problems in application development.
    I don't ask why, just deal with the fallout.
    I did try using the following code in a create method:
    protected void create(AttributeList attributeList)
    super.create(attributeList);
    SequenceImpl s = new SequenceImpl("customers_seq", getDBTransaction());
    // this.setCustId(s.getSequenceNumber());
    this.createPrimaryKey(s.getSequenceNumber());
    When I run the test program for the module, I get a new entry with the id empty and greyed out. I was hoping that this would be filled in on the actual insert, but no joy. As soon as I try to commit, I get an error:
    (oracle.jbo.AttrValException) JBO-27014: Attribute CustId in CustomersWSView is required)
    So what needs to be done?
    Message was edited by:
    klee

  • Intel Rapid Start stops working when RAM upgraded

    I have a brand new ENVY dv7-7212nr notebook running Windows 8 64-bit.
    This machine has Intel Rapid Storage Technology which caches hard disk data (I think on the 32GB SSD) and Intel Rapid Start Technology which stores active memory in the SSD cache (I think) when the computer enters a hibernation state.
    The first thing I did was upgrade the RAM from 8GB to 16GB.  It works fine, but then I get an error message "your system does not appear to have intel rapid start technology enabled."
    HP provides very little information on this, basically none.  I assume the memory is being cached on the SSD, but I don't know how to verify this.  Also I notice that acceleration is not enabled under the Rapid Storage Tecnology applet for either drive.
    I called tech support twice but the techs knew nothing about upgrading RAM beyond the usual and couldn't get it to work either.
    Does anybody even know exactly how the SSD is being used in my system?  That would be valuable information to me.
    Thanks in advance!
    This question was solved.
    View Solution.

    Thanks for reading my reply.
    The "little SSD" is still a drive and not a chip, although you are right that it is little and it is attached to the motherboard. It is little because its form factor is not the typical 2.5 inch size but what's call "mSATA". In fact, the service manual for this dv7-7212nr laptop shows you how you can remove and replace or upgrade this mSATA SSD:
    Below is a comparison of how small the mSATA form factor is to other drive sizes (from Left to Right: mSATA, 1.8", 2.5", 3.5"):
    So if I want to replace the mSATA 32 GB SSD with a 64 GB SSD, I would have to get a mSATA SSD, not the typical 2.5" ones. So for this dv7-7212nr laptop, there can be 3 total drives installed: one in the mSATA slot and two in the 2.5'' drive bays. However, the default configuration as sold by HP only has one mSATA 32 GB SSD and one 750 GB SATA hard drive, with the remaining drive bay empty.
    This dv7-7212nr laptop does contain all the latest (and perhaps more complex) technologies and HP probably does not expect the typical user/consumer to go and muck around all the default settings. However, if one is curious and willing to make the effort to learn, the material is just a google search away.
    Here are the instructions for setting up Intel Rapid STORAGE Technology (aka Intel Smart Response Technology): http://download.intel.com/support/chipsets/sb/intel_smart_response_technology_user_guide.pdf
    For this dv7-7212nr laptop, you can ignore steps 1-4 because the BIOS is already configured properly from the factory (unless some changes were made by the end user).
    Here are the instructions for setting up Intel Rapid Start Technology:
    http://download.intel.com/support/motherboards/desktop/sb/rapid_start_technology_user_guide_v11.pdf
    For this particular laptop, ignore steps 1-7 but it is important to do this first: set up Intel Smart Response Technology as above, making sure to allow enough space on the SSD for a hibernation partition that is equal to or greater than the total size of RAM installed. Then follow steps 8 to the end of the guide.  It is important to set up Intel Smart Response before Intel Rapid Start because Intel Smart Response will destroy all partitions and data on the disk (if you set up a hibernation partition for Intel Rapid Start first, it will be removed when you set up Intel Smart Response).
    I have successfully ENable and DISable these technologies on my laptop using the above guides (with my modifications). WARNING: back up all data before trying any of this.
    In your case, I agree that you can also disable Rapid START and just use the whole SSD for acceleration along with the 16 GB RAM upgrade.
    [Edit: update link]

  • How to avoid thread stops ? ( when try to read sockets inputstream ...)

    Hi ,
    When I try to call :
    Socket sok=new Socket (adres,poort);
    the thread looks to stop...
    How to avoid this ?
    Thx for tip etc !

    Take a look at NIO:
    http://www.google.com/search?num=100&hl=en&c2coff=1&q=non-blocking+java+socket

  • How do I start/stop a slide's animation?

    One slide of a slideshow I'm making I want the animation to end after it's completed without looping.  I can do this by adding the stop(); command into the last frame of that slide, but if I return to that slide, it will remain in the end position instead of replaying.  Is there anything I can do about this?

    When I start up Flash, there's a box immediately to the left of the workspace.  It doesn't actually have a title, but has a + and - at the top.  Inside the box, there's a thumbnail with the word "presentaion" next to it.  I right click on that, hit "Insert Screen", and a box appears under it branched out with the basic name of 'slide#'.  These slides are what I'm making my slideshow across.
    The buttons in my slideshow advance to the next slide, seemingly the exact same function as the left/right arrow keys.  I didn't actually code it myself since I don't understand Actionscript too well yet, I used the Behaviors window and selected Screen > 'Go to Next Slide' (or Prev Slide).  The code that it generated for the Next Slide Button is:
    on (release) {
          // GoTo Next Screen behavior
          var screen = null;
          var target = this;
          while((screen == null) && (target != undefined) && (target != null))
            if(target instanceof mx.screens.Screen)
              screen = target;
            else
              target = target._parent;
          if(screen instanceof mx.screens.Slide)
            screen.rootSlide.currentSlide.gotoNextSlide();
          // End GoTo Next Screen behavior

  • Avoid start/stop tomcat when changes made in servlet

    How can I make changes made in servlet available without redeploying the application to tomcat.
    I am using tomcat 4.xx and running a web application under it, and I do not want to stop/start tomcat everytime I make changes in servlets and compile them....any ideas I remember there is solution,,but dont remember the solution itself..:)

    Look for defaultcontext tag in your server.xml in conf directory. set "reloadable" attribute if this tag to true...
    <DefaultContext reloadable="true"/>

Maybe you are looking for