Pass data to another loop event loop

I'm trying to find a simple way to pass data to a loop of events for use elsewhere.  Could someone explain to me why my example below block (code attached)?  I feel that I must be missing something simple.  Also, I would rather avoid queues, if possible, because they seem unnecessarily complex.  Thanks for your help!

The second loop will not run until the first is done. Use the performance highlighting and you can see. You can use a local or a vi to register the data in. Here's a quick example with the help of a local.

Tags: NI Software

Similar Questions

  • Produce data of a loop with a structure of the event

    I'm relatively new to Labview programming (as discussed in my program below). I found a vi online which collects data from an analog USB card to 9237 bridge. The upper part of the vi is which collects the data. The original place the output into a chart, but I changed it to a digital indicator.

    The lower part, trying to get the operator to use the start, stop, buttons to interact with the system to reset. I used an event structure to do this. It all works well, except the event that the value of the load of data (from the loop above) cells. I want to follow up on the new value continuously, but is only once. All other features work fine. Can someone explain how I would best accomplish this?

    Any help would be apprciated.

    Why do you use a queue to pass data to a loop at the other?  The reason why it doesn't work once, it is the lower loop will wait until an event has occurred.

    I would eliminate the queue.  Wire the Total in a property for the total value (signalling) node.  That will trigger the occurrence for Total: change value event.

    Don't read property nodes in the upper loop when you have indicators and the son here to read from.

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • data in different loop

    Hi all

    I'm working on an application where I need to acquire data to support him, treat, show on the graph, and the user can then make some changes (like changing the penetrating, speed of scanning or the filter values) on the returned data.

    I use producer consumer architecture to implement my program.

    In the loop of producer, I have a big event that has a time-out (10 ms) event where I acquire the data to support him in the loop of consumer I process data.

    If all the data I receive from my H/W are treated and loops around the consumer in a loop.

    And all penetrating filter change events, sweeping, producer loop. Where are these events took place, so I need to act on data that are lying in the loop of the consumer.

    I just need to know how I can deal with data that are lying in another loop. What I need to use Variables, the values in the chart, or is it possible to efficeint more to exploit the data?

    Thank you

    Ritesh

    In the producer/consumer having Labview design model, it uses a queue to transfer the data to the other loop.

    So, there is only one answer. Use a queue.

    You didn't say how big are your data or what kind are the ones. So I'll just say this: another solution, I usually use is to store the data in a global function (or the motor action)

    All your actions should begin to read this and at the end to write the new return value to the overall function, so that it is ready to be read by the next action

  • Anyway to save the data in a loop without using shift register or feedback loop

    Hi all

    I've been thinking, is it possible to save data in a loop to the next iteration without the use of a shift register or a feedback loop?

    I need the possibility to reload the data within a loop from a file of lvm, but I want to use the same data until I have load some new.

    The reason why I don't want use the node registry or feedback shift is due to speed, although I don't know if the registry change

    in fact moves all the data of one register to another, or if it is stopped until a change data occur.

    I want to reuse data medium and large (6 measure of strength, pressure 2, 1 flow channels) of about 10 s data in each file with samplingsrate of 2 kHz...

    In my testing program, I have several CPU demanding computations and 3D graphics, so I want just to minimize the CPU loading as much as I can for each part of the

    software...

    I am enclosing a small VI to explain what I mean.

    I have now, I shouldn't use the express VI and I'll change that as well - it's just a proof of concept!

    Hope you guys can help me better understand this shift register...

    Thank you!

    -Tommy

    If the speed is the name of the game, go with the flow (data) and stick to a shift of registers or feedback node.  No data is moved, their job is to do pretty much exactly what you describe.  Any other solution, control/locals/globals will imply a copy of the data, and then you will have problems with speed.

  • pass data to the event handler function

    I'm trying to pass the value of the event handler function, but I get the following error. Can someone please tell me what I'm doing wrong?

    1067: constraint implied a Sub type value to a type unrelated function

    Here is the code

    private void myClickListener(myid:int):void {}
    Alert.Show ("button was clicked");
    }


    public void handleStringResult(event:ResultEvent):void {}
    catInfo = event.result as ArrayCollection collection;
    for each {(var o: Object in catInfo)
    var b:Button = new Button();
    b.label = o.FILLCOLOR;
    b.ID = o.CATID;
    b.setStyle("fillColors",['#'+o.FILLCOLOR,'#'+o.FILLCOLOR]);
    b.setStyle ("color", "#FFFFFF");
    b.setStyle ("fontFamily", "Arial");
    b.setStyle("fontSize",8);
    b.setStyle ("textRollOverColor", "red");
    b.addEventListener (MouseEvent.CLICK, myClickListener (o.CATID));
    myvbox.addChild (b);
    }
    }
    []] >

    "Merlyn MM" wrote in message
    News:gb901m$2QD$1@forums. Macromedia.com...
    > Of course, here's the code. I am very new to flex and if my code is not
    > sense
    > so please let me know the correct way to proceed. I really appreciate
    > you
    > take the time!
    >
    >
    ' > http://www.adobe.com/2006/mxml '.
    > layout = "absolute".
    > backgroundColor = "#FFFFFF."
    > initialize = "myService.getcategories.send ()" > "
    >
    > useProxy = "false".
    "" > wsdl = " http://devsite/rc/category.cfc?wsdl"
    > showBusyCursor = "true" >
    >
    > result = "handleStringResult (event)" "
    > fault = "Alert.show (event.fault.message)" / > "
    >
    > fault = "Alert.show (event.fault.message)" / > "
    > //Need CATID to pass the ID of category here
    >
    >
    >
    >
    > > import mx.collections.ArrayCollection;
    > import mx.rpc.events.ResultEvent;
    > import mx.rpc.events.FaultEvent;
    > import mx.controls.Alert;
    > import mx.controls.Button;
    >
    > [Bindable]
    > private var catInfo:ArrayCollection;
    >
    > private void myClickListener(myId:String):void {}
    >
    > myService.getcounties.send () / / I need to send the catid here to the
    > webservice
    > }
    >
    >
    > public void handleStringResult(event:ResultEvent):void {}
    > catInfo = event.result as ArrayCollection collection;
    > for each {(var o: Object in catInfo)
    > var b:Button = new Button();
    > b.label = o.FILLCOLOR;
    > b.id = 'btn' + o.CATID;
    >
    > b.setStyle("fillColors",['#'+o.FILLCOLOR,'#'+o.FILLCOLOR]);
    > b.setStyle ("color", "#FFFFFF");
    > b.setStyle ("fontFamily", "Arial");
    > b.setStyle("fontSize",8);
    > b.setStyle ("textRollOverColor", "red");
    > b.addEventListener ("click", myClickListener);
    > myvbox.addChild (b);
    > }
    > }
    > ]]>
    >

    I would like to change it to this:

    private void myClickListener(e:Event):void {}

    I do not see where you use the ID, but to do it,
    Use this code:
    var e.currentTarget.data = myID;

    myService.getcounties.send () / / I need to send the catid here to the
    WebService
    }

    public void handleStringResult(event:ResultEvent):void {}
    catInfo = event.result as ArrayCollection collection;
    for each {(var o: Object in catInfo)
    var b:Button = new Button();
    b.label = o.FILLCOLOR;
    Note that you could not have used your ID
    as a 'handle' to anything, so I replaced
    This logic with something you _could_ use
    b.Data = o.CATID;

    b.setStyle("fillColors",['#'+o.FILLCOLOR,'#'+o.FILLCOLOR]);
    b.setStyle ("color", "#FFFFFF");
    b.setStyle ("fontFamily", "Arial");
    b.setStyle("fontSize",8);
    b.setStyle ("textRollOverColor", "red");
    b.addEventListener ("click", myClickListener);
    myvbox.addChild (b);
    }
    }

    You could also use a Repeater and establish in MXML.

    HTH;

    Amy

  • Pass data to Image update Subvi VI main

    I try to get under VI containing a for loop to pass data to an indicator on the main VI update. I followed this explanation...

    http://digital.NI.com/public.nsf/allkb/0F4EA104660C0AF38625726F0069B27E

    .. .and am able reproduce the example with a digital command, but I was not able to extend the example to an indicator of image output. I suspect that I use the control bad, Refnum reference or property. Can anyone suggest corrections?

    Details:
    I use a control reference [line] to a [Picture] indicator of my main VI [Center of manufacturing] to the Subvi [SUB mask display].

    I placed a Refnum control on the front of the sub - VI, he linked to a property on the block schema node, selected the property "Value" and hooked up the output of the image of a VI IMAQ to this property.

    If 'Run of Images' on the sub VI is set to FALSE, a static image 'test0.jpg' must be returned to the main VI. If 'Run Images' is set to TRUE, a loop is supposed to pass 'test0.jpg', "test1.jpg", etc. to the main VI at regular intervals. Instead, the indicator Image is empty.

    Hi MaryamAli,

    I think you are doing everything correctly but you are having your image inside the Subvi so the will of image ever seen in the main VI. Try to remove the IMAQ dispose VI in your TRUE and FALSE cases and see if it works.

    Tim O

  • Core 1 page 9-4: "...". pass data between parallel patterns... »

    «.. . If allows you to pass data between parallel block diagrams... son"this can be done?

    They mean transfers data between parallel loops/structures?

    The question is a Hue. It is not parallel, using wires. Two loops are not connected is perhaps parallel. We read your table of contents it a game of guessing on the sentence of your thread. Maybe if you get into the details.

  • Pass data between panels

    I have a digital slide on a Panel. When I move the cursor, I need the value update on another Panel.

    How can I do this?

    The two panels are loaded as a senior-level windows.

    It seems that I read something on the use of queues to pass data between the panels, but I can't seem to find where I read that.

    A basic concept that differentiate the CVI to other languages, it's that there is no relationship between a sign and a specific source file. I mean, you do not need to put a sign functions in a specific source file: they can be spread over multiple sources; Conversely, you might have a source only that collects reminders for all panels of files in your application. What readers recall execution are Panel handles and control ID. (One effect of this paradigm is, you might have a reminder installed on controls on different panels).

    For this reason, there is no problem by putting the cursor callback in panel1.c. In addition, you can call the file source in a different way.

    Arriving at the base of your problem, a DAQ multithreaded application is really different from a UI single-threaded application.

    Put the functions of data acquisition in a separate thread can be beneficial for your application, because they are not likely to suffer user interface events.

    CVI provides also the different methods of transmission of data between threads. the most powerful in data acquisition applications is probably a Thread Safe queue.

    I suggest you look at Programmer's Reference > chapter of the creating multithreaded Applications to aid, where the basic principles of programming are explained multithreaded and information are provided on all instruments CVI includes.

    If you want to discuss on this scenario, I suggest yu to start a new thread, as it has nothing to do with the original question with which you started this discussion.

  • AT100 - impossible to get my calendar to store the dates of the annual events

    Hello.

    Cannot get my calendar to store the dates of the annual events birthdays for example.
    Option gives (annual 27 July 2012), but would it be fair (27 July each year). No way to remove year so presumably won't wait that 2012 will come along! All the other choices for weekly and monthly do not specify the year.

    Annual option should I think be the same. Tried to enter next year, but comes with (year July 27, 2013) so it looks that have to enter every year which is a pain. Someone at - it ideas.

    It's my first post he hopes in the right place.

    Thank you

    Hello

    Why you n t try another Android app like for example calendar of birthday or anniversary Assistant

  • How to pass data (more effective) autour

    Hello
    I wonder how to pass around large data around across the application.

    For example:
    1 data or data of my analog channels
    (I have a lot of screws that will process these data of waveform)
    Is it not wise to spend around analog continuous data?

    2. What if you want to process digital data?
    (I must treat these unique bits in several screws, for example,)
    security door bit, stop bit of emergency, must be treated as higher priority than screw
    input 1, selector, etc.).

    Or you have any suggestions, what type of data I should use. I have a
    global impression screw actually write these digital data in a file, then
    These files are passed around?

    3. is there a mechanism that pass around data in memory, NOT in the files?

    By far, the way the more effiecient to pass data autour is a thread.  If you are really worried about memory, then you must avoid the connection of the wire that he holds the large amount of data.  This could mean making your processes in series (one at a time) passing the data of one Subvi to another via the controls and indicators and the connector pane.

  • Pass data to SessionIO - ReadXDS, WriteXDS - 10.2 XDS

    Hello

    We try to pass data to the OPA by using the XDS file. Basically, we have developed a dynamic UI .NET MVC application that uses a modules developed in the OPA.
    Some of the responses to the interview come from the sqlserver database and should be sent to the OPA and the questions corresponding to the answers provided has not must be requested during the interview.

    Currently, send us the data to the OPA by identifying screens with a hard coded comparison "title screen" fine interview and pre-fill data based on .NET application. But, it is not flexible and we do a lot of coding to do this.

    We try to transmit data instead of using file XDS. That we used 10.1 ReadXDS and WriteXDS to achieve this. We had problems with the controls of the entity-containment ({"entity Instance is no model: employer [global0]"}) and we hoped that it resolves to 10.2.

    Checking the dll Oracle.Determinations.Util.xds 10.2, it seems that ReadXDS is removed from the SessionIO. And we do not know why they were removed, and what other alternatives we must spend data if XDS files.

    Thanks in advance for your help,

    Kind regards
    Yonas

    Published by: user13358619 on February 11, 2011 09:25

    Hi John,.

    There are a couple things to note on this topic. First of all, Oracle.Determinations.Util is undocumented because it is not considered by us to form part of the public API of the determinations engine. Therefore, we don't feel any obligation to maintain backward compatible and can choose to rename, delete or modify anything in this package at our discretion, what happened to the point 10.2.

    Second, as is clear, when the engine Interview using third parties are not allowed to directly change the Session State of engine determinations - instead they must provide the methods provided by the object Session Interview himself. The SessionIO done exactly that by loading the XDS file content directly into the Session of engine of determinations. Is not only to cause problems with the instance of the entity as you describe but will cause all data that you have mapped this way be lost in the event that a transaction must be fully restored in the Interview Session at any point during the investigation (for example, an error event is triggered).

    The engine of the Interview to load data via an XDS file by using the XDSDataAdaptor class, which can help you along the way. I don't know how you came up with the current solution, because it relies on the undocumented API. However, if it was based on the advice you have received from us, I apologies for the misinformation.

    Thank you
    Kristy

  • The best way to pass data when browsing

    By taking the case where an action method is called and he chooses navigate to another page.

    What is the best way to pass data from bean of old media to the new (probably in the execution of the action method)? I am currently using beans of spring session scope as the support of beans.

    Take a look at:

    It goes between your commandLink or commandButton control:



  • Pass data from one XML object to an itemRenderer

    I'm trying to color the background of a column in a datagrid, and we found a sample file that illustrate the concept. However, the sample has data stored in an arrayCollection collection, while mine is in an XML object. The problem is that the data from the sample file apparently automatically passed to the itemRenderer (below: notice the trace statement). My XML object does not automatically pass to the itemRenderer data. So my questions are:

    1. is there a simple way to pass data stored in an XML object to an itemRenderer

    or

    2 should I convert my XML an arrayCollection collection? If Yes, what is the best way to do it - I tried the following, but without success:

    < mx: Model id = source = "example3.xml" / "xmldata" >
    < mx:ArrayCollection id = "myAC" source = "{ArrayUtil.toArray (xmldata. Example1)}"/ >

    Here is what the XML looks like:

    < TABLE >
    example < 1 >
    < Difficulty > 0,5 < / difficulty >
    < discrimination > 0.7 < / discrimination >
    < item 3 > < / point >
    < / example1 >
    < /table >

    Here is the itemRenderer:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Label ' http://www.Adobe.com/2006/MXML ">

    <!--
    This element converter simply extends label and overrides the updateDisplayList function
    draw a filled rectangle of gradient. The colors of the gradient are determined from the
    data.
    ->
    < mx:Script >
    <! [CDATA]

    to import flash.geom.Matrix;
    import flash.display.GradientType;
    import flash.display.Graphics;

    override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function
    {
    super.updateDisplayList (unscaledWidth, unscaledHeight);

    var m:Matrix new matrix());
    m.createGradientBox (unscaledWidth, unscaledHeight);

    var Graphics = g:Graphics;
    trace("Data.COL3="+Data.col3)
    var colors: Array = (data.col3 < 2000? ([0x0000CC, 0x0000FF]: [0x00CC00, 0x00FF00]);

    g.Clear ();
    g.beginGradientFill (GradientType.LINEAR, colors, [0.2,0.6], [0,255], m);

    the rectangle is drawn a little high and a bit large to compensate for the gap
    the DataGrid control is introduced between the rows.
    g.drawRect (0, -2, unscaledWidth, unscaledHeight + 4);
    g.endFill ();
    }
    []] >
    < / mx:Script >
    < / mx:Label >

    This code example should answer your question of how to import data in the renderer automatically. It is through the dataProvider of the DataGrid and then refer to it in the renderer in the form of data. XYZ, where XYZ is the field in the XML file with the data. See FB 3 help sys on the e4x syntax.

    -mainapp.mxml-

    
    
      
        
      
      
      
        
          
          
          
        
      
    
    

    -MyLabel.mxml-

    
    
      
        
      
    
    

    -data2.xml-

    
    
           0.5 
           0.7 
           3 
       
  • Import data from another browser - only a few favorite IE9 are transferred in bookmarks. Solution HTML - HTML file all Favorites OK, but same result

    Win7 / IE9: use for the first time. Example: A folder of Favorites has 4 entries HTML - only 2 transferred. Some have none transferred - empty folder. Others have correct random + some disappeared persons.

    All of Monday
    I can see the full list of favorite IE9 HTML in HTML file on desktop with Firefox-> new tab-> open file-> open
    .
    In the desktop HTML file, there are 37 files IE9 with no more nesting 3 deep in all of a high. They are all correct wrt favorite IE9.

    All records albums + deeper nests are copied in FF ok. Random content. Copied content works ok

    7 unassigned to IE9 HTML web sites best records are also copied <-these 7 copy on FF and work well

    Example: First file in the list of IE9 has no nesting., IE9 has 4 entries - Firefox has only 2. What other method of reproduction is used.

    BTW - please let know us how I can delete entire list of bookmarks in Firefox button to try again with a clean list of bookmarks

    I'll uninstall Firefox and start over with a clean copy and use the HTML only method to try to transfer IE (files. I'll bring result.

    BTW, I'm in the United Kingdom at the time of UK - where delays to answer - need to sleep sometime!

    Tuesday night

    Hello

    I uninstalled Firefox. Re installed and loaded with favorite IE9 to HTML file.

    All seem to be copied correctly

    First time that I started using the "import data from another browser. Partial is copied.
    Then I tried 'Import HTML file' without deleting any favorite had been copied. Always partial copied.

    Everything seems fine.

Maybe you are looking for

  • Message violates guidelines send IPv6 on PTR 550 5.7.1 documents and authentication

    I use OS X Server (El Capitan) as my personal mail server. Everything is set up correctly. Mail works fine for everything except google gmail. This has happened for 2-3 years... whenever I have send emails to users of Gmail, I get "reviewed mail retu

  • Hello, I don't do small mistake now laptop no sound how can I get my audio back.hpg81

    Mr President. I made a mistake and my uninstall audio from the laptop and I search the net, I got a part but not audio and all my real player, Skype and moe software plays not what can I do now please help me soon

  • Tecra M11: How is 1080i/p of DisplayPort?

    I hung my Tecra M11 via one-adapter mini DisplayPort to HDMI on my TV, but it seems that the best he can do is 800 x 600! (WIndows XP) How can I get 1920 x 1080 on this laptop? Remove drivers Intel?Add new drivers Intel?Patch from Microsoft? Is it po

  • Windows 7 on Hp pavilion 2301sq g6

    Hi, where can I find the drivers for windows 7 for hp pavilion 2301sq, because I want to delete win 8 from my laptop and install windows 7, but I can't find a driver for this operation sistem.

  • Compaq dc7800 CMT: PCI and PCIe versions

    Hello everyone, I want to install in my pc (Compaq dc7800 CMT) into the slot one SATA controller card PCI or PCI Express.So I would need some information: What version are PCI slots (for example 1, 2.2, 3,...) and the pci express x 1 slots (for examp