How to stop a period counter in a while loop without using abort execution%3F

I am using a NI x series 6343 andcounting pulses, but when i try to stop the counter with a boolean operator nothing happens, ihave to go and use abort execution, 
Help

 the stop sign does not do anything, it just stops after the timeout.
Which is exactly what you're asking it to do.
The STOP button is not a magic ABORT function.  It's a simple TRUE/FALSE variable.
The way you have it set up is:
repeat
   Get some data (Timeout = 10 sec)
   Process the data
until STOPped
It's going to check that STOP value (is it pressed or not) ONCE, sometime during the loop.  Maybe before your GET DATA, maybe during, maybe after - you don't know.
 Whenever the GET DATA thing returns (after 10 sec, or after getting some data), then it willl use that value and decide to loop again, or to stop.
If you want to abort the GET DATA operation, you have to find another way.
One way is to use a shorter timeout.  Do you have to track it down to 1 pulse every 10 sec?  If not shorten your timeout and go from there.
Another way is to find a way to abort the operation.
Again, I'm not familiar with the EXPRESS stuff you're using, so I don't know the details.  In all my 26 years of LabVIEW programming, I've never once used EXPRESS stuff.
Using the regular NIDAQ stuff, you would
INIT a task
START a task (Task ID)
repeat
   READ a task (TaskID, timeout = 0.1 sec, or something)
   if TIMED OUT
       do nothing
   else if ERROR
       announce error
   else
       Process data
   end if
until STOPPed or ERROR
CLEAR task(Task ID)
It's more complicated, but you have more control. 

Similar Messages

  • Timed counter in a while loop without overlapping a second while loop

    Hello,
    Like you can see in attached file (waveform_counter.vi), I have a main while loop which makes a waveform graph and I would like to integer an inversed counter (from x seconds to 0) in some cases. I tried with a overlapped while loop, but obviously, when the counter works, the main loop breaks...
    How can I make a sort of time counter without a loop ? I tried with the while loop iteration, every 100 iterations the counter decreases but I don't success.
    Thanks for help.
    Nathalie.
    Attachments:
    waveform_counter.zip ‏55 KB

    Hello Nathalie:
    Please see what I did in the expiration case.
    Please advice if this is a possible solution.
    Attachments:
    waveform_graph 2.zip ‏41 KB

  • How to run a do-while loop on the 2nd execution after a stop on failure occurs?

    I am trying to use the Stop on Failure process model callback from the TestStand Examples.
    If a step fails within a Do-While loop and the test is terminated, the second time the test is run (continuing to the Next UUT in the process model), the condition for the do-while loop is checked first before it ever enters the loop. This is incorrect because the Do-While loop should execute once and then check the "while" condition.
    Also, If I was to stop the execution altogether and then restart the test (instead of continuing with the Next UUT), it runs the loop once, then checks the "while" condition.
    I'm not sure if I am describing this clearly enough. The execution seems to flow like this:
    Start test
    Do
    NumericTest step FAILS  -> terminate
    Next UUT starts
    While (condition is false and skips over Numeric Test step).
    So it seems that TestStand thinks it's still within that Do-While loop on the second execution and whatever runtime variables are not reset correctly.
    Is this a TestStand bug?  It happens in both TestStand 3.1 and 3.5.
    Is there any way around this?
    Thanks for any help.

    If it is what I think it is, it is a bug. Try unchecking Sequence Properties>>Optimize Non-Reentrant Calls to This Sequence and please tell me if that fixes it.

  • How to pass a value from inside a while loop outside the loop

    Hello to everybody, I have been searching through the forum but I have not found a certain answer for my problem. I would try to explain my problem as breefly as posible:
    I have to send by a BNC2120 two signals and acquire an other one thats comes from a preassure sensor. That part is done by introducing simulating and acquiring DAQmx inside while loops.It is sycronized by my self, proving such diferent values (is not the optimum, but is only the first prototype) and works as I expected. Well, then I want to sample some of the values of these signals, that is done with relays and local variables to get the value in the instant I want to sample. Here begin my problems: I want to extract the sample values out of the while loops without restarting them, I mean: I do not want to stop the while loops because the acquisition and the generation of the signal must be continuous, but I do not know if it is posible to put the while loops in "standby" until I operate with the values I have sampled and then the signal generator and the acquiere continues from when it has stoped before. Particulary I want to obtain the value of the top while loop (inside a case) when the counter arrives at 15.
    I have proved to do with local variables, global variables, making a state machine, with event cases, with flat secuences...I have been reading about and proving diferent posible solutions for this week and the whole past week and I have not found the solution.
    If any of you know how I can do this thing, I would be loved to listen your opinions. My proyect is above: 
    Thank you a lot in advance.
    Sinceresly,
    Miguel.
    Attachments:
    maq_estados_event_case.vi ‏239 KB

    It definately sounds like what you really want is a Producer/Consumer.  It is an architecture that uses Queues to pass data from a data generation loop (producter, your DAQ loop) and a data processor (consumer).
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Count the no.of rows without using count function

    Hi,
    How to count the no.of rows without using the count function?
    Thanks,

    they won't be 100% accurate. You're correct, Bluefrog, but the same goes for doing a count(*) (depending on the size of the table, ofcourse):
    the table being queried might be under DML (deletes/inserts), and the next count(*) might give different results.
    Both approaches will never be 100% accurate.
    But simply selecting num_rows will be much much faster than doing a count(*).
    Counting the number of rows always reminds me of this ongoing discussion, by the way:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:127412348064#14136093079164 ;)
    Usually knowing the number of records by approximatly is sufficient, imo. 1000000 or 1000007 records: I don't care, don't need to know that.
    I've never needed to know the exact number of records in a table in my code, or been given a requirement that forced me to.

  • How do I share my iTunes library to an iPad without using "Home Sharing"?

    I have set up my iTunes library to be shared with others over our home network.  This is the "Share your library" option, and NOT "Home Sharing" since my wife has her own Apple ID and I, unfortunatly, have 2.  She was wanting to listen to our music on her iPad but could not figure out how to access the shared library.  The "Music" app (click more, select library) only seems to work for Home Shared libraries.  (In fact, I had tried Home Sharing first and when I turned it off, all of the buttons at the bottom of the Music app's screen disappeared - note:  she has no music stored on the iPad.)
    So, how can an iPad access a shared iTunes music library without using Home Sharing?
    (iPad 2, iOS 6; Mac 10.8, iTunes 10 because 11 totally inhibits my ability to use my iPod the way I want.)

    -> Home Sharing is different than logging into the iTunes store.
    You enable Home Sharing using one AppleID. Doesn't matter which you use but all devices must use the same AppleID for Home Sharing.

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • How can I transfer contacts from my Iphone to ipad without using a computer?

    How can I transfer contacts from my Iphone to ipad without using a computer?

    The easiest method is to setup an iCloud account, turn on Contacts syncing in Settings > iCloud on both devices, and the Contacts from the iPhone will sync to the iPad.

  • How do I transfer files from one computer to another without using cables??

    How do I transfer files from one computer to another without using cables?

    Wifi network
    Email
    Thumb Drive
    Online storage such as, iCloud Google Docs, SkyDrive, etc.

  • How can i add my outlook email to my ipad without useing the Exchange Service?

    Please help me in this, How can i add my outlook email to my ipad without useing the Exchange Service?

    I'm afraid you've posted in the wrong place. This is a technical forum around a particular product called 'SharePoint'. This does talk to Exchange and Outlook in places but we don't specialised in either of those. You should have a look for one of the
    generic Outlook support forums or contact your IT department if it's a work related account.

  • How do I transfer itunes music to my iphone 4 without using the restore from this backup function?

    How do I transfer itunes music to my iphone 4 without using the restore from this backup function?  I cannot use the back up function as have been advised that therer are bugs in it and restoring it back to my phone will bring the bugs with it and phone will be back to apple again as will start playing up again.  But I need the music.  Whn I plug it in laptop and go to itunes icon it gives me 2 options:  Set up as new iphone? OR Restore from backup.
    Do I pick set up as new phone?  I dont know as the guy at the genius bar told me there would be an option asking if i want to sync itunes only...but there isn't.

    Set up as New and then... Re-Sync your Content from iTunes.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • How do you open the DVD tray on a K430 without using Windows Explorer?

    How do you open the DVD tray on a K430 without using Windows Explorer? I can't find a button on or below the door.  Am I missing something?  Additionally, will the K430 boot from a DVD/CD if it finds one in the DVD tray instead of the hard disk?  Please help. Thanks. 
    Solved!
    Go to Solution.

    hi penguin247,
    Regarding your questions:
    1. Can you try to press the eject symbol on the DVD bay and observe if the DVD tray comes out.
    Link to picture
    2. By default, the HDD is set as the first boot device and the ODD second on the K430. You will need to change the boot order or continuously tap F12 during POST to boot from the ODD (assuming you have a bootable media inserted).
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How do I transfer photos from MacPro to iPad 2,without using iPhoto

    How do I transfer photos from MacPro to iPad 2,without using iPhoto on the ipad.

    You can use Photo Transfer App
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/35cf0e9c02b37da4016 bdc657debcaca.jpg

  • How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window

    How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window? any option?

    user11016624 wrote:
    How To Directly Add Attachments to E-Business Suite Entities Without Using The Managed Attachments Window? any option?
    Please see:
    http://www.oraclebusinessapps.com/2008/04/28/load-pdf-file-attachment-using-api/
    http://www.oracleerpappsguide.com/2011/04/attachment-in-oracle-application.html
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_ATTACHED_DOCUMENTS_PKG&c_owner=APPS&c_type=PACKAGE
    Thanks,
    Hussein

  • Best way to move photos from iPad to Mac?  I have a card reader foriPad and used it on a recent vacation to put pics on iPad.  How can I now move them to Mac?  Preferably without using iPhoto.

    Best way to move photos from iPad to Mac?  I have a card reader for iPad and used it on a recent vacation to put pics on iPad.  How can I now move them to Mac?  Preferably without using iPhoto.

    With iPhoto or with the Image Capture application.

Maybe you are looking for