What is the best/most effective way to dynamicall​y build a timed loop in LabView?

I am relatively new to labview (not to code in general) and am looking for the "LabVIEW" way to dynamically build a timed loop. This is what I am trying to accomplish:
I have several heaters controlled through labview using Labview's PID toolkit. This works great. I have no issues with DAQ in general. However, throughout an experiment, I want to change the set point of each heater. I could set this up fairly easily using either a timed loop or the wait vi if I knew exactly how many different set points there would be.
If possible, I would like to be able to read in a config file that includes the different times and set points for all heaters and dynamically create a loop that can handle this. I have tried using the Elapsed Time vi with an array of time targets; however that didn't seem to work.
Has anyone been able to do this? Does anyone know where I could learn about using LabView in this manner? All help is appreciated.

DHagan wrote:
I am relatively new to labview (not to code in general) and am looking for the "LabVIEW" way to dynamically build a timed loop. This is what I am trying to accomplish: I have several heaters controlled through labview using Labview's PID toolkit. This works great. I have no issues with DAQ in general. However, throughout an experiment, I want to change the set point of each heater. I could set this up fairly easily using either a timed loop or the wait vi if I knew exactly how many different set points there would be. If possible, I would like to be able to read in a config file that includes the different times and set points for all heaters and dynamically create a loop that can handle this. I have tried using the Elapsed Time vi with an array of time targets; however that didn't seem to work. Has anyone been able to do this? Does anyone know where I could learn about using LabView in this manner? All help is appreciated.
Write a tab-separated spreadsheet file makes it easy to use the write/read from spreadsheet files. Assuming you have a 2D-array of your times and set points it's just a question of setting up a for-loop going through the array row-by-row and extract the elements (expanded index array) to set your points and wait time.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • What is the best, most efficient way to read a .xls File and create a pipe-delimited .csv File?

    What is the best and most efficient way to read a .xls File and create a pipe-delimited .csv File?
    Thanks in advance for your review and am hopeful for a reply.
    ITBobbyP85

    You should have no trouble doing this in SSIS. Simply add a data flow with connection managers to an existing .xls file (excel connection manager) and a new .csv file (flat file). Add a source to the xls and destination to the csv, and set the destination
    csv parameter "delay validation" to true. Use an expression to define the name of the new .csv file.
    In the flat file connection manager, set the column delimiter to the pipe character.

  • What is the best site or way to share a video that is 13 min. long?

    What is the best site or way to share a video that is 13 min. long? I am just starting to use iMovie and wanting to send video to family out of town.

    Get a "You Send It" account. Upload it an send them your family the link. They can download it and play it on their computer.
    Or, put it up on YouTube as a private video and send them the link.
    x

  • HT4681 What is the best most compact export to use for Youtube?

    What is the best, most compact export codec / frame size to use for Youtube?

    louisfromseven hills wrote:
    What is the best, most compact export codec / frame size to use for Youtube?
    YouTube says ....
    http://support.google.com/youtube/bin/static.py?hl=en&topic=1728573&guide=172858 5&page=guide.cs

  • What is the best and easiest way to speed up a Mac-MINI?

    What is the best and easiest way to speed up a Mac Mini without adding memory?

    I'd tried to reply yesterday to your question but for some reason it didn't go anywhere and I got a red message box in the Discussion post area with "error." After trying three times, including  log-out, clear cookies from browser (and history) and back in, I still was unable to add my post with links to resources for your Mini, here. And the last time I tried that, the copied text also went missing as I found it gone after considering to make a Text document of it, for later posting.
    Anyway, the http://iFixit.com site has guides on how to replace RAM in the computer you have. Note there are different models shown and from what I remember, yours is the last 'old look' Mini with an optical drive. The model after that is thin, a 2010 model with slot in front for discs; the next one has no internal optical drive.
    RAM specs:  2 - 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM (replace pair) up to 8GB total. Best price would be an online vendor of repute, once you know about what they sell for, you could ask a local mac expert if they could get you a better than retail price. I get ram from OEMPCworld and shipping is about $1. including insurance to my post office box, priority or 1st class. At about half retail. Crucial (website) offers parts, too; and so does OWC (other world computing).
    In addition, I recommended checking into the build specs and quality of the OWC (esales) site for external enclosures with their own power supply, for hard disk drive; for storage and bootable clones on different partitions. And see about Bombiche Carbon copy cloner, it is a commercial product now, not donationware. I've used it successfully to make competely bootable clones on a suitable external HDD (drive should have own power supply, too) A 750GB HDD in a self-powered enclosure that can boot Mac OS X from a clone, is a good start on backing up your upgraded OSX in a way you can clone it back into an empty, wiped or new HDD inside the computer; and it can run from the external. You can't necessarily use a TimeMachine that way.
    This should be your Mini -- check other indicators to be sure:
    http://www.ifixit.com/Device/Mac_Mini_Model_A1283
    A serial number lookup site such as the one I end up using because I had it bookmarked is OK: http://www.powerbookmedic.com/identify-mac-serial.php & also have mactracker http://mactracker.ca
    Anyway, before I time out or exceed post content(?) This is not all I meant to write before.
    Good luck & happy computing!

  • What are the best Garageband effects to make an acoustic guitar sound like a twangy Fender?

    What are the best Garageband effects to make an acoustic guitar sound like a twangy Fender?   Using a Blue Snowball USB mic for input.

    If you are willing to spend the money you might look elsewhere for better samples,
    http://www.native-instruments.com/index.php?id=akoustikpiano

  • What is the best and safest way to convert songs from a dvd to an audio MP3?

    What is the best and safest way to convert a song/or songs from a dvd to an audio MP3? Are there any free safe converters?
    I have some live music from a concert (currently available on dvd only) that I want to convert to MP3 ... playable on my iphone.
    Thanks!

    Java float; IEEE 754 single precision has 32 bits: 1 sign bit, 8 bits of exponent, 23 bits for the mantissa.
    Java double; IEEE 754 double precision has 64 bits: 1 sign bit, 11 bits of exponent, 52 bits for the mantissa.
    When you widen a float value to a double this is what happens to the bits
       float:  s y   xxxxxxx mmmmmmmmmmmmmmmmmmmmmmm
       double: s y???xxxxxxx mmmmmmmmmmmmmmmmmmmmmmm00000000000000000000000000000try this
    class Widen {
        public static void main(String[] arg) {
            float f = (float)Math.PI;
            if (arg.length>0) {
                f = Float.parseFloat(arg[0]);
            double d = f;
            StringBuilder sf = new StringBuilder(toBinaryString(Float.floatToRawIntBits(f)));
            StringBuilder sd = new StringBuilder(toBinaryString(Double.doubleToRawLongBits(d)));
            sf.insert(1+8," ").insert(2,"   " ).insert(1," ");
            sd.insert(1+11," ")                .insert(1," ");
            System.out.println(sf.toString());
            System.out.println(sd.toString());
        static String toBinaryString(int i) {
            return toBinaryString((long)i).substring(32);
        static String toBinaryString(long l) {
            StringBuilder sb = new StringBuilder();
            for(int i=63;i>-1;--i) {
                sb.append(((l>>i)&1)==0?'0':'1');
            return sb.toString();
    }Please point out where you think there is loss of precision.

  • WHAT IS THE BEST NAD EASIER WAY TO REPLACE THE SKY IN A LANDSCAPE FOR A DIFFERENT ONE?

    WHAT IS THE BEST AND EASIER WAY TO REPLACE A SKY IN A LANDSCAPE FOR A DIFFERENT ONE?

    depends who clunk you can get away with.
    easiest is magic wand and use the layer properties to make it 'multiply' or 'lighten' or 'darken' etc as suits your images.
    a step on from this would be to use the layer blending options. it's the easiest way to get a good overlay,
    paste the new sky image into your image and scale it to fill the whole area, then double click the layer
    then use the blending options especially noting the 'blend if' sliders at the bottom which you can use to tell it to allow different tones to show through.
    this mixed with holding the l'alt' key as you adjust the sliders allows you to fade from 0-100% of certain tones being visible through the layers, so you can for example allow you new sky layer to be seen in between branches of a tree etc. fiddle with it and you'll see what it does.
    combine this with a layer mask where you can paint out bits that you definitely don't want the sky to show through.

  • What is the best program or way to check an image on monitor screen (contrast/color etc)

    Hi,
    In ACR I adjust the image so that it looks OK for me.
    But there are a little differences in ACR and PS viewing the image (color, contrast etc).
    In programs like windows foto-viewer there is an other difference (relative to ACR and PS) >> images have more contrast and darker  than viewing in PS.
    An other program Irfanview shows the image with less color (saturisation).
    I have made a test print (in a photo centre), that image results in something between Irfanview and PS.
    Question:
    What is the best program or way to adjust the color / contrast etc so that I get an photo-image (on paper) that is the same as what I see on mij monitor screen.

    THANKS! STATION_TWO for the "over-correct-answer" you give................
    If I'm honest, the answer of Richard was for me enough to realize where I made a "wrong inference" in understanding color management.
    He is for me the best teacher in this case, I've learned something from him because he's talking on my level.
    By the way: the english language is not my native language... so my questions should have to be read with understanding of grammatical expressions from other languages >> ("The color management is know by me…").
    Again: Richard, in this case, read my question properly and has helped me on my way.

  • Hello! I have a MacBookPro5,1. I recently had to erase the disk and start over. So right now I have OS X. what is the best(cheapest/fastest) way to get current on my OS to be able to use current websites and programs? thanks!

    Hello! I have a MacBookPro5,1. I recently had to erase the disk and start over. So right now I have OS X 10.5.5. what is the best(cheapest/fastest) way to get current on my OS to be able to use current websites and programs? thanks!
    Right now there is pretty much nothing on it, and I cant download basic things.

    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mavericks if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Mavericks
    You can upgrade to Mavericks from Lion or directly from Snow Leopard. Mavericks can be downloaded from the Mac App Store for FREE.
    Upgrading to Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8 or Lion installed. Download Mavericks from the App Store. Sign in using your Apple ID. Mavericks is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks- System Requirements
          Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.

  • Just got girlfriend a new iPad2. Her iMac is a PowerPC G5 (Tiger version 10.4.11) with 512 mb RAM. What's the simplest, most efficient way to get her iPad2 up and running and synced to her Mac?

    Just got girlfriend a new iPad2. Her iMac is a PowerPC G5 (Tiger version 10.4.11) with 512 mb RAM. What's the simplest, most efficient way to get her iPad2 up and running and synced to her Mac?

    Most of the Apple store sales people and some of the genius bar people are only knowledgable on Apple's more recent offerings. They are not very knowledgable, I found, on older PowerPC based Apple computers, I'm afraid.
    Here's the real scoop.
    Your girlfriend's G5 can only install up to OS X 10.5 Leopard. This is the last compatible OS X version for PowerPC users.
    OS X 10.6 Snow Leopard and OS X10.7 Lion are for newer Intel CPU Apple computers.
    Early iMac G5's can only have up to 2 GBs of RAM.
    Later iMac G5's (2005-2006) could take up to 2.5 GBs of RAM
    2 GBs of RAM will run OS X 10.5 Leopard just fine.
    The very latest iTunes (10.5.2) can be installed and runs on both PowerPC and Intel CPU Macs.
    However, there are certain new iTunes feature that won't work without an Intel Mac.
    One of iOS and iTunes feature is sync'g wirelessly over WiFi.
    This will not work unless you have an iDevice running iOS 5 and Intel Mac running 10.6 Snow Leopard or better.
    Although, I was disappointed I would not be able to do this with my G4 Mac, it's not a biggie problem for me.
    So, your girlfriend's computer should be fine for what she intends to use it for.
    The Apple people either just plain didn't know or we're trying to get you to think about buying a new Mac.
    At least, as of now, not truly necessary.
    If Apple, at some later point, drops support for PowerPC users running 10.5, then would be the time to consider a new or "newer" Intel CPU Mac.
    My planned Mac computer upgrade is seeking out a " newer" last version G5 for my "new" Mac.
    I can't afford, right now, to replace all of my core PowerPC software with Intel versions, so I need to stick with the older PowerPC Macs for the time being. The last of the G5's is what I seek.

  • What is the Best After Effects Version for my Computer?

    Hey I have a Windows 7 with a Pentium (R) Dual Core CPU T4400 @2.20GHz   2.20GHz
    RAM 3.00 GB 64bit Oberating System
    Display Adapter: Mobile Intel (R) 4 Series Express Chipset Family
    What is the best earlier model of After Effects or maybe current for my computer type?
    Or what is the best settings for After Effects to run faster for animation?
    Thanks

    Unless you plan on using a very old version of After Effects, which will cause a bunch of other problems on Windows 7, you simply need more RAM.  3 GB is barely enough to keep Windows running smoothly, let alone running a RAM-hungry app like AE.  Your first priority is to put more RAM in your computer.

  • What is the best and safest way to clean my iPad screen?

    I have had my iPad 3 for a week and I love it!  I want to keep the screen in good condition.  I am getting a cover, but I was wondering what the best and safest way is to clean the screen.  Any suggestions?  Thanks!

    http://www.theipadguide.com/faq/what-best-way-clean-my-ipad-screen
     Cheers, Tom

  • What is the best and safest way to clean my computer screen...fingerprints, etc.,

    wjhat is the best and safest way to clean my iMac screen  (fingerprints, etc,)

    Read the user manual that came w/your iMac - cleaning/care instructions section.

  • What is the best, most affordable software for a new graphic designer?

    My son is an artist and interested to learn how to be a graphic designer. Looking for the best, easiest to dive in, and most affordable software for my new, shiny iMac! Thanks....

    I would say Adobe Illustrator, Photoshop, and Indesign are the industry standard in design. But not the most affordable if your are on a tight budget. Photoshop elements has most of major features as the full version of Photoshop but is much cheaper. You can also download a trail version of the Adobe products from Adobe's website for your son to try out.
    Also, look in the app store on the Featured page, there is a link on the right, "Apps for Designers". There you can find several image editing and vector programs he could try. There might be a few layout programs as well.
    I would say if he is serious about getting into graphic design, Adobe products are the way to go. 

Maybe you are looking for