Last value from a loop and values inside the loop

Hi
Sorry about the confusing heading above, but its late at night and better words do not occur to me rightaway. Let me explain my situation.
I have a single instrument (a voltage source) that is being swept from one value to another for an experiment. It has three VI's : 1. enable o/p. 2. Set a voltage output level. 3. diable o/p.
I am using the error in and error out pins of instrument vis to properly sequence operations. I connect the error out pin of VI 1 to the error in pin of VI 2. Each of these errors is a cluster of three values.
When I try to wire the error out from VI 2 inside the loop to VI 3 outside the loop, the wiring breaks as I am then trying to connect an array (a 1 dimensional n member array of error outs) to a single error in pin. Trying to connect it to an array outside the loop is obviously the same. (I am making an assumption here - while the loop is running, I do not need to make certain of the sequencing of operations by putting a feedback node on VI 2 - that would mean something quite different in any case.).
So, how do I pass the last value (in this case, the error out cluster from the last stage) to error in pin of VI 3 ?
I have read that it might be possible using shift registers. I am quite new to LabVIEW. A somewhat detailed description of what I need to do would be nice.
Thanks.

Hello,
There are basically two options:
Handle the errors outside the for-loop
Handle the errors inside the for-loop
For you solution 1 is the easiest achievable, after the for loop use the 'Merge Errors' VI this will change the 1d-array into a cluster. The downside is that if an error occured later states of the loops don't know this
Solution 2 uses the shift register you mentioned. To use this you have to right-click on the right hand-side tunnel of the error wire (where it leaves the for-loop) and select shift register, sequentially your mouse pointer changes into an downpointed arrow, click on the entry tunnel on the left of the for-loop. What happens is that an error in the for loop is remembered into the next iteration (use execution highlighting to watch these)
Here is some code:
A good start might be:
The link to the LabVIEW Learning Center is here
Ton
Message Edited by TonP on 09-25-2006 08:01 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
Example_BD.png ‏5 KB

Similar Messages

  • Function module that can give the last value or the highest value of a key

    hi,
    Is there any function module that can give the last value or the highest value of a key feild in a z table.
    regards,
    johnson

    Hi ,
    We have  aggregate functions in SQL. Some of the functions are as follows.
    MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG(  col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
    For further details , type the function name name and press F1 for further help.
    Eg: select count(mantr) from mara into workarea where condition.
    Reward points if helpful.
    Thanks and Regards.

  • WAD - display only the last value in the chart

    hi...
    I designed a chart in WAD wich displayed a range of values in a line. Now im searching for a possibility to display the value for the points in my chart, but not for all values, only for the last value in the line! And every month the line will extended with new value-points, so it is necassary that the function is dynamic, always for the last point in the chart the value should displayed!?
    thx for some ideas!
    david

    hi @ all... once more information:
    the chart displayed only one keyfigure of a query. for example it display the revenue per month. in jan. = 10, feb. = 15, mar. = 25, apr. = 13, jun. = 23. these values should be displayed in a line in the chart aaaand additional for the last one in the line the valuecaption direct in the chart (f.e.: jun. = 23). not for all "periods-points"only for the last one.
    in jul. = 25 the chart changed and only for july the value-caption should be displayed. Is it possible?
    Regards,
    David

  • How to pick up the last value of the input string

    Hi there,
    I have a requirement in which I have to pick up the last value of the input string.
    I don't know the field length, it could be 10 line, it could be 4 line and it could be even 1 line.
    Another problem is that the field contains all the alphanumeric values so the sort function is not working.
    I believe I need to write a UDF but not sure exact what and how.
    Can some body please help me solving this issue.
    Input.
    1.Abc
    2.abc123atxx.com
    3.(980)771-2341
    4.
    5.518VR50V58AD10DSAYBDSAFDSIEGHA:1
    In that case I only need to pickup the last value i.e. 518VR50V58AD10DSAYBDSAFDSIEGHA:1
    Output
    518VR50V58AD10DSAYBDSAFDSIEGHA:1
    Note:
    1. Length is unknown
    2. Alphanumeric data
    Thanks,

    Hi karthick Lakkar,
    Thanks for your quick response but unfortunately I am getting mapping exception.
    What I did is create a UDF with 2 input
    INPUT
    a string
    b string
    and then this code
    int Length=Integer.parseInt(a);
    int requiredLength=Integer.parseInt(b);
    if(Length<=requiredLength)
    return(a);
    else
    return a.substring((Length-requiredLength),Length);
    I am wondering about the input as well.
    At present I am doing
    KTEXT + KTEXT --- UDF
    + does represent concat, means same input will go to the UDF
    This is the error which I am getting
    Exception:[java.lang.NumberFormatException: For input string: "Kevin Farrar"] in class com.sap.xi.tf._MM_XXXXXXXXXXXXXX_ method calculate[Kevin Farrar, Kevin Farrar, com.sap.aii.mappingtool.tf7.rt.Context@6dbf19db]

  • How to display values inside the Pie chart?

    Hi Expert,
    How to display the values inside the Pie chart, instead of Mouse over values. Can u pls help me to do this one.
    Is it possible can we use mentioned below kind of pie charts in Xcelsius 2008.
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 10:41 AM

    Hi A G,
    Thank You for quick response!!!
    in this Text tab I am able to see below check box only
    1) Chart Title
    2) Sub Title
    3) Legend
    4) Mouse-Over
    Kindly advise me if i am wrong and let me know how to achieve this.
    Note: We have Xcelsius 2008 environment
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 1:58 PM

  • "last value" in the KF aggregation tab page

    can u plz tell me what is the meaning of "last value" in the KF aggregation tab page. also what is use of aggregation reference char. please give explaination with example.
    amit

    Hi
    Last value in KF Aggregation tab is
    For example Amount is the Key figure with values 100,200,300,400
    if u sekect last value
    it will display 400 in the entire amount column..........

  • I had a friend airdrop a video to me last week from her iPhone and I saw it on my iPhone after the upload was complete. I'm looking for the video now and can't find it anywhere on my phone. Where is it and/or is it stored on my phone?

    I had a friend airdrop a video to me last week from her iPhone and I saw it on my iPhone after the upload was complete. I'm looking for the video now and can't find it anywhere on my phone. Where is it and/or is it stored on my phone?

    I airdropped the video again and it now shows up in my camera roll.

  • Import data from few tables and export into the same tables on different db

    I want to import data from few tables and export into the same tables on different database. But on the target database, additional columns have been added
    to the same tables. how can i do the import?
    Its urgent can anyone please help me do this?
    Thanks.

    Hello Junior DBA,
    maybe try it with the "copy command".
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/apb.htm
    Have a look at the section "Understanding COPY Command Syntax".
    Here is an example of a COPY command that copies only two columns from the source table, and copies only those rows in which the value of DEPARTMENT_ID is 30:Regards
    Stefan

  • A link from my animation is locked inside the dimensions of the original animation.  the link should

    Thank you sincerly for any help in advance.
    A link from my animation is locked inside the dimensions of the original animation.  the link should go to new url but opens in i frame instead, scroll-able, within the dimensions of the beginning edge animation from which it linked.
    Here is the landing page edge asset and the link is the center pulsing sand grain:
    http://kkz321.businesscatalyst.com/index.html
    Here is the actions javascript file from the animation.  I'm not sure if it's the source. 
    "landing_hourglass_3_edgeActions.js"
    (function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
    //Edge symbol: 'stage'
    (function(symbolName){Symbol.bindElementAction(compId,symbolName,"${_landing_sand_grain}", "click",function(sym,e){window.open("http://kkz321.businesscatalyst.com/welcome.html","_self");});
    //Edge binding end
    Symbol.bindElementAction(compId,symbolName,"document","compositionReady",function(sym,e){$ ("#Stage").css("margin","auto")});
    //Edge binding end
    })("stage");
    //Edge symbol end:'stage'
    })(jQuery,AdobeEdge,"EDGE-landing_hourglass_3");
    Here is snippet of CSS from main css page:
    #EdgeIDlanding_hourglass_3 {
              margin-right: auto;
              margin-bottom: auto;
              margin-top: 5%;
    Here is snippet of HTML from main START INDEX page:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Kinetik Artz  Work By Michael Schmidt</title>
    <link href="/Stylesheets/main.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <object id="EdgeIDlanding_hourglass_3" type="text/html" width="222" height="454" data-dw-widget="Edge" data="edgeanimate_assets/landing_hourglass_3/Assets/landing_hourglass_3.html">
    </object>
    </body>
    </html>
    Thank you very much for any help

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Kinetik Artz  Work By Michael Schmidt</title>
    <link href="/Stylesheets/main.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <object id="EdgeIDlanding_hourglass_3" type="text/html" width="222" height="454" data-dw-widget="Edge" data="edgeanimate_assets/landing_hourglass_3/Assets/landing_hourglass _3.html">
    </object>
    </body>
    </html>
    remove the width and height out of the html object ( width="222" height="454" )
    that would probably solve it
    or change it to the pages width and height

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • Ipone5 screen became curved so you can show filter lighting internal slightly from both sides and then taking the bend is growing even split-screen device by 2 mm from the top screen still works, even though it is no longer adjacent to the device, but fro

    ipone5 screen became curved so you can show filter lighting internal slightly from both sides and then taking the bend is growing even split-screen device by 2 mm from the top screen still works, even though it is no longer adjacent to the device, but from the bottom with the appearance of a blue line longitudinally as a result of the curvature of the screen is also a button home-does not function well will not make my device and search for a solution with my friends interested in the technology, because I am embarrassed by the form of the device after the holidays where it seemed like device industry is poor and I am writing to Mtabaana that the iPhone is the best among "smart phones" unwillingness on the label and I have reasons as he have many ideas Perhaps the first is to install the replacement screen with adhesive to Atsamad in front of the machine heat from the inside and the outside of the hot weather in another way Macaianikiholas latest device that will not require recharging,,, NOTE: void wrought screen contributed to increase the signal network and wifi is erase

    ipone5 screen became curved so you can show filter lighting internal slightly from both sides and then taking the bend is growing even split-screen device by 2 mm from the top screen still works, even though it is no longer adjacent to the device, but from the bottom with the appearance of a blue line longitudinally as a result of the curvature of the screen is also a button home-does not function well will not make my device and search for a solution with my friends interested in the technology, because I am embarrassed by the form of the device after the holidays where it seemed like device industry is poor and I am writing to Mtabaana that the iPhone is the best among "smart phones" unwillingness on the label and I have reasons as he have many ideas Perhaps the first is to install the replacement screen with adhesive to Atsamad in front of the machine heat from the inside and the outside of the hot weather in another way Macaianikiholas latest device that will not require recharging,,, NOTE: void wrought screen contributed to increase the signal network and wifi is erase

  • I have taken a photo from an airplane and cannot get the 'map' function on the exifwizard app. Is it because I was too high? Altitude that is.

    I have taken a photo from an airplane and cannot get the 'map' function on the exifwizard app. Is it because I was too high? Altitude that is. Other photos allow me to use the 'map' function.

    Most likely, if you were inside the airplane, rather than sat on the wing, the iPhone couldn't get a GPS lock-on, or you didn't wait long enough for it to get a lock on.
    EDIT: Lawrence is right... forgot about that.

  • Where can I buy a larger hard drive for my late 2008, 15" macbook pro?  From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended.  But how/where?

    Where can I buy a larger hard drive for my late 2008, 15" macbook pro?  From reviewing questions and answers on the support community it would appear that having Apple remove the old and install the new hard drive is recommended.  But how/where?

    Welcome to Apple Support Communities
    You can install the new hard disk yourself if you want to. You just need a 2'5" SATA II hard drive, which is compatible with your MacBook Pro. You can buy one at OWC > http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ You can filter hard drives by computer, so press a "Click to view all...", choose your computer in the sidebar and it will give you the compatible hard drives.
    There are different brands for the MacBook Pro. The most recommended are HGST and Seagate, which have good reputation. A 7200 rpm hard drive will give you extra performance

  • If I restored my new iPhone from iCloud backup, and I delete the old iPhone backup to make room on iCloud to back up my new phone, will it delete everything on the new phone?

    If I restored my new iPhone from iCloud backup, and I delete the old iPhone backup to make room on iCloud to back up my new phone, will it delete everything on the new phone?

    I have this exact same issue.  Replaced my iPhone 4s with the new iPhone 5s, setting up my new iPhone 5s to restore from iCloud.  This completed and now I am unable to delete my old iPhone 4s iCloud backup (consuming 15.1 GB of my 20GB allocation).  How can I delete it, so that I get my 15 GB back?  I am not going to invest in additional iCloud storage, because I will be 15 GB down from the off.

  • How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance

    How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance downloading it again, especially because (believe it or not) I added it to my phone because that's precisely where I wanted it!! Any help much appreciated

    FYI I had to put this link into firefox to reply - because **** back safari just wouldn't register my clicks to any of the links on the post... Despite reloadeing and even restarting my computer. Totally annoying and a massive pain in the ***.
    But in terms of my initial query; thanks for responding. But no, this is NOT the cause of the problem. I have auto sync and sync over wifi activated, but have also selected manually manage music and videos. Plus, all of my music and videos are on my macbook, absolutely all of it, so if it my phone was syncing with my macbook everything would still be on the phone. Life would be peachy if my phone jsut copied everything that was on my macbook, but unfortuantely it keeps deleting tracks for no apparent reason.
    Any thoughts greatly welcomed, because at the moment i can only conclude that my iphone is crap.

  • I have rebuilt my home PC and want to restore my playlists from my iPhone and iPad to the PC but I can only fgind how to sync the other way (i.e. iTunes on PC overwrites the iPhone or iPad)! Frustrating! Can anyone Help?

    Hi All,
    I have both the iPhone (16Gb 4S) and an iPad (128Gb Retunia display).
    My home PC recently failed and I was unable to restore and through some bad luck my backups were rained on and corrupted (I have tried all sorts ot tricks to get it back but no luck and have now moved on to rebulding and regathering the data and applications).
    Bottom line is that I have replaced the pld machen wioth a newer model and more RAM, etc.
    My problem is that I do not appear to be able typo restore my playlists from my iPad and iPhone to the PC!
    Every way I have tried wants to overwrite my iPhone or iPad with what is on the PC!
    How can I get the music on my iPad/iPhone to the PC?
    I have most of the music tracks (in various places) still but do not want to go through the 6000 tracks IU have to pick out my playlists all over again. That was the work of a few years!
    Second item:
    I have a few ibooks and am unsure ghopw to get the onto my iPad? ANy hints or help will be appreciated.
    Thank you
    Dumpy
    aka Dave

    This explains how to do what you want to do. It was written for an iPhone or an iPod Touch, but the process is the same for an iPad.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    https://discussions.apple.com/docs/DOC-3141

Maybe you are looking for

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure? Please also mention the syntax too.

  • PDF Email Corrupt

    I constantly receive files via PDF that I need to forward to co-workers.  I have used the Iphone 4 for this for over a year.  About 2 months ago, the PDFs have started coming over corrupt.  The email is MS Exchange.  When I forward the same email and

  • IPad won't accept passcode after iOS5 update?

    Just updated my iPad 2 to iOS5.  Turned it on and the passcode prompt has changed, no longer just asking for 4 digit passcode.  Oooookay, I entered my old 4-digit passcode and it didn't work.  Tried my Apple ID passcode, no luck.  Tried the password

  • AE error: CT generic: not ascii (83 :: 2)

    Hi all, I am using AE CC and I find this error on start:  AE error: CT generic: not ascii (83 :: 2) I close the alert and AE works correctly, but I want to know what is going on. I am using AE CC 12.1.0.168 on a Windows 7 SP1. Thanks

  • Groupwise 2012 webaccess Calendar

    Hi I am running Groupwise 2012 One of my users gets this error when opening their calendar in Webaccess (D101) User not found on post office In the webaccess log this is the error message 8:50:19, <SOAP>, -, INFO, "user" , Check Calendar 8:50:19, <SO