Sub - VI with nodes of feedback used more than once inside a While loop

All,

I have a Subvi is a set of operations and using 3 feedback nodes. I use this Subvi inside a loop While 4 times in total. I noticed all instances used to share the same result in each node for your comments, but I would like to have an individual result of each of them. Is there an easy way to work around this problem? I find ways to avoid this: a) create a different vi for each time the Subvi has been used. (b) use global variables instead of feedback nodes. Is there an easier way to get around this problem?

ExamplePlease note that the two sub - VI are the same) If on my first Subvi I calculate a maximum value and get 1.29 (then goes to the crux of feedback) on my second slot - VI 1.01 my feedback to the Subvi second node records still get the maximum value or 1.29. (and I want it to be 1.01!)

Hope, that it is not too complicated, I was scratching my head with that for a while, can't find the "easy" button Thanks in advance.

-Pop

IM using 9.0.

It would be useful to join the code. Anyway, I'm not sure how several knots of comments are supposed to work so I will defer to others to answer that. As far as being able to use separate or instances values if you are using a Subvi, you could mark it as reentrant. In this way, each call to it will behave as it were a copy of the VI and it will have its own memory space. This should include the feedback node. You end up with a single slot - VI and in reality a single node of feedback. If you need pass data between calls that simply data through wire. You can also use a motor of Action to store and retrieve values. An EA is MUCH better than a global variable.

Tags: NI Software

Similar Questions

  • Codes of the lesson can be used more than once?

    My students purchase the book for class and use the codes of the lesson in the back of the book. These codes may be used more than once? Sometimes my students buy used texts. Thank you!

    Yes, I use classroom in a book for Photoshop and InDesign. Thank you!

  • cannot use more than once back or cant use BACKSPACE to delete a letter when typing email or Word Help.

    Original title: cannot use the BACKSPACE or repeated letters

    If typing an e-mail or Word Help, I can't use the backspace over once to delete a letter. I also can not type two letters of same consecutively without highlighting with the mouse to delete and retype the letter.

    Check the keyboard settings in the control panel to ensure that delay and repeat rates are fixed limits on use.  There is a test there area where you can test your settings.

  • Can I use more than once the trial of a piece of software?

    I have a free account and want some software trial. I can use this piece of software once, or it does not reset?

    That is, I can Photoshop the trial and the trial then again at a later date?

    No, you cannot use the free trial again on this machine. Its just for 30 days and cannot be reset. So if you want to use, try the PS, using it on another machine.

  • How is it you can't use more than 126 GB of a 1.5 TB with LabVIEW Real-time hard drive?

    How is it you can't use more than 126 GB of a 1.5 TB with LabVIEW Real-time hard drive?
     
    It's only 8.3% of disk space!

    http://digital.NI.com/public.nsf/allkb/E7E2F5657B6026358625750B007201A6?OpenDocument

    The national Instrument is reformat that you drive less than 126 GB or replace the drive with a less than this size.

    Please OR tell me you go fix your LabVIEW Real Time soon, and that we will not have to wait for LabVIEW RT 9.2.1 in 2011 for this one to fix.

    http://upload.wikimedia.org/Wikipedia/Commons/9/90/Hard_drive_capacity_over_time.svg

    Readers as high as 126 GB or more have been around since mid-2002.  It's about 7 years now and LabVIEW Real-time STILL cannot use greater than 126 GB drives!  Please OR.  Do something.

    We deserve the patches for older versions of LabVIEW RT.  What about updates to LabVIEW RT.  As 7.0.2 7.1.2 7.6.2, 8.0.2, 8.2.2, 8.6.2.

    We don't need new features or versions of LabVIEW RT as 9.0 until we have some of the bugs fixed in existing versions.

    Kevin.


  • Why am getting started on the internet with the message saying that more than one computer using the same ip address

    am is started from the internet for 3 days pass with the message saying that more than one computer using the same ip address

    am is started from the internet for 3 days pass with the message saying that more than one computer using the same ip address

    Thatmessage normally means a another computer on your local network has the same IP as the computer you are on.

    You control your Local network?

  • How do I avoid the accumulation of color / opacity where two brush strokes overlap?  In other words, I want to use more than one path with the Paintbrush tool, but see no additive effect where strokes overlap.  What Miss me?

    How do I avoid the accumulation of color / opacity where two brush strokes overlap?  In other words, I want to use more than one path with the Paintbrush tool, but see no additive effect where strokes overlap. 5 Lightroom

    I use it all the time. Turn your opacity, density and traffic all 100%.

    Benjamin

  • How to use photoshop with the same account on more than one laptop?

    How to use photoshop with the same account on more than one laptop?

    a single user license entitles you to two facilities simultaneous/activations.  so, what's the problem?

  • Can I use more than one flash drive to ready boost on Satellite L650/0ed

    Hello

    I have a toshiba Satellite L650/0ed, it's good if I use more than one drive 8 GB flash for "ready boost" - what is the maximum number of using flash-drives can devote to the "ready-boost.

    In addition, if I use a 16 gb flash drive, will this affect more memory "ready boost".

    Why the 3.5 drive seagate expansion 1 TB is not compatible for ready-boost.

    Thank you
    -Brent907

    Hi mate

    Please check this Microsoft page that describes the ReadyBosst
    http://Windows.Microsoft.com/en-us/Windows7/products/features/ReadyBoost

    There, you can find this statement:
    + ReadyBoost works with storage devices more flash. In Windows 7, it can handle more memory and even multiple devices * eight *, for a maximum of 256 GB of additional memory. +

    I hope this can be useful!

  • My keyboard is not save when I try to use a button more than once.

    My keyboard is not recording that I use a button more than once and it's causing problems with typing and use / the overall experience from my computer.
    If I try to go back an entire word, it will be only a matter of erasing and then the keyboard does not recognize that I use the back button back until I have use another first. Essentially, I am unable to use a button more than once, unless I hit another key.
    This problem does not extend to the buttons of the mouse and trackpad.
    This problem is not just with the keys to the letter, with all the control keys.
    I use a HP Mini with Windows XP Professional.

    Hi Danielle,

    The first two thoughts that come to mind are supposed to check and "fiddling" the following:

    1 Control Panel > keyboard > Ketboard Repeat Delay and/or keyboard repeat rate.

    2 panel > Ease of Access Center > facilitate the use of the keyboard > disable filter keys or to adjust the applicable rates, if you want to use them.

    I hope this helps.

    Good luck!

    Kosh

  • Windows XP system using more than 50% of the CPU

    Hello

    Recently, my windows XP works very slowly, with system interruptions take up more than 50% of CPU, most of the time. I've updated all the drivers yesterday, the problem disappeared for a few hours then reappeared again.

    Thanks in advance for any suggestions.

    Start your machine in a "Clean boot" State and see if you still have your problem (I bet you won't):

    "How to configure Windows XP to start in a"clean boot"State
      <>http://support.Microsoft.com/kb/310353 >

    If the problem goes away in the clean boot state, then use MSConfig to find out which program or service is causing the problem:

    "How to solve configuration errors by using the System Configuration utility in Windows XP"
      <>http://support.Microsoft.com/kb/310560 >

    There is a lot of trial and error, but finally you have to narrow down the cause of your problem.

    HTH,
    JW

  • How to use more than 5 esxi hosts?

    If I try to use more than 5 guests esxi, that io parser gives a hint to use an other Analyzer io controller VM.

    So does that mean I have to use two io parser controller vms, i.e. to two Web sites that are not in sync?

    Page 6 of the IO parser guide:

    Maximum Configuration Analyzer of e/s

    Analyzer IO 1.5.1 has been tested up to the following configurations:

    With up to 128 worker virtual machines per ESX/ESXi host.

    With up to five ESX/ESXi hosts by controller i/o parser VM.

    To run the Analyzer of i/o tests with more than five ESX/ESXi hosts, we recommend using several VMs controller.

    Yes, you can use several controller - VMs

  • Using more than 2 points of control in Interpolater.Spline

    Hello

    what I'm getting is a bouncing ball, I thought it could work controlling the interpolator to create a control of several points using the spline. (a feature of x ^ n ^, where n is the number of control points)
    In a Groove I can use only two control points, is there a way to use more than that, or do I have to use another way.

    Thanks for any help.

    Edited by: A.m.z on 9 may 2013 01:49

    Edited by: A.m.z on 9 may 2013 01:49

    Well, I guess it was not so difficult - at least when there are libraries written by others to borrow to...

    The interpolator requires the apache commons math 3.2 lib - you can download Commons-math3 - 3.2 - upload - the here:
    http://Commons.Apache.org/proper/Commons-math/download_math.cgi
    Remove Commons-math3 - 3.2.jar since the zip and put it on your class path.

    The interpolator differs slightly from the interpolator of Interpolator.SPLINE that comes with JavaFX.
    Instead of control points which bend the curve but do not lie on the curve, the interpolator takes a set of points and trace a straight regression line through the points.

    import javafx.animation.Interpolator;
    import org.apache.commons.math3.analysis.interpolation.SplineInterpolator;
    import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction;
    
    public class BestFitSplineInterpolator extends Interpolator {
    
      final PolynomialSplineFunction f;
    
      BestFitSplineInterpolator(double[] x, double[] y) {
        f = new SplineInterpolator().interpolate(x, y);
      }
    
      @Override protected double curve(double t) {
        return f.value(t);
      }
    }
    

    Here is a usage example:

    import javafx.animation.*;
    import javafx.application.Application;
    import javafx.scene.* ;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    
    public class BestFitSplineDemo extends Application {
    
      private static final Duration CYCLE_TIME = Duration.seconds(7);
    
      private static final int PLOT_SIZE = 500;
      private static final int N_SEGS    = PLOT_SIZE / 10;
    
      public void start(Stage stage) {
        Path path = new Path();
        path.setStroke(Color.DARKGREEN);
    
        final Interpolator pathInterpolator = new BestFitSplineInterpolator(
          new double[] { 0.0, 0.25, 0.5, 0.75, 1.0 },
          new double[] { 0.0, 0.5,  0.3, 0.8,  0.0 }
        );
    
        // interpolated spline function plot.
        plotSpline(path, pathInterpolator, true);
    
        // animated dot moving along the plot according to a distance over time function.
        final Interpolator timeVsDistanceInterpolator = new BestFitSplineInterpolator(
            new double[] { 0.0, 0.25, 0.5, 0.75, 1.0 },
            new double[] { 0.0, 0.1,  0.4, 0.85, 1.0 }
        );
    
        Circle dot = new Circle(5, Color.GREENYELLOW);
        PathTransition transition = new PathTransition(CYCLE_TIME, path, dot);
        transition.setInterpolator(timeVsDistanceInterpolator);
        transition.setAutoReverse(true);
        transition.setCycleCount(PathTransition.INDEFINITE);
        transition.play();
    
        // show a light grey path representing the distance over time.
        Path timeVsDistancePath = new Path();
        timeVsDistancePath.setStroke(Color.DIMGRAY.darker());
        timeVsDistancePath.getStrokeDashArray().setAll(15d, 10d, 5d, 10d);
        plotSpline(timeVsDistancePath, timeVsDistanceInterpolator, true);
    
        stage.setScene(
          new Scene(
            new Group(
              timeVsDistancePath,
              path,
              dot
            ),
            Color.rgb(35,39,50)
          )
        );
        stage.show();
      }
    
      // plots an interpolated curve in segments along a path
      // if invert is true then y=0 will be in the bottom left, otherwise it is in the top right
      private void plotSpline(Path path, Interpolator pathInterpolator, boolean invert) {
        final double y0 = pathInterpolator.interpolate(0, PLOT_SIZE, 0);
        path.getElements().addAll(
          new MoveTo(0, invert ? PLOT_SIZE - y0 : y0)
        );
    
        for (int i = 0; i < N_SEGS; i++) {
          final double frac = (i + 1.0) / N_SEGS;
          final double x = frac * PLOT_SIZE;
          final double y = pathInterpolator.interpolate(0, PLOT_SIZE, frac);
          path.getElements().add(new LineTo(x, invert ? PLOT_SIZE - y : y));
        }
      }
    
      public static void main(String[] args) { launch(args); }
    }
    

    Published by: jsmith on 11 may 2013 05:58

  • Slow Server 2008 performance when you use more than 1 CPU - bug?

    Hello

    It seems that when I run Server 2008 on one of my boxes 3 10.5.7 if I use more than 1 CPU in the settings, the ankles of machine the CPU while booting and then during the use of the operating system.  Normally, I have to run all 3 of them at the same time... and if I get all 3 virtual machines running, the CPU remains just pegged and slows down the machine.

    Then, if I close everything and change the settings to 1 CPU, virtual machines work fine, the CPU barely sees any activity and 75% of the 8 GB is used and it can run for weeks at a time without any problem.

    My 3 VMs

    1 Server 2008 x 64 w/Exchange 2007 2 GB, 1CPU

    2 Server 2008 x 86 File Server/Anti-anti-virus/utilities/Quickbooks, etc. 1 GB, 1CPU

    3 Server 2008 x 86 Active 1 GB, 1CPU Directory

    My Mac run all 10.5.7

    1 Macbook Pro 2007 2.33 Core 2 Duo

    1 mac Pro desktop 2008

    Rig EFIX running 10.5.7

    1 EFIX EP45-DS3R Q9550

    all the boxes are running 10.5.7 with the EFIX running 10.5.7 platform server and I can recreate in one of the 3 machines, 10.5 server or workstation, etc.

    Yes, I have the tools are installed and uses the latest patches, software, etc.

    Thanks for any help...

    VCPU more inside a virtual machine using could be a big problem, if you don't have much physical basis.

    If you set vCPU # = # pCore, then you will have several performance issue, cause you VM hangs (during its run) ALL of your hearts.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • Configuration of 10g to use more than 1 CPU

    Hello experts,

    I have server Oracle 10.2.0.4 Enterprise Edition running on a Windows Server 2003 - Enterprise 64-bit.

    * The server has 4 Xeon processors *.

    We have a performance tool that we alert to an enrichment of the CPU.

    It seems that Oracle uses only a SINGLE processor.

    Is this normal in a 4-processor server?

    Can I make a configuration change to allow Oracle to use more than 1 CPU a CPU?

    Thank you very much. John

    You have several active sessions simultaneously (i.e. normal operation OLTP) relatively fast SQL statements running? Or if you use with a handful of active sessions that each runs relatively long SQL statements (i.e. normal DSS / operations data warehouse)?

    Unless you explicitly prevented Oracle to use several processors, it will use Fortunately each processor on the server. But if you have only one session active at a time and that the session is not running of the parallel operations, you would only end up using one of the available processors.

    Justin

Maybe you are looking for