How do I make one while loop that runs 1 piece of data at a time?

I have a question about a while loop.  Currently, I have 4 or 5 dynamic data lines that I would like to run through a while loop that will tell me if the data is within a certain range or not.  However, the ranges are different for each piece of data, and I dont know how to do each one separately.  Do I have to make 5 different while loops? Thanks!

pg22aw wrote:
I have a question about a while loop.  Currently, I have 4 or 5 dynamic data lines that I would like to run through a while loop that will tell me if the data is within a certain range or not.  However, the ranges are different for each piece of data, and I dont know how to do each one separately.  Do I have to make 5 different while loops? Thanks!
Do you want to compare the value with a defined value and also the ranges for the 5 data is different?. What are you doing in the while loop. If the data is in an array of dynamic data you can seperate the amplitude value and check the whole array of value with the ranges that is also build same as the data theh you will get the output as a boolean array.
The best solution is the one you find it by yourself

Similar Messages

  • How can I make a while loop wait 10 seconds before iterations​?

    I am using labview to for an osmosis system that measures the amout of water lost from the reading on a scale.  
    I currently have the program displaying the data from 3 scales every second.
    I also need to calculate the flux through the membrane over time.
    I do this with a function that takes a change in the scale reading over time (with a shift register) followed by a series of mathematical conversions.
    The readings from the scale display OK every second, but I need to have at least 10 seconds between flux calculations.
    So my question is, how do I make a the shift register take one value from the scale, then wait 10 seconds before taking the second value?  That way I have the mass of water lost over a 10 msecond period.  
    Below is my current while loop for Flux using shift registers from data from 3 scales.  
    Any helkp would be great!
    Also, I'm new at LabVIEW...

    Bob_Schor wrote:
    Do you understand how Dataflow (a key idea behind LabVIEW) works?  If you put a Wait (ms) function (on the Timing Palette) with 10000 (10,000 milliseconds = 10 seconds) inside your While Loop, the principles of Data Flow will require all of the functions inside the While (specifically the Wait function) to finish their execution before the loop can run again.  As everything else in the loop takes approximately 0 seconds, this will make your loop run once every 10 seconds.
    Bob Schor
    I do not think that is a good idea. 
    The inner loop should be in sync with the outer loop, not run independent on it's own timer.
    If the inner loop is running independently you run the risk of using stale data.
    Actually  altenbach is right the inner loop does not need to be a for loop at all, but rather just a case like my suggestion (without the for loop) and the shift registers should be out on the main loop.
    My suggestion was a quick solution going by what little bit of the block diagram I could see, but if the entire code was posted I am sure we would see where more improvements could be made and possibly even a better solution.

  • How can I make a while loop wait for input boolean?

    Hi.
    I'm trying to control a robotic arm with labview for my undergrad dissertation, and I have a decent polar coordinate control panel made, but there is one problem; it checks for changes in the coordinates every five seconds, while I want it to only check on the touch of a button (ie, go!, I've changed your coordinates!). The changes are calculated with a while loop comparing the last value of theta, x and z in a while loop with the current one. I can't find a way of putting that into a case structure. If there is a way of making the while loop progress at the push of a button, I think it would work. The VI's attached below.
    Thanks in advance for any help.
    Cathal Scanlon
    ps, sorry about the mess, I'm going to reorganise the while loop into 2 if I can get the control button working.
    Message Edited by CatScan on 02-08-2007 02:45 PM
    Attachments:
    Polar coord assignment1.vi ‏142 KB

    Have you tried using an event structure? To use one, right click on the structure to add an event. Set the event as whatever button you wish to monitor and set the event to "Value Change". If you put this inside a while loop any time the button is pressed, the event structure will run the contents inside the loop. There are a number of options to have the event structure activate.
    *** Warning! I'm probably the last guy you want answering your labVIEW questions, but I figured I might be able to help.

  • HT1918 How do i change my username to another when they both have accts with itunes one is on my computer and one is on my ipad? Two different e-mail address that are both mine....so how do i make one acct for both?

    How do i change my username to another when they both have accts with itunes one is on my computer and one is on my ipad? Two different e-mail address that are both mine....so how do i make one acct for both?

    If you selected open a new Apple ID account, go back a step and enter use existing Apple ID.
    You will have to set up a separate iCloud account or your iPads will mirror each other.

  • I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and Itunes store. How do I make one password that will be recognixed by all these devices?

    I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and itunes store. How do I make one password that will be recognized by all these devices? My apple id is constantly not working.

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • How do I make one account's home folder visible to the other?

    How do I make one account's home folder visible to the other? Also, when I begin to delete an account, it asks if I want to either delete its home folder, keep it in the users folder, or save it in a disk image. I want to be able to see it from my remaining account once I delete it, so if I leave it in the users folder, would I be able to see all the files (right now I can't

    Use terminal to add ACL to the account,
    at the prompt:
    sudo chmod -R +a "<user> allow list,addfile,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr, writeextattr,readsecurity,file_inherit,directoryinherit" /User/<user_name> #yep, all that goes on one line!#
    #Replace <user> with the user name that you want to have file/folder privileges#
    #Replace <user_name> with the account you want to process#
    example:
    sudo chmod -R +a "sue allow list,add_file, .... deletechild,readsecurity,file_inherit,directoryinherit
    /User/joe
    #sue now gets full access to joe's files and folders#
    to remove:
    sudo chmod -R -a "sue allow list,add_file, .... deletechild,readsecurity,file_inherit,directoryinherit
    /User/joe
    You can add as many users as you want! Just lather, rinse repeat. That is how I share my itunes
    directory with the ones I want to share it with.
    That's the simplest way. ACL permissions overrule posix permissions.

  • How to out from infinite while loop in sub VI

    Dear Sir,
    how to out from infinite while loop in sub VI from main VI
    attached photo for solution but I can't understand it and i can't find the function in photo 
    please help
    Attachments:
    stop_subVI_frm_main.JPG ‏36 KB

    Asking how to get out of an infinite loop is like asking how to find the end of a circle. I'm not trying to be sarcastic but by definition, if there is a way out of the loop, then it is not infinite. I think what you are asking is how to avoid creating an infinite loop. Is there something about the suggestions you have been given that you do not like? My favorite suggestion is the notifier but maybe you just need an example. Turn on context help and read about the notifier functions in the code below.
    This is your top level VI
    And this is your subVI
    If this seems too complex then a global variable will work too. But what seems simpler can cause much more complex bugs. You can code fast and spend lots of time debugging or you can code slow and spend less time debugging. Personally I perfer writing productive code than looking for bugs any time.
    =====================
    LabVIEW 2012

  • How do I make one (and only one) device use my Apple ID and iCloud account?

    How do I make one (and only one) device use my Apple ID and iCloud account? I currently have an iPad mini, iPhone 5, and MacBook pro attached to my apple accounts, but I want only my iPhone 5 to be assosiated with either one. Whenever I use any of the three devices, I get a notification on the other two telling me that these devices are now using these accounts from these services, etc. and I want these notifications to stop, along with the devices using to them. How do I do this? I completely reset the iPad mini so I don't know how I'm still getting notifications from it, and I deleted and signed of of all of my accounts everywhere I could find on my Mac. So, to restate exactly what I want to do, I want ONLY my iPhone 5 to use ANY of my Apple/iCloud accounts and ONLY it can receive emails, iMessages, and FaceTime calls. Thanks!

    If you want to disconect your Mac from iCloud, go to System Preferences>iCloud and click Sign Out.  If you only want to stop using iCloud email, just uncheck Mail.  To stop iMessage, open the Messages app, go to Messages>Preferences, click the Accounts tab, click your iCoud ID on the left-hand side, then to the right click Sign Out.  To stop FaceTime, open the FaceTime app, then click "Apple ID" then click Sign Out.
    On your iPad, go to Settings>iCloud and tap Delete Account (or if you only want to stop using iCloud email, turn Mail off).  For FaceTime, go to Settings>FaceTime, tap the ID and sign out.  For iMessage, go to Settings>Messages>Send & Receive, tap the ID and sign out.

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can I make one list of all events I have in over 30 libraries I made

    How can I make one list of all events I have in over 30 libraries I made?

    The only way I know of is to take a screenshot of the Photo mode with the View ➙ Show Event Titles selected.  That will give you a list of sorts.  Might take more than one screenshot per library.
                   Click to view full sized
    OT

  • HT1918 How do I make one of my alternate email addresses my primary address?

    How do I make one of my alternate email addresses my primary address? Apple won't let the primary address be the same as one of the alternates and I haven't found a way to delete an alternate address.
    Thanks

    For some ridiculous reason, Apple won't let you use an existing alternate email address.
    You have to first delete the alternate email address you want to use, then edit the primary address and enter the address you want. You'll then have to re-verify the address you just deleted and when it asks you to enter your AppleID, you use the new address.
    I'm sure there used to be a 'Make primary' link next to your alternate email addresses. I guess that was too easy.

  • I've never made a rescue email, how do I make one and change my security questions

    I've never made a rescue email, how do I make one and change my security questions

    Click here for information. If you can't reset them through the method described in that article, contact the iTunes Store staff via the link in the 'Additional Information' section.
    It isn't possible to create a rescue email address without correctly answering two of the questions. Nobody on these boards can reset them for you.
    (95613)

  • Does anybody have an idea how to pre-tune an apple loop that is slightly off pitch?

    Aloha,
    Does anybody have an idea how to pre-tune an apple loop that is slightly off pitch?
    I have a great 44.1K minor key shamisen phrase sample that is 66 cents below C. I want to make it an apple loop and assign it's key to C minor. How would you suggest I do this so that when I use the subsequent apple loop it is in tune?
    Thanks in advance,
    Tony

    Wow . . . seems strange that there are no responses. There are a lot of nice off-pitch samples out there and it would be great not to have to adjust them every time.
    I did come up with a work around. Most of my sample editors introduce artifacts when I change the pitch so here's what I did. Using Sound Studio (great, btw) I made a loop and changed the pitch non-destructively. In this case my sample, played at -66 cents, became tuned to C. Noting that value, I used an internet cents to frequency converter (http://www.sengpielaudio.com/calculator-centsratio.htm) to come with the number to multiply with my original sample frequency. I changed my sample to this frequency (without resampling) then resampled it back to its original 48K. Now I was able to convert it to an apple loop perfectly tuned to C.
    Cheers!

  • How can i make one of my itune songs my ring tone on my apple iphone 3gs-32gb

    HI is there anyone out there that can help me step by step how i can make one of my downloaded itune songs on my iphone as my RINGTONE on my iphone 3gs-32gb please my phone as been upgraded to a ios 6 id be very grateful if you could help me as ive been trying all day with no joy as this is my very first iphone you see and im so blind to all this lol thanks susan.

    http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html

  • How do you make one long track into multiple tracks?

    How do you make one long track in itunes into multiple tracks? Is there a way to do that?

    I found another solution too through Garageband. I don't know if it was easier, but I liked this way of creating seperate tracks.
    First, You put the long track into Garageband.
    -then you create a New Basic Track under Track Tab-create as many of those as tracks you want to make
    -also make sure the headphones button is lit up under each New Basic Track-this allows it to be a 'solo' track.
    -then you can start cutting music-with the long strip find where you want to split into a new track and drag that half down into each New Basic Track.
    -Once you are done, press Option Z and a purple little triangle will appear up by the measures. drag the triangle to the end of the first track-this allows it when sharing to itunes to just record the particular track you want, it puts a stop/end to that track.
    -then, make sure the track you want to share is highlighted the bright orange and go to share, 'send to itunes'
    -it will send that to itunes and you can rename it in itunes.
    -Go back to Garageband-delete the first track you successfully shared and move the next one up to where that one was. Slide it accross to the left so it is at the beginning, press option Z and move the purple triangle where you want it to be...and you are good to repeat until all your tracks are done!
    I am a very visual person, and this helped to see where I was cutting each track, just another way!

Maybe you are looking for

  • How to load data into an ods from multiple info sources.

    hi all... i am given a task to load data into an ods from 3 infosources ... can someone plz give me the flow . thank u in advance..

  • Reading/monitoring file on each update by using java code

    Hello, Thanks for help in advance.. I want to read a log file automatically on each time when log file get update . Actually i am reading that file one time but i have to read that file when log is added to that file. Thanks

  • Can't open a garage band song in logic express trial

    I've been thinking about getting logic express, but I wanted to try the trail version first. When I try to open any of my garageband songs in logic it says, "Damaged Song or not a logic express song! Damaged songs might create problems and crashes!"

  • Writing file with its output as html

    Hello. I cannot seem to get my file written out as html. Can someone help me. My program compiles but thats about it. import java.io.*; import javax.swing.*; public class Olympic static void showInput(String[] typeMedal,String[] first, String[] last,

  • Check compatibility with Oracle 11gR2 ( Iplanet & SunOne)

    hi, there is a document and / or link to check the versions of SunOne 7 and iPlanet 6.0 SP4 / iPlanet 6.1 if they have compatibility with Oracle 11gR2. I need detailed information where specified drivers compatibilities with Oracle 11gR2 SunOne and i