Is there a way to cycle a while loop on its own and only controlled by the number of cycles?

Hello everyone, 
Newcomer here, recenlty just took core 1 and 2 the past couple of months
is there a way to cycle my while loop so that the daq assist receives the same outputs from the list box table? So pretty much I need the VI to be able to read the voltages and time values from the list box and then execute them, I've manage to do this, but then I need it to stop for a given time and then execute again the same voltages. This would be controlled by a control for "number of cycles" input. 
Can someone tell me why my "Emergency Stop" button doesn't stop the VI?
Why is my data logging only outputing one result if I have it to read ever min?
My wave form graph isnt plotting the temperature results, does it have somthing to do with the while loop?
I know this is a lot of questions, I'm just trying to solve this and learn from it.
Attachments:
TEST RIG 11 10-28-13.vi ‏298 KB

You took core 1 and 2!!!  Please tell me NI didn't teach it.  I'm not trying to harp on you too bad because I think the instructor is more to blame.  You have many wires going the wrong direction, multple loops doing nothing, and one loop that will never stop so even if all the others did there would be no way to stop your program, a Stop button that is read only once at the start of the application and then is never read again (so stop will never work).  You have the inner loop running forever, but even if it did stop it would run the outer loop forever, your enums should be typedefed, uninitialized shift registers when not needed, dynamic data types, far too many express VIs...ouch.
To answer your question.  If you have a while loop that needs to run 5 times, why not use a for loop? Then wire a 5 to the N terminal.  If you do have to use a while loop for what ever reason, use the i terminal as a condition to stop.  It will start at 0 and count up so a value of 4 means it will be executing the 5 time.  If the value equals 5 then stop.  Get the Array size of the Listbox and set your for loop to run for each item.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • Why does my iPhone 3GS keep restarting on its own, and when I move the phone while its restarting, a white screen comes up and then it takes a while to turn it back on!

    So i have an iPhone 3GS and when i move the phone while its restarting, a white screen shows up, and sometimes i need to punch it to turn it on. HELP i dealt with this problem for months and im sick of it! HELP ME!!!!

    Sounds like hardware failure, called boot loop. Call Apple and or go on apple.com and make Genius Bar appointment to have your iphone reviewed by a Tech. Provided you iphone shows no physical or liquid damage they will take care of you, or if you have Apple Care Plus
    Genius Bar Rerservation :  http://www.apple.com/retail/geniusbar/

  • If I increase an iBook price from $20 to $25 do to a major edition revision, is there a way for those who already purchased it to update and only pay the $5 difference?

    I've recently updated an iBook in iBooks Author and added 30% more content in the second edition. I'd like to raise the price but wanted to know if the people that already purchased the iBook could just pay the additional fee for the new edition, and not have to buy the whole iBook again. I have changed the cover art, but the title of the book is the same, just a second edition. Any help would be much appreciated.
    Patrick

    Once purchased, any updates you make to the book will appear to the purchasers as a free update.
    Lifting or lowering a  price affects  only new buyers
    Like wise I paid for apps which Google  later took over and made them free... I never got my money back!

  • While launching Mail, I clicked on Safari, to check something while Mail got new emails, but now Mail appears on the same screen as Safari. Is there a way I can return it to it's own screen, please?

    While launching Mail, I clicked on Safari, to check something while Mail got new emails, but now Mail appears on the same screen as Safari. Is there a way I can return it to it's own screen, please?
    I haven't changed any prefs, only clicked Safari as mail was being launched.

    Sorry... Apple IDs cannot be merged...
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    From Here   http://support.apple.com/kb/HE37

  • I want to take an iPad 3 on a long trip. Is there any way to back up while I'm on the road?

    I want to take an iPad 3 on a 2-month trip. Is there any way to back up while I'm away from my home computer?

    Your own movies are backed up in the camera roll wich is backed up to iCloud. You should be able to restore the movies if something were to happen to them if you use iCloud for your backups. You would have to purchase more storage from iCloud, but the videos will be backed up
    You get 5GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Read this
    http://support.apple.com/kb/HT4859

  • Is there a way to allow allow my iPhone 4S to make a call to a specific number while locked?

    Is there a way to allow allow my iPhone 4S to make a call to a specific number while locked? I would like specific phone numbers to be allowed to be called by my family members while my phone is locked. However as the phone is required to be secured for work I would rather not have to have the device unlocked and thus access to emails, texts, etc be visable. Is there a way to do this?

    With the exception of 911, no.

  • I have multiple devices in my family. Each of us has an iPhone and an iPad. Is there a way for each of us to have our own Apple ID but one account so we can all get the same music, movies, books, etc. I can't see paying twice for something in the same fam

    I have multiple devices in my family. Each of us has an iPhone and an iPad. Is there a way for each of us to have our own Apple ID but one account so we can all get the same music, movies, books, etc. I can't see paying twice for something in the same family.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • Is there a way to get several serial data lines to poll and respond quickly?

    I have a PCI-485/8 card where I need to use all 8 ports. Attached is the vi that I�ve developed so far. It works well when there are only 1 or 2 ports. But it really slows down the calling vi when I get up to 8 ports. The Read Delay is intended to set the polling pace, which is used to set the data logging rate. The calling vi is a timed while loop where dt = 0. Due to constraints of the polled device, I cannot set the delay less than 1200 mSec, so it�s set to 1500 mSec as a safety margin.
    The poll string is !!SS0n where n is the address number and must be followed by \r\n. Because the poll must be terminated with \r\n, the termination character (for the VISA Configure Serial Port function) cannot be A or D (hex). Otherwise it sees it�s own poll, terminates, and then ignores the responding string. (The polled devices works from RS-485, 2-wire.) As a secondary question, I�d like to know if there is a way to have it ignore its own poll string. But the bigger issue is that it�s dreadfully slow (i.e. around 10 seconds) with all 8 ports configured. The goal is to have this thing run at a consistent 1500 mSec.
    Please note that I may be approaching the program from a wrong direction and I�m certainly open to use a better way. For example, it may be more appropriate to obtain the data continuously instead of using a polling scheme. The devices being polled is capable of sending data continuously. However, I choose to use the polling method for three reasons. 1) The device does not send data at a continuous rate. (They are slow and not particularly stable.) 2) The provided data string is not consitent. The string varies in length, which may be the cause of the first problem. 3) There is a project scheduled where I will need to poll at least two devices on each port. (I realize that will really slow things down, but I�ll cross that bridge when I get there.) In other words, I�m open to set the devices on the ports in continuous mode if that�s the only way to get a fast and consistent system.
    The application is for an off-shore oil rig where they want to monitor and log data from 8 winches that operate the anchor lines. I�m using LV 7.1, Win2000, NI-Serial v1.6. Please advise�
    Attachments:
    SD41_PR292_Poll_Data_8_2.vi ‏561 KB

    Split this into 3 VIs. The first configures and opens the ports (everything to the left of the VISA Writes). This VI executes before the timed loop starts. The second is in the polling loop with the Error lines passed via shift registers. This includes the Writes, Bytes at Port, and Reads. The VISA Close and the analysis are in the third VI (outside the timed loop). This prevents the program from initializing and closing the ports repeatedly, which may take much longer than you think.
    Also, I would put the Reads inside a Case structure that only calls the read if Bytes at Port > 0. Some devices do not like zero byte reads.
    In the end product you amy want to analyze errors programmatically and attempt to close and re-open a port with an error rathe
    r than having the Error Handler holler at the user.
    With Bytes at Port do you really need the delay?
    Lynn

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Hi, I have macbook Pro, running Leopard OS X. I partitioned my hard drive a while ago to install windows and only allowed myself 10 Gig of data. Anyway, i deleted windows and want another OSX on there instead. How do i make this partition bigger please??

    Hi, I have macbook Pro, running Leopard OS X. I partitioned my hard drive a while ago to install windows and only allowed myself 10 Gig of data. I deleted windows after i realised i wasnt enjoying using it at all and wasted my hard drive. I now decided that i want another OSX on there instead yet i have only allowed myself 10 gb on the partition. I have ben thru some programms but am struggling on making this partition bigger.
    I only want it at 20gb but cant seem to make the partition bigger, only smaller or split it into further partition.
    Is there a way to do this, i have all installation discs from original OSX so think this could help.
    Any help please would be fantastic.
    Thanks Chris

    Hi, dragging the partition will only make smaller, not larger. In disk utility you can only split or make smaller the partitions. Yes i booted from installation disks also but still no help.
    And Brody, I am willing to erase the disc completely, infact jus started doing a backup in order to do so but that failed also. And the information you gave on partition a hard drive, Although very simple and i already know how to do this, but it wont let me make the partition bigger, and i dont want to make a new partition, just enlarge the one i already have, which i dont see possible from disk utility.
    Getting really frustrated now, even backing up is saying no to me. **** external being a douche.
    I dont mind erasing the hard drive but surely this must be doable without deleting the secondary partition back t a single volume, and re partitioning into 2 volumes again.
    Thanks again

  • I share a photo stream with a family member. Is there a way to make it so we have separate photo stream but still use the same apple id?

    i share a photo stream with a family member. Is there a way to make it so we have separate photo stream but still use the same apple id?

    You'll want a separate iCloud account for each user in addition to the main Apple ID used for purchases.
    Let's say you have a family of four (husband, wife, and two children). Here is what you will need:
    Main Apple ID for shared purchases in Tunes (everybody will be using this)
    iCloud (Apple ID) account for husband
    iCloud (Apple ID) account for wife
    iCloud (Apple ID) account for child 1
    iCloud (Apple ID) account for child 2
    Yes, you can have both an Apple ID and iCloud account setup on the same device. On each iOS device, setup the main Apple ID account for the following services:
    iCloud (Photo Stream and Backup are the only items selected here).
    Music Home Sharing
    Video Home Sharing
    Photo Stream
    Additionally, on each iOS device, add a new iCloud account (Under Mail, Contacts, Calendar) that is unique to each user for the following services:
    Mail (if using @me.com)
    Contacts
    Calendars
    Reminders
    Bookmarks
    Notes
    Find My iPhone
    Messages
    Find Friends
    FaceTime
    On your individual Macs (or Mac accounts), use the main Apple ID in iTunes. Then, use the unique iCloud account in/for iCloud.
    Now that everbody is using separate iCloud accounts for your contacts, calendars, and other things, it will be all be kept separate.
    The only thing that is now 'shared' would be iTunes content (apps and other purchases), backups via iCloud (if enabled), and Photo Stream (if enabled).

  • Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Yes but you will have to create some custom JavaScript to do this.
    Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.

  • Is there a way to select every other page in a pdf and convert it to grayscale?

    I'm going to ask this question in a few sub-forums, so if you think you've seen it, you might have. Someone suggested it might be done with Javascript. I know nothing about Javascript.
    Where I work I use a program that can print to pdf. We use it to produce mailings, usually postcards, that are addressed.
    I often end up with a 500 page document that will print on 250 sheets of cover stock, which will get cut into 1,000 postcard, all pre-addressed and sorted by zip code.
    Usually, the address side is all black and the front is color. The printers we use can print a black click on the address side and a color click on the other, IF the pdf is set up that way. Otherwise, both sides will be counted as color clicks.
    I know I can select pages individually in a pdf and convert them to grayscale and those pages will be counted by the printer as black clicks, which are cheaper than color clicks.
    The problem is, I have not figured out how to convert all the odd numbered pages to grayscale at once. As a result, I usually end up printing the color side simplex, then putting the job back in the tray and printing the black side. Of course, that only works if only one side is personalized, sometimes both sides are.
    Is there a way to select every other page in a pdf and convert it to grayscale?

    The Acrobat SDK has sample code that shows how to convert the colors for one page (the first page of a document). This sample can easily be adjusted to process every other page. You can then use an Action that executes this JavaScript to process the document. Do you know how to create an Action? If so, you can use this script (as I said, adapted from the sample in the SDK) to convert all odd pages (1, 3, 5, ...):
    // Get a color convert action
    var toGray = this.getColorConvertAction();
    // Set up the action for a conversion to RGB
    toGray.matchAttributesAny = -1;
    toGray.matchSpaceTypeAny = ~toGray.constants.spaceFlags.AlternateSpace;
    toGray.matchIntent = toGray.constants.renderingIntents.Any;
    toGray.convertProfile = "Gray Gamma 1.8";
    toGray.convertIntent = toGray.constants.renderingIntents.Document;
    toGray.embed = true;
    toGray.preserveBlack = false;
    toGray.useBlackPointCompensation = true;
    toGray.action = toGray.constants.actions.Convert;
    // Convert every other page
    for (var i=0; i<this.numPages; i++) {
      console.println("Processing page " + i);
      if (i % 2 == 0) {  // change to "if (i % 2 != 0) {" for all even numbers
      console.println("in page " + i);
      console.println(this.colorConvertPage(i, [toGray], []));
    As I've indicated in the code, you can change this to all even numbers by changing the == to !=

  • Is there any way of saving progress in a game/app when you remove it from the ipad to the cloud

    Is there any way of saving progress in a game/app when you remove it from the ipad to the cloud.
    Basically i have a 16gb ipad2 (big mistake) so space on the ipad  is precious. obviously i occasionally need to remove games/apps to make way for other apps from my cloud. The problem is, when I remove an app to make way for the new app I lose all my progress in that game apart from the option to save leader-board stats (which is the least important thing to me). Its very annoying to get so far in a game only to have to remove it to make way for a movie and lose all my progress!!!!!
    Any way round this?

    I do not know how to save game data when deleting an app, but as for updating, if you connect the ipad to a computer and do the update through itunes, you will not have to download the update package to the ipad just to the computer. so you don't have to free up quite so much space, as for movie and photo storage you can look at the sandisk wireless and airstash wireless SD card adapters, they create their own wireless network and come with apps that allow you to store and then stream movies to the ipad instead of loading them to the ipad storage.
    http://www.airstash.com/
    http://www.sandisk.com/products/wireless/media-drive/

  • Is there a way to put a playlist on my phone from my computer without erasing the other music from my phone?

    Is there a way to put a playlist on my phone from my computer without erasing the other music from my phone?

    Not if you set up very carefully what you want synced from your computer.  Make sure you have not set things to sync automatically and manually choose the settings of what gets synced

Maybe you are looking for

  • Local Beans in a Cluster

    Is it possible to use EJB2.0 Local Interface EJBs in a cluster? If so, what happens when clients on two different servers attempt to access the same entity bean?

  • Question RE: PS4 Wired Connection

    Hi  Im a new member f the Infinity family.....almost 24hrs, getting a steady 75mb down and 19mb up, Pings between 15 - 18ms. very happy with the speed so far. my question is, with my ps4 connected via Cat5e the speed of the connection according to th

  • I can´t find how to use the "at" sign

    I can´t find how to use the "at" sign on my new Mac book??

  • Printing Pages Document

    I want to print a 40 page Pages document. I go to print, select 'all', but when the printer (HP 6100 Series) starts up, it just spits out one page after another, very quickly, w/nothing on them. Any Clues

  • How can I adjust the font on my ipad2

    i have downloaded the book app but am not able to get into the book store