Easiest way to pass data to/from subpanel?

I am new to subpanels and am kind of overwhelmed by the various responses I've read on the forums about this issue.  Some people use named references, others user events, others queues...and right now I guess I've yet to see an example that was really clear for me to understand.
In my case I have lots of different controls and indicators within my subpanel.  Two main things I need to do:
1. I need to pass the VI that gets loaded into the subpanel a single string and a single numeric
2. When there is an event on the subpanel (either a value change event for any control, or a mouse up event), I need to pass out a reference to the control that caused the event.  The top-level VI will then process the top level event.
So that's it....2 inputs (1 string, 1 numeric), 1 output (a ctrl ref).  Both inputs will be changing regularly as data from a telnet connection is read, and the output is driven entirely by user interaction with the subpanel (i.e. it's independent of the inputs).
What's the easiest way to do this?
thanks

bmishoe wrote:
I was thinking about it some more...the ctrl reference that I said I wanted to pass out - it could just as easily be a string.  The label of the control has indices as part of it's name that I use to index an array to extract a string.  There's no reason I couldn't do that within the subpanel and simply pass out the string itself.
So to modify my question slightly - the VI loaded into the subpanel takes in a string and a numeric and outputs a string, and I want the top level VI to execute an event structure each time the output string changes.
thanks...
If that's how you want to handle it, you should have 3 inputs, String, Value and User event, and inside the VI you check if the string has changed, in which case you generate an event. The Main VI will subscribe to the event and execute it.
The event has ofcourse string data so you'll send the data up to Main vi.
Easier would ofcourse to simply have the string output from the subvi and update the main vi's indicator each time.
Whether you show it in a subpanel or as a popup vi is just a visual thing, the VI should work the same.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • Easiest way to save data (itunes, pics) from my imac.

    What is the easiest way to save data from my imac to turn around and put it on a macbook. I don't yet have the laptop.

    Get yourself an external firewire+USB drive, and either use  SuperDuper!    to clone your data to the external, or drag and drop what you want onto the external.  Remember to format it as Mac OS Extended (journaled) and partition it as GUID.

  • What is the easiest way to access the router from an iPad?  I have no problems accessing it from my laptop.  Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www beginning of

    What is the easiest way to access the router from an iPad?  I have no problems accessing it from my laptop.  Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www to the beginning of the IP address.
    I usually can eventually access the router, but it is way to much trouble.  However, I use my iPad hundreds of times more often than my laptop.

    Are you typing http:// in front of the IP address of the router? e.g. http://192.168.0.1
    Sometimes, and with some routers it doesn't seem to like it if you miss off the http://

  • Best way to pass data sets to another program

    Hey
    I want to connect another (maths) program with my java application. Therefore I need to paste data (some kind of tab separated table) to this program.
    I try now to save these data in a separate newly generated file and to pass a command with Java's Runtime.exec() method to this program to read these data. Is this a good idea or might there be better ways?
    If I do so, is there a way in Java to generate some kind of a "temporary" file which will be deleted automatically after usage or is this nothing else than to save it in a common file and delete it afterwards. What's the best way to pass data generally?

    Well, the connection will not be over a network, so I'd rather think it's not a Socket or RMI problem (unless someone convinces me).
    Yes it's very external, it's a C or C++ written program, I don't have any source codes. So far I generated a file for Input command and data, I passed that on to the maths program and returned the output into another file.
    Now I would like to separate the output and like to obtain some tables and graphical things like charts at the output. Do I have to generate three different types of outputfiles? How to store some graphics e.g. some distributions. I thought even of generating a database. I never thought about XML, I don't know if this works for that kind of problem?!

  • What is the easiest way to copy individual photos from a pc to ipad?

    what is the easiest way to copy individual photos from a pc to ipadair 2?  I have been told that transferring via itunes creates one mass file from which individual photos cannot be manipulated.

    Photos synced from iTunes cannot be deleted one at a time if that's what you mean. They can be manipulated, if manipulated means editing or moving them into folders that you create on the iPad in the photos app.
    I agree with Procyon256 that emailing is probably the easiest way for one at a time, but there are also WiFi transfer apps that are pretty nice for this purpose, I use this one.
    http://www.wirelesstransferapp.com/

  • What is the easiest way to get scanned photos from MP Navigator to iPhoto?  I thought last time I did this I could highlight and drag into iPhoto?

    What is the easiest way to get scanned photos from MP Navigator into IPhoto?  I cannot highlight and drag/drop.

    Contact the manufacturer (Canon?). 

  • Easiest way to extract data from dead Macbook Pro?

    I figured if anyone could help, it would be you guys. I would imagine a large majority of you are more computer savvy than anyone I know. My MBP crashed almost a year ago, I opened it one morning to find it wouldn't turn on. It doesn't properly boot, it just sounds different. The screen stays black and the light on the front isn't the same, I think it kind of goes in and out.
    Anyway, unfortunately I've given up on getting the Mac back, but I really need the stuff that was on it. I heard I could put this hard drive in a new MBP when I get one, but that probably won't be anytime soon. What would the cheapest and/or easiest way to retrieve my data? I was hoping a friend could somehow open its files and put it on an xhd? Something tells me it's not that easy though. Any tips or advice would be greatly appreciated

    shldr2thewheel: Right on. It's good to know there are options. However, if it comes down to something like that, I'll just have to wait until I make a lot more than what I make now. I could care less about most of the stuff, I just want all of the videos I've taken on Photo Booth. My best friend died last year and it has some of the best times of my life on there.
    Shootist007: I'm at work now and it's been over 6 months since I've even tried to turn it on. From what I remember, the boot noise doesn't go 'up' like normal. It used to make two noises really fast, the latter being higher. I'm sure there's a much better way to describe it but I sure can't think of it. The system does come to life, but it doesn't do anything. The fans turn on, the LED light slowly flashes, but the screen does nothing. I also seem to remember the sound of it being on being a lot quieter, like it wasn't actually on. I'm sorry if this isn't enough to work with.

  • Whats the easiest way to get data from R/3 from XI

    Hi there
    I would like to know if there is a way to to access a database table in the R/3 system in a user defined function in Message Mapping? I have to map some fields where I have to get data from a table. What would be the easiest way?
    Thanks,
    Jan

    This article provides details on the usage of Generic Lookup API used for calling RFC from user defined functions.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    RFC Lookup.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439

  • What's the easiest way to transfer data from an old external disk to a new one?

    Hello!
    My external hard drive (SimpleTech 250GB) is almost full so I bought a LaCie P'9230 3TB hard drive to take the place of the old one. What is the easiest way to transfer the data from the old one to the new one? Also, any tips on how to format the new drive will be appreciated since I haven't done this in a while.
    Thank VERY much!!!
    tenntooter

    Hello rkaufmann87 and Linc,
    Thank you both for your responses. It ended up that it was REALLY easy to set up and use the LaCie drive. The drive came with very simple instructions and a very easy to use setup assistant. Setup took about 2 minutes without ever leaving the assistant to get into Disk Utility, etc. Once the drive was setup I simply dragged the older external drive on top of the LaCie drive and the LaCie copied the data in about a minute.
    After backing up the old drive I set Time Machine to use the new LaCie drive and selected the encryption option. It took the LaCie drive about an hour to totally back up my iMac's hard drive and to encrypt it as well.
    VERY IMPRESSED with LaCie for sure!!! (As well as continuing to be VERY IMPRESSED with my MAC!!!)
    Thanks again!
    tenntooter

  • What is the easiest way to burn data from a ext HD to an ext DVD drive?

    I have a Maxtor Touch III with 2 partitions on it. I want to wipe the 2nd partition clean but it has data on it. I just bought a Plextor External DVD-DL drive. So what would be the easiest way to burn the discs? There is about 40Gb worth of data to burn and I have all kinds of backup utilities, (Retrospect Express, Intego's backup, etc....I will admit I am not well versed at using Retrospect, in fact the only way I know how to backup is by doing a Duplicate Backup. So what do you think?

    I personally use Roxio's Toast 7 for all my burning needs, and it's the finest so far (also used DiscBlaze in the past). Click the "DATA" tab, and add whatever files you want to burn, that's it.
    You mentioned you just bought a Plextor external DVD drive, is it the Plextor 716UF (USB/Firewire)? That's the same one i have and it's fantastic.

  • Best way to store data obtained from a resultset !?

    Hi all,
    I am working on a verification process that is to be run on our DB upon every external db extraction prior to merge into our DB (which is being done manually now)
    What I have decided so far is to have a verifier interface that is implemented by a bunch of *Verifier classes.
    Then depending on the level of verification, a subset of these verifiers would run and populate a generic result object (per verifier) with the query results and whether the verifier passed or not.
    I was thinking of having the Result class employ a JTable to store the query result (from a resultset), but I can't seem to find a way to retrieve the data from the Jtable row by row (I'd like to obtain the result from the JTable row by row as it would be easy to format) or the entire table to display for that matter.
    Please advise if you think this is a good approach? and if JTable's a good idea!? if yes, how should i use it? otherwise, what would you suggest?
    Thanks a lot,
    Cheers,
    parachuter2b

    BigDaddyLoveHandles wrote:
    There's no need for a "table". Use a List<YourBusinessClass>. If you don't know collections take the tutorial:
    |http://java.sun.com/docs/books/tutorial/collections/index.html]Thanks, that's what I sort of did:
    I figured how to use the ResultSetMetaData to get the column names and therefore generate a report from any query by having its resultset.
    so created a Result class, which holds the resultset of the query, plus a boolean that indicates whether the verification passed or not.
    Now what I have problem with is formatting the resultset and displaying it nicely in a report. The problem is that the length of the values in the resultset are variable and using constant indentation doesn't work. What's the easiest way to get around this apart from going through the resultset once before displaying the report to calculate the indentations for every single item?
    Thanks,
    parachuter2b

  • Is there a way to pass data between 2 seperate programs?

    I realize you can pass values to a program on boot but is there a way to pass information to a program after it's loaded? I want to make it so two seperate programs running on the same PC could exchange data back and forth. Where one program can call a program with options on boot but then that program can pass information back to the one that called it. I can also save it to a text file and constantly check if it changed but I don't think this would be practical. I can set up like a client/server but without networking services needed I think this would be a waste. Is there a better way or do you think the client/server is the best option?

    I realize you can pass values to a program on boot but
    is there a way to pass information to a program after
    it's loaded? I want to make it so two seperate
    programs running on the same PC could exchange data
    back and forth. Yes that's possible but not very straightforward and it differs from platform to platform. Anonomous pipes seems to be available everywhere but I don't think they are the most efficient

  • What is the fastest way to pass data between parallel threads?

    I have a top level vi running with 6 parallel threads. I need to pass some data from digital I/O to several of the threads. What is the fastest responding way to do this. I am controlling a machine that has quite a few sensed events happening at very close intervals, some as close together as 1 to 2 milliseconds, and I seem to be randomly missing the signal from these sensors. How can I distribute the I/O to the different threads and not miss any inputs?

    I usually use a Queue to pass data from one loop to another. Other
    choices are Functional Globals or Notifiers. It kind of depends on what
    you need to do as to which one is best, so it's a bit hard to recommend
    one over the others without knowing more about your application.
    Both Queues and the Functional Globals (if written correctly) can
    buffer data so you're less likely to lose data if one loop gets behind
    the others.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Easiest way of transfering data among 2 databases

    Hello Guys,
    I just want to know the easiest and reliable way to shif data from a database to another database running on a different machine.
    Database (Machine A) TO Database (Machine B)
    Where Machine B already contains some of the data of Machine A but not all.
    Regards,
    Imran Baig

    If you can overwrite your data without causing a problem, 2 ways are available. You can use transportable tablespaces or do a sqlplus copy between the tables. It depends on how much data you are talking about.
    You don't mention the version of oracle you are using, but data dump is also an option.

  • Passing date parameter from prompt

    Hi experts
    I am getting some problem while passing date from a dashboard prompt.
    In RPD i have changed the date column properties as DATE only so that i will get the DATE part of the data not the time stamp.
    Now in the dashboard prompt i added a prompt for the date column.
    I initialized the date prompt with a server variable of sysdate
    when i am running the dashboard i am getting default value in the prompt(04/15/2011)
    when i am changing the date it is selected as(04/15/2011)
    but when i am clicking the 'Go' button the date is converting to 2011-04-15 00:00:00 due to which my report is not running and i am getting error as
    View Display Error
    A date value was expected (received "2011-04-15 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    can anyone help me to pass only date part
    thanks in advance
    regards
    Gourisankar

    Hi J / Srikanth
    Sorry to restart the thread again.
    As we discussed i have downloaded the patch and applied to my windows 32 bit machine.
    But now when i run the report the report is running only for the default value(Server Variable) which is specified to the prompt. when i change the date there is no effect to the report.
    When i drill down to the report i found that the date column(is prompted) is changed to teh server variable name which is might be the cause.
    any input on this???
    regards
    Gourisankar

Maybe you are looking for