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.

Tags: NI Software

Similar Questions

  • 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.

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • Pass data between applications value reference

    The issue is that data application reference value is local to the application instance, or can be transferred between different applications.

    I have a main application that acquires the table of 100 MB and I need to use these data in a dll. Obviously, I don't want to send table, reference would be better. Both applications are generated in labview 2011.

    The second question is whether reference data value can be converted to a string (type cast or flatten to a string) and back. For example with DAQmx tasks flatten to a string does not work.

    Alexander_Sobolev wrote:

    It's value application data reference is local to the application instance.

    Yes.

    or may be transferred between applications.

    Laughing out loud

    The second question is whether reference data value can be converted to a string (type cast or flatten to a string) and back.

    Yes, but only means something in the app instance appeared to reference.

    You will want to perhaps give more details on what are your real needs, but keep in mind that play with memory directly in LV is not so simple, as he does all he can to hide these details you.

    If you pass a pointer to an array to a DLL, you can configure the DLL for this call. If you want to get an accurate picture of LV in memory address and passing around, this isn't something LV supports and you shouldn't do that because the memory should not be controlled by more than one master at any time in time.

    LV has functions of memory allocation and to get the pointer back, but requiring explicit calls.

    Anyway, I have no real experience with this. If you want to read materials, there are at least two users here with much more knowledge on the subject and you can go through their messages or search and filter for their post - rolfk and nathand.

  • How can I pass data between DIAdem and LabVIEW?

    Hello community,

    in fact I use a LabVIEW application to control a test system, collect data and store it in a file.

    DIAdem is executed (using ITOCommand) and then create a report (PDF).

    This works already.

    But also, I would like to receive a return value of tiara, a real number, as for example the register R1.

    No idea how can be achieved?

    Thank you!

    Espelkamper

    Declare records, variables in the script of tiara that store the calculated result. Read records in labview

  • Passing data between the component main enforcement through custom methods and custom

    Similar to what this article is talking about, I have a custom list that contains a list of names of State of the United States in chains. (Let's call this states.mxml) #comments http://www.boyzoid.com/blog/index.cfm/2006/11/22/Flex-Custom-Components-and-Custom-Methods

    I create an action script that is included in my states.mxml like < mx:Script source = "myScripts.as" / > so that I can call the method in mySpcripts.as

    Now, what I want to do is, whenever I click on an item in the list, I want this string is displayed on the Application of the hand (on a canvas or Panel) as a label.

    I don't know how I am supposed to refer to the canvas and wood, which lies on the main of the application of myScripts.as
    Is there a way to create an action script file where methods can reference components for the main application and the custom component file?

    Thank you

    this.parentApplication.canvas.label should do what you are looking for

  • Help on the passage of data between vi when built in exe

    Hello

    I have this problem and grateful if someone can give me a heads up the right direction.

    I'm trying to write a program for acquisition of data and control of two instruments simultaneously.

    An instruments is a rotating stage that I control the movement and data read using activex controls. I do this in a vi that I have two distinct time of lines, one for updating the Rotary floor continuous data and other while loop for the handles of event structure.

    The second instrument is a detector that follows the rotation of scene. For this, I have an another vi with two loops for example, for data acquisition hollow rs232 and another while the loop is to the structure of the event.

    I use globals to pass data between the vi and it works very well in a labview project environment. However when I Isaiah to compile these exe files. I can no longer spend data.

    Is there a programming method when you communicate with more than one instrument. What I want to ask is, say I have a function, oscilloscope etc engine generator How can I control them in windows separated (for example, separate programs) and pass data to the other?

    I would be grateful for any help.

    Hello

    Global variables are not accessible to separate executables because their areas of memory are not shared. This can be found in the following document: If I can use a Global Variable to share data between two executable LabVIEW? The only way to have it working would be to use a main VI that launches your two separate applications like subVIs. This would allow you to share a global variable between the two. Your other option would be to use the method described in the article, or to use shared Variables: How to communicate between several executable LabVIEW using shared Variables?

    -Zach

  • Transfers data between children ViewStack

    Hello

    What is considered best practice to pass data between ViewStack children.

    Thank you.

    Hi, M * A * S * H

    You will get a different answer from everyone who meets you. There are several definitions of 'best practice', and all depends on how you define your project, the third frame type you use, if any, and other factors.

    If you are just using the Flex framework, consider creating a singleton (in ActionScript) class to contain all your data. Then, each component can just bind to data in this singleton. The components write to data in the class, and then they have all updated at the same time. Do not worry if a child in the viewstack component is created, it will get some it is bound to data when it created.

  • Passage of data between functions

    Hello

    Is it possible to pass data between functions? What I try to do is the following:

    I have a private function called onBtnBook which will do what (component .mxml) page of my application will be sent to the user when the user clicks a button. I need to capture the page that the user performed before they have clicked on the button and you can do this by capturing the selectedIndex value in a variable of the ViewStack I use for Navigation and is in my main Application file.

    What I have to do then is when the user clicks the back button, it sends back to the page they were on. I have a second private function called onBtnBack to handle this. However, as I need to use the variable created in the onBtnBook (which contains the value of the selectedIndex of the page that the user did) in my onBtnBack function, to return the user to the correct page, I am short of problems with access to the data in this variable.

    Is there a way to access the data of the variable in the 1st onBtnBook of function and handling in the 2nd onBtnBack of function?

    Thank you

    You must make a public variable and it may be related.

    [Bindable]
    public var myLastIndex:int;

    private function onBtnBook (): void {}
    myLastIndex = viewstack.selectedIndex;

    }

    private function onBtnBack (): void {}
    viewstack.selectedIndex = myLastIndex;
    }

    or something in that sense

  • Problems with the transmission of data between the screws

    Hi all.

    I have a question where my program slows considerably during the race.

    The program is a producer-consumer, where I have the main consumer loops and loops producer for USE comms, measure the output power, input for measuring the power, thermal control, etc..

    Regarding the issue, the measures of output loop takes readings and transmits the data to a separate VI which remains running (measure of output processor). This VI summarizes and on average the data and also displays data for the operator to see details if necessary. The operator shows and hides the front panel of this VI with a button on the main program. This VI also returns the summary data to the main VI, where it is read by my loop of consumer.

    The main measures output VI loop takes about 200mS to run when the program is first started. Less than a minute, it is 400 MS, and it's all downhill from there.

    I've isolated the problem to the way I pass data back (I think). I couldn't find a way to pass the reference of the queue between two screws not connected by wires. I open a reference to the VI processor and use Ctrl Val.Set and Get to pass the data back. If I take the intersection of the Subvi data, there is no slowdown.

    My questions are:

    (1) why the data passing by invoking a node of the control on the target would cause the downturn?

    (2) how would I get/pass information of queue between the two screws are not connected?

    (3) Alternately, could I start the VI processor in my main program, run and pass data in and out of it? I want to keep it running, because it is also part of the user interface.

    I don't know that I have not explained this very clearly. I took some screenshots of my code, but don't see how to download here.

    Thanks in advance,

    Jim


  • Passing values between tabs, using a structure of housing.

    At the risk of exposing my ignorance, I have a problem of substance; How to pass values in a controlled tab structure of the case.

    I have a simple user interface that uses a control tab control container a structure of all cases wrapped in a while loop. I use

    LabVIEW 2012.

    The basic intent is to run VI in tab 1, whose results would be available for the VI tab 2 ect...

    (See the attached example; an experience I wish that changes to the controls to page 1 int & string will appear

    the indicators corresponding to page 2).

    I can "pass" the values of a case outside the case itself (through a tunnel of output) structure, but can't seem to do

    available for all other cases by a tunnel entrance.

    I tried to tunnel of the case in a registry to lag on the while loop, but am upset by retrieving that data again in another case.

    I tried to use local variables, but obviously do not understand the paradigm brought LabVIEW for variables. I can create a local

    variable but can't seem to 'plug in' to an indicator on the second page.

    First question: is a reasonable method for execution of the loop control program structure business controlled within a certain time tab?

    I chose it because I have literally dozens of parameters to define, validate and want to manage Visual space

    for the operator. For example, I would that this sequence:

    1. Question and list of facilities available on my PC
    2. Select a device to use, make sure it works properly
    3. Set the parameters for this particular device (30)
    4. run the device, collect data and save the results

    Second question: it is clear that I don't know how to use variables, and the examples I read involve transmission of data to parallel structures

    and not in a case. Is a local variable to a reasonable method of transmission of data between the "tabs"? I will gladly make

    accept the reprimand to 'RTFM' until 'FM' required is identified.

    Thank you in advance for your kind attention to my wisely first year survey

    Shift registers are simple to get data from.  Where is your problem with their use?  However, have you considered just using the terminals directly in the case of the Page 2?

    You must learn to use the Structure of the event.  You shouldn't care what tab you are on.  It's all in the same VI.  Therefore use a Structure unique event for all your control value changes.

  • How to pass data to LabVIEW teststand Hex

    Hello

    Is it possible to pass data Hex Teststand to a LabView VI.

    In the column 'Type' of the Module tab on the stage, I only have the options "ASCII" or "binary string".

    What I need to change my VI to take the hex data, or can I change the Type of TestStand so that I can enter the Hex data

    When I enter the Hex data directly in the VI, it works fine.

    Thank you

    Sound advice from Omar! If you decide to follow this method, here's a useful KB...

    How to convert between hexadecimal and ASCII in LabVIEW

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

  • 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

  • How to make a table with all dates between two dates

    Basically, I need a vi that returns an array with elements containing all individual dates between the two dates. I am trying to build one myself... but obviously if there is already a few vi do that I would use it instead. Anyway, any help is appreciated... I'll just be over here write it too hard to pass the time.

    Just an idea

    Output is the table of dates (like timestamps) between the timestamps 'Start' and 'end '.

    Marco

  • 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

Maybe you are looking for