Sharing data between multiple while loops, competitor rates

Hello

I am trying to Exchange data between competitor while loops running at different speeds.  What is the recommended way to do this?    In practice, I have 12 indicators and 3 cards I would update (on screen) in the slower loop, although the data acquired and stored on disk in the fastest loop.  The image below is a simplified version of what really works my candidacy.

I currently use local variables and shared to achieve this.  I heard however that local variables are evil because of their use of memory (data are copied instead of who passed by reference).

Thanks for your suggestions,

Adam

Hi Adam,.

Yes, here you go.

Mike

Tags: NI Software

Similar Questions

  • How to make the exchange of data between 2 whole loop real-time

    Hello
    I have 2 while loop
    the 1st loop includes data acquisition program
    the 2nd loop includes control program
    --------------------------------------------------------------------------------------------------------------
    My question is how do the exchange of data between 2 whole loop real-time

    --------------------------------------------------------------------------------------------------------------
    I tried with the variable and direct wiring between the 2 local while loop
    It does not work (there is a delay)


  • storage of the data output of while loop

    Hello

    I have a data acquisition system set up to read the couple of a transducer. The output needs to be fed with an excel document, once the program stops running, or when a key is pressed.

    with the current code attached, the excel document is created, but it only shows the most recent series of data. How to make the table to store all the data coming from while loop?

    Ive only been programming with labview for two weeks, so chances are that it is something simple, but please help us in any case.

    JM

    To get what you expect, the Terminal output of table a while loop right click and select the option activate Indexing. Usually if you want to save data use queue to pass data inside the while loop to another loop/VI and perform data recording. For all that you have examples, please do a searc in LabVIEW help > find examples.

  • Stop the multiple while loops in the acquisition of Vision

    Hi, I want to close multiple while loops with a STOP. I use the software for the Acquisition of the Vision for the recording of multiple cameras and I would like to finish this record from all cameras simultaneously. I don't know how to do this since I am knew to LABView. I would add my VI here and maybe someone can help me.  Thank you!

    A local variable should be sufficient for your application. Read the following article:

    Parallel stop, while loops in LabVIEW with a stop switch

  • Sharing data between views

    Hello

    I have a simple display object that I use to connect, he questions just the user name and password in the users table.

    I have an another display object that uses a query much more complex that retrieves detailed information about this user in different tables.

    I have a simple taskflow, a view of the opening of session and a current view, if you log in successfully, you go to the main page.



    Now if I use the first view (simple) object to display the username etc then it correctly displays the name of the user who is logged.

    If use the other more complicated view opposing it just show the first returned row.

    In short, my question is this, if I connect with the object from a point of view, how can I tell the view which line to select another object? I.e. the details of the logged-on user?

    I tried to create a link between the objects in view, but which only sort of worked. After that I logged it didn't show the correct line, but after I went to another page that uses the original view object, then he did display the line concerned.

    I bet that it would make no sense, but I don't know how else to explain it.

    I connect with the view object X.
    View object there may not know what line in X, I'm interested.
    If I connect X to Y then I have to go to another page in the application X is used in front go understand what line X is on.

    Help, please!

    Looks like your 'Complex' view must have a binding parameter to filter the query of a specific user and your speed of connection must pass this id on the container page.
    Discover models of sharing data between regions here:
    http://www.Oracle.com/technetwork/TestContent/adfregioninteraction-155145.html

  • How to control the rate of acquiring data in a while loop

    I'm trying to use a digital trigger to collect data on the rising and falling edge. The design is displayed as below. Now, I save the measured voltage 1 & 2 to the local variable in the while loop. Hoever, the while loop runs at a frequency of more compared to the structure of the case triggered. So I had a lot of repetitive data.  If I record data directly from structure of the case, it will be recorded as data-0-date-0 because of the ongoing case of fake wire.

    I wonder how to revise to save the measured voltage 1 & 2 at the same frequency of up/down edge triggered? Thank you! I have also attached my current version of Labview program, which takes place in time real Labview 2013.

    Mcdullna wrote:

    Thank you for the answer. Could you be more specific about the use of the shift register?

    The case of false just past the value through.  With this configuration, you agree that the data remain in the son, avoiding race conditions.  It is also more effective than the use of local variables.

  • HAVE multiple AO-synchronization-2 multiple while loops

    Hi all

    I want to characterize my RF circuit by using an additional narcotics control and map PXI-6229. I wrote a simple VI in Labview, which is almost similar to the example, multiple-HAVE-AO-synchronization, seen in LABVIEW. According to my VI, 4 analog outputs with different offsets dc, amplitudes and phase values must be generated to my RF circuit and 2 analog inputs must be acquired by this circuit simultaneously and continuously. But the problem with my VI is that I try to observe two diagrams at the same time to see the changes in signals generated and acquired. However, I don't see the two signals simultaneously. The second while loop, which belongs to the acquisition of analog signals, does not start while the first loop generates analog signals continuously. How can I synchronize these two while loops in order to observe the two parties in the diagrams?

    I have attached my VI.

    Thanks in advance.

    T. Eray

    Hi Eray,

    I will be brief and I'll keep it simple. If I understand correctly, you have trouble with the data stream in LabVIEW. When you work in LabVIEW, you must understand the order in which the blocks (functions/nodes/structers) are run in LabVIEW - stream. Each block can be executed just at the moment where there values on each entry. This means that if the 2 blocks are connected with a wire, the 2nd block waits until the first ends its execution.

    In your case, that means, this 2nd loop does not execute before the first loop (with the DAQ Assistant) ends its execution, because the son comes from the inside of the first loop, then they go to some DAQmx features and then DAQmx features they go to the 2nd loop.

    In principle, what you could do is to put the content of the first loop, where you prepare the signal generated in the 2nd loop. Good course without the DAQ Assistant. Instead, you can use DAQmx writing in the 2nd loop.

    Kind regards

    Martin

  • Best approach to serve the same data between multiple users of the POJO DC

    Hello

    It is a question related to what is the best possible approach for this scenario.

    A POJO domain controller that retrieves a collection (of about 200 folders). The application displays the same records for all users of the application. The collection should be updated from time to time when there are new items and it must be visible to all users in DB.

    Currently, for each user that connects to the DC POJO application runs the query and deliver results. This works well when amount just a few users, but when multiple users want to access the app becomes very expensive.

    I think to build a programatically EO - VO, and then display it in a SharedApplicationModule where through the Cache of BC, I'll save and share data between users. I need to mark make a poll and update the collection when new results come thru.

    Is this a good approach? What are your thoughts or how would be better applied?

    Thank you very much.

    JDeveloper 12.c

    Hello

    Why do you use a POJO DC at all when the solution is to use a shared Module of Application ADF BC?  Sample 156 will become your friend:

    https://blogs.Oracle.com/smuenchadf/resource/examples#156

    Frank

  • Synchronization of multiple While loops

    Hi all

    I work with 4 all in curls that are independent from each other that is, there is no data flow in one loop at the other.

    I noticed that every while loop takes different time to iterate.

    However, I want to while loops to begin and end at the same time after each iteration.

    How can I synchronize their?

    Thank you for your response.

    Concerning

    Aveo

    Hi Aveo,

    You can use a few 'occurrences', 'Notifier', or "Rendesvouz" to synchronize your loops.

    Or use timed while loops - they can work in harmony...

  • start stop multiple while loops

    I have a fairly large VI that works while several loops with the strutures case inside.

    I would like to be able to close and on all looped programmatically according to events. (complete cycle or cycle started)

    I need to store my data in a table, but whenever I turned off the while loop data I gathered is lost.

    It goes like this-measure analog voltage - put it in a digital indicator... now I want to put it in a table only once by my machine cycle.

    If the opeator push the reset button, the table is available for acquisition of report generation.

    Any help would be appreciated.

    Thank you

    It's here.

  • Warehouses of shared data between clusters?

    I currently have two clusters, the original node 6 cluster (processor E6540) with 15 - 2 TB data warehouses and a node 3 new cluster (E5-2670v3 processors).

    I have the same joint 15 - 2 TB storage of data to the new cluster and part of the load has migrated to the new cluster.

    Should there be a problem with the warehouses of data between sharing groups?

    All hosts run ESXi 5.5 U2 version 2718055?

    Hi theire,.

    I have same configuration with several groups I create Clusters by the Architecture of the processor. Westmere, Ivy, Sandy, Haswell.  I do not use CVS.

    HM don't feel now a type of problem. 1 point is theire is additional pulse through the cluster storage. But on the opposite side theire is more less overhead for HA master/slave by cluster.

    For return optimize, perhaps take a look if you have the last Firmware supported on storage boxes. Check if theire supports Alua/RR and you use a TTY/SCSI reservation instead of nativ PROPERTY SCSI. If you fully support ATS, you could spend for nativ ATS only.

    Best regards

    Max

  • Select Max (date) between multiple tables

    I need to retrieve a record from a Table in a set of similar tables with a common "date field". You can select the record where this "date field" value is greater between multiple tables.

    Here, any help is appreciated.  Thank you in advance.

    FOR EXAMPLE

    No. EMP is the primary key.

    Again, each table can have multiple records for EMP n ° 1

    TABLE1:

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    BASE SALARY

    DATE_FROM

    TABLE 2

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    SALARY GRADE

    DATE_FROM

    TABLE 3

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    COMPENSATION

    DATE_FROM

    Hello

    Said Knani, if you use the current design of the table, then here is a way to do what you want:

    WITH union_data AS

    (

    SELECT MAX (base_salary) AS sal FROM table1 UNION ALL

    SELECT MAX (grade_salary) table2 UNION ALL

    SELECT MAX (compensation) FROM table3

    )

    SELECT MAX (sal) AS max_sal

    Of union_data

    ;

  • Sharing data between the host computer stores in different groups.

    I read in several places that sharing of data warehouses between the host in different groups is possible, but I don't get the warm and fuzzies when the hosts are different versions.

    vCenter is 4.1

    Group Alpha is 4.0 vmfs 3.33

    Bravo of cluster is 4.1 vmfs 3.46

    My goal is to move the virtual machines that meet the specific criteria of group Alpha for Cluster Bravo then the availability of flowing freely between clusters.

    The only concern I have is when adding Cluster Bravo to the same host of 3PAR alpha value of Cluster sharing all the data store, Cluster Bravo will try to reformat to vmfs 3.46 break Cluster Alpha to see the virtual machines stored in the warehouses of shared data?  I don't want to present the old warehouses of data to the new cluster only break from old cluster.

    Hello vmsjsn

    ESX/ESXi 4.X supports all versions of VMFS file system.

    Using your example of Alpha and Bravo. Kudos to will write more Alpha. you will be able to cross all hosts on the shared storage.

  • A result of sending the data to a while loop through another loop of TCP communication

    Hi all

    I have 2 screws

    1 matching model (using the method of Grab) which is put inside a while loop. This VI works correctly and returns a string in a specific format (position and the angle of the object).

    2 TCP server who always listens to a specific port, if it receives a correct command string, it sends the string above VI - 1 (position and angle).

    The two 2 screws works if they are in separate VI. But I want to combine them into 1 single VI and I get the problem: Pattern matching doesn't work anymore (the video has only first frame then stops).

    I tried to put the two while loop in parallel or put the TCP while loop inside while loop Pattern Matching. Nothing has worked.

    Pls see my attached VI and the TCP module.

    What is the solution for requirement?

    Thank you all!

    What I would do, is be your two screws at the same time.  Given that you do not send the last result, store the result in a global variable.  Your comparison models written VI the global variable of the results of each iteration of the loop and the TCP bed module global variable results when it receives the right to order and then send it.

  • Judgment of multiple while loop running at different rates to stop using the single Boolean stop button

    Hello

    I'm on the block diagram of 4 loops, do different tasks. They are independent of each other, but need to see the unique front panel - some of the wonders of labview!

    Now, I want to have a unique stop button which will in fact be a back button to return to the main screen by stopping all four loops on the block diagram. I used the stop button (switch released) with local variable to stop the three other loops. He stops the vi but it is not a good stop vi to stop properly and the grid on the performance of the front panel. Now all loops run also at different rates, so it is not necessary that all loops are stopped immediately when one of the loop is stopped. Can't really think of a better way. All the ideas!

    Kind regards

    Austin

    Variables local is ok in this case, but you will need to keep the control in switching mode (no lock).

    A better solution would be to have all the loops as a structure of event all listening value stop change. Or have the Stop value change event generate a user defined output event or similar.

    /Y

Maybe you are looking for