How to show VI frontpanels within another VI frontpanel

Following problem:
I want to display and operate the frontpanel of abc.vi within a defined area
of the frontpanel of xyz.vi, without having to show two seperate and
independent VI panels.
Two possible ways:
1. Is there something like a frontpanel container, which I can insert into
xyz.vi and redirect the abc.vi panel (with input and output) to this
container ?
2. Can I create and add frontpanel objects programmatically in xyz.vi,
controlled by abc.vi (maybe with VI server etc. etc.)
I would be glad to hear from you
Oliver Friedrich
TZ Mikroelektronik

Nope, neither.
However, what you can do is make your sub-VI appear without title or scroll
bars and programmatically set the position of the sub-VI so that it appears
to be embedded in the correct region of the calling VI's panel. This
illusion will be quite convincing unless the user does something
inconsiderate like moving or rearranging the windows. The "embedded" sub-VI
window must be "modal" so it stays topmost, otherwise a click on the main VI
controls will cause the sub-VI to disappear. You can always periodically
check the window positions and correct the position of the sub-VI if the
caller has moved.
This is all theoretical; you may have problems keeping the top window
topmost. You can't have it open as a "dialog box" in the VI settings since
then you can't use the other VI while it's open. You can always keep making
the VI topmost by repeatedly calling the relevant function, but this will be
horrible- wasteful of CPU and will probably produce disconcerting flicker.
There is a package of Windows utilities- search NI for "lvwutil32.zip". This
has a function that does an OS call to make the window topmost, so the OS
keeps it there without you having to bodge it. Under 5.x I was never able to
get this to work although no error was generated- you may have more luck.
Alternatively, do you actually need to be able to scan a directory for many
arbitrary "plugins" and call a user defined one as you seem to imply? If
not, you can make a tab control in the area you want the VIs to appear and
copy all your front panels to different tabs. This assumes Labview6. You can
then select the required tab programmatically when that VI is called. If the
sub-VI is to work in parallel and you need display updates before it
returns, modify all the sub-VIs to check to see if they are being called
from the top level or not, and if not to get a reference to the top level
VI's panel and use VI Server to allow the sub-VIs to interact with the front
panel copy that is visible at the top level. If all your controls are
uniquely labelled you could even make a generic set of functions, the first
of which you run at the start of a sub-VI to check if it's top level and get
a reference to the top level caller if not, and the second to periodically
synchronise all the controls and indicators of the sub-VI with those of the
relevant part of the top level VI panel. This is a trivial task. To ensure
there is no duplication in control names, if you take this approach you'll
have to relabel all the controls and indicators of the subVIs to include the
VI name. So "directory" becomes "SubVI1.directory" for example. You can keep
the word "directory" on the front panel by hiding the label and showing the
caption- the invisible label names the control and is used internally, and
the visible caption is just for cosmetics and can read whatever you like.
Oliver Friedrich wrote in message
news:[email protected]...
> Following problem:
>
> I want to display and operate the frontpanel of abc.vi within a defined
area
> of the frontpanel of xyz.vi, without having to show two seperate and
> independent VI panels.
>
> Two possible ways:
>
> 1. Is there something like a frontpanel container, which I can insert into
> xyz.vi and redirect the abc.vi panel (with input and output) to this
> container ?
>
> 2. Can I create and add frontpanel objects programmatically in xyz.vi,
> controlled by abc.vi (maybe with VI server etc. etc.)
>
> I would be glad to hear from you
>
> Oliver Friedrich
>
> TZ Mikroelektronik
>
>

Similar Messages

  • How to load swf files within another SWF and still maintain actionscript

    Hi I was wondering how to embed an swf file inside another
    swf file, If i simply import it to the stage or the library it will
    become a symbol but the actionscript interactivity is lost, another
    question is can I have an actionscript 2 file play within an
    actionscript 3 file?
    The actionscript 2 code for embedding is something like this:
    don't mind the _mc titles
    this.cargame_mc.onRelease = function (){
    loadMovie ("Crusty Rusty's.swf", empty_mc)
    empty_mc._xscale=60;
    empty_mc._yscale=55;
    empty_mc._x=210;
    empty_mc._y=140;
    Please Help its for my uni portfolio, i want to use as2, but
    if i do i would lose the 3d possibility of as3, is there any way to
    export an as3 file and then embed in as2, using a program or
    anything? Thanks!I
    I would just like to say thanks in advance because everyone
    on here is so helpful!

    you can load an as2 file into an as3 file (using the loader
    class) and the actionscript will work in both.

  • How to call swf file within another swf file using xml

    hii,
    I am facing some problem to call a swf file via xml when this xml file loaded it calls another swf file which includes a new xml file. now if i call this nested swf calling without xml it works but in case case of xml it is not showing the result. i m confused. how to nested xml file calling done in as2/as3. i need some logics. thanks in advance

    This is the AS3 forum and your posting involves AS2 code.  You should repost in the AS2 forum...
    http://forums.adobe.com/community/flash/flash_actionscript
    Aside from that, your problem might lie in the following lines...
    _root.createEmptyMovieClip("sub_container1", 1);
    loadMovie(sub_SWFPath[1].attributes.url, "sub_container1");
    You create the new movieclip, sub_container1,  in the _root, but you do not assign the loadMovie to load into that same movieclip (unless you have a _lockroot = true assigned in your sub-swf).  In any case, you should repost in the AS2 forum to pursue resolution.

  • How to show image from within a symbol

    Howdy,
    EA, Win7
    I've imported an img on to my stage, converted it to a symbol (and unchecked autoplay).
    Then I deleted the img from the stage, the symbol w/img still remains in the Assets > Symbols section.
    What I want to do now is simply have the img (that's inside the symbol) appear when I click on a button/text.
    Is this possible? I've tried...
    sym.getSymbol("image").show();       where "image" is the name of the symbol
    but this doesn't work. What am I missing?
    Thanks for any help,
    R

    Thanks resdesign,
    Looked over the Edge API and it's kinda vague on how to interact with symbols. There's nothing that specifically says 'A symbol must have an instance on the main timelline in order to interact with it'. The API seems to make the assumption that that people automatically know that. Yet when I see something like the following from the Edge JSAPI...
    Access a symbol timeline from the main stage
    To access the timeline of a symbol from the main stage, use the following in your event:
    // Play the symbol timeline sym.getSymbol("symbolName").play();
    ...it makes me think that I can just call up the symbol on to the the main stage without having an instance of the symbol already on the stage/timeline.
    Would be curious to know where in the API it mentions that in order to interact with symbols they must have an instance on the main timeline/stage.
    Cheers,
    R

  • How to resize a JPanel within another JPanel

    I have a JApplet that contains contains a JPanel which has several other components on the JPanel.
    The JApplet is an image query front-end which can be used to find images based on a single geographic point, a geographic rectangle or a geographic point and a radius (in meters). I have a JComboBox that the user uses to select which type of query they would like to perform. To enter the query information, I have a separate JPanel that contains the query parameters.
    For the single geographic point, it is just a simple row with JLabels and JTextFields for the latitude and longitude.
    For the rectangle, it is essentially a 3x3 grid to handle the JLabels and JTextFileds for the latitude and longitude of the upper left and lower right corners.
    For the geographic point and radius, I reuse the JPanel for the single geographic point and add a new row for the radius.
    In my ChangeListener for the JComboBox, I first call parentPanel.remove (queryPanel) then call a method to create the specific queryPanel and call parentPanel.add (queryPanel). The only thing that happens when I change the JComboBox to a different query type is the portion of the queryPanel that was covered by the selection of the JComboBox never gets repainted and doesn't change to the new queryPanel.
    I wish I could provide code examples, but the computer that I am developing on is not on the Internet and it is extremely difficult to get anything off of it to put out on the Internet.
    Hopefully, someone can help me figure out what is going on and why my parentPanel is not updating to reflect the new queryPanel.

    GoDonkeys wrote:
    Sorry, but what is the EDT?Please start here: [Concurrency in Swing|http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html]

  • PL/SQL: Executing a procedure from within another procedure

    Hello, I'm a newbie and I need help on how to execute procedures from within another procedure. The procedure that I call from within the procedure have return values that I want to check.
    I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    but I get the error message:
    PLS-00103: Encountered the symbol "USER_GET_FORUM_INFO" when expecting one of the following::= . ( @ % ; immediate
    The symbol ":=" was substituted for "USER_GET_FORUM_INFO" to continue.
    And when I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    I get the error message:
    PLS-00222: no function with name 'USER_GET_FORUM_INFO' exists in this scope
    PL/SQL: Statement ignored
    The procedure USER_GET_FORUM_INFO exists. (don't understand why it says "no FUNCTION with name", it's a procedure I'm executing)
    I'm stuck so thanks for any help...
    Below is all the code. I'm using Oracle 9i on RedHat Linux 7.3.
    ================================================================================
    CREATE OR REPLACE PROCEDURE user_forum_requestsaccess (
    p_forumid IN NUMBER,
    p_requestmessage IN VARCHAR2
    AS
    var_forumid NUMBER;
    var_forum_exists NUMBER;
    var_forum_access NUMBER;
    request_exists NUMBER;
    var_forumname VARCHAR2(30);
    FORUM_DOESNT_EXIST EXCEPTION;
    FORUM_USER_HAS_ACCESS EXCEPTION;
    FORUM_REQUEST_EXIST EXCEPTION;
    BEGIN
    SELECT SIGN(NVL((SELECT request_id FROM forum.vw_all_forum_requests WHERE forum_id = p_forumid AND db_user = user),0)) INTO request_exists FROM DUAL;
    EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    IF var_forum_exists = 0 THEN
    RAISE FORUM_DOESNT_EXIST;
    ELSIF var_forum_access = 1 THEN
    RAISE FORUM_USER_HAS_ACCESS;
    ELSIF request_exists = 1 THEN
    RAISE FORUM_REQUEST_EXIST;
    ELSE
    INSERT INTO tbl_forum_requests VALUES (SEQ_TBL_FORUM_REQ_REQ_ID.NEXTVAL, SYSDATE, p_requestmessage, p_forumid, user);
    INSERT INTO tbl_forum_eventlog VALUES (SEQ_TBL_FORUM_EVNTLOG_EVNT_ID.NEXTVAL,SYSDATE,1,'User ' || user || ' requested access to forum ' || var_forumname || '.', p_forumid,user);
    COMMIT;
    END IF;
    EXCEPTION
    WHEN
    FORUM_DOESNT_EXIST
    THEN RAISE_APPLICATION_ERROR(-20003,'Forum doesnt exist.');
    WHEN
    FORUM_USER_HAS_ACCESS
    THEN RAISE_APPLICATION_ERROR(-20004,'User already have access to this forum.');
    WHEN
    FORUM_REQUEST_EXIST
    THEN RAISE_APPLICATION_ERROR(-20005,'A request to this forum already exist.');
    END;
    GRANT EXECUTE ON user_forum_requestsaccess TO forum_user;
    ================================================================================
    Regards Goran

    you don't have to use execute when you want to execute a procedure (only on sql*plus, you would use it)
    just give the name of the funtion
    create or replace procedure test
    as
    begin
        dbms_output.put_line('this is the procedure test');
    end test;
    create or replace procedure call_test
    as
    begin
        dbms_output.put_line('this is the procedure call_test going to execute the procedure test');
        test;
    end call_test;
    begin
        dbms_output.put_line('this is an anonymous block calling the procedure call_test');
        call_test;
    end;
    /

  • How do I create a table within another table?

    How do I create a table within another table?
    As shown in image below (document created with Words), I already have a table with 3 columns. How do I create another table with 6 columns to tabulate the data (the one below "3.1 Overall")?

    Last time I checked in Pages 5.5.2 that is not possible.
    Peter

  • How do I move photos within a journal (ie from 1 page to another) in iPhoto

    How do I move photos within a journal (ie from 1 page to another) in iPhoto

    iPhoto is not very smart with multiple photos...
    I don't think you can move multiple photos and I suggest the following turnaround, using the "combine pages" option mentioned in my previous reply.
    Create a blank page that you move next to the page(s) where the photos you want to move are; 
    then move your pictures there one by one (use the new page as a temporary parking space),
    then merge this new page were you want to move the multiple pictures, using the "combine pages".
    This would save time if your journal has many pages, so you don't have to move each photo through multiple pages but just to the next/previous page.
    I just made this up but I tried it and it works!

  • How to load an Applet on a panel, within another Applet

    Hi,
    I want to know if and how it is possible to load an applet/application on a Panel within another Applet/Apllication.
    Who can help me?
    tnx

    You want to use an applet inside an other applet?
    Applet extends Panel
    you can take the source of the second applet, and instead of extending Applet extends Panel, and call the init method from the first applet.
    Hope this help

  • Integrate SAP Portal within another intranet

    We need to integrate SAP Portal within another intranet portal. The question is if technically, it's possible integrate SAP portal to display within a frame that is not the top frame of the window.
    I had this same problem on another project and was not possible because the SAP portal needs to take the entire window (the reason is how it is implemented).
    Could anybody confirm it?

    You can integrate the SAP Portal in another portal. To do so, integrate it by an iFrame.
    To not show the whole SAP Portal navigation in the target portal, go through these links:
    Embedding Enterprise Portal content in another webpage
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4a3addc4-0501-0010-bfbb-9cdd29581adf
    You'll need to make a small configuration of your SAP Portal - that is: adding a new alias.
    br,
    Tobias

  • How to find referenced photos within the Photos app

    Problem:
    Upon instructing Photos to use iCloud Photo Library, the app informed me:
    "104 referenced files in your library will not upload to iCloud Photo Library. Select referenced files in your library and choose 'Consolidate' from the File menu to copy the original files into the library."
    I do not know which 104 images in my library are referenced, and therefore cannot use "Consolidate" to import the masters into the library.
    Can anyone tell me how to find referenced files, within the active library in the Photos app?
    I am not asking how to use the "Show Referenced File in Finder" menu command. I need to identify a file as referenced first, hence this post!

    Gotcha - came up with a workaround... since the photos were living in the Photo Library packaged itself, and not simply in another regular folder, I right clicked on the library and said show packaged content, then search for what folders the files lived in, then copied the files out of the packaged library into a folder. Then I was able to give the Photos Library access to the new folder with the files.
    With all my files now references, I enabled iCloud Photo Library and am uploading now.
    Hopefully my new local Photo Library will be smart enough to optimize local images and shrink to give me more space.
    Thanks.

  • How to show a confirmation when closing browser window in jdeveloper11g

    Hi
    I'm Using Jdev 11g
    How to show a confirmation when closing browser window in jdeveloper11g
    Regards
    Abhilash

    Abhilash,
    My goodness...
    Didn't search the forum, eh? In fact, didn't even look at the last 5 or 6 posts - this was posted by another user within the past few hours.... Giving a message while closing a jspx page.
    John

  • How to show more than one record at a form-like style report?

    Hi All,
    I developed a form-like style report
    I want it to show more than one record at once (At the same page)
    I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
    but when I close the property palete and open it agian the value is returned to 1 !!!
    how to show more than one record at the same page?????
    Thank u

    Hi,
    there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
    Regards
    Rainer

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • I lost my Iphone 4s and I need the iMei number to trace. THAT fellow actually off my phone at my last location.I dont have sim on that i phone.I am trying to trace the iphone through find my phone but it showing offline. Thus another way of solving w

    I lost my Iphone 4s and I need the iMei number to trace. THAT fellow actually off my phone at my last location.I dont have sim on that i phone.I am trying to trace the iphone through find my phone but it showing offline. Thus another way of solving will be through IMEI number which i need to hand it over to the police! How can i get the iMei number? Can I use Itune? As previously, I did sync into iTunes before. Will it have the record of my iMEI number? PLEASE HELP ME!
    iPhone 4S, iOS 7.0.1

    how to find IMEI, etc
    http://support.apple.com/kb/HT4061?viewlocale=en_US&locale=en_US

Maybe you are looking for

  • Moving mail to folders - is it possible to type the name of the folder, vs scrolling?

    Apologies in advance if there is already an answer to this question in the forums; I searched with every combination of the subject I could think of... Context: my iPhone 4 syncs with an IMAP mail server.  I have lots of folders on the server, and I

  • Query regarding EWA Reports

    Dear All, We have recently added a Managed System to Solution Manager 7.1 SP10 and completed EWA setup. Now there is a requirement to generate EWA reports for previous 3-4 months (week-wise) for this managed system in Solution Manager. Can this be do

  • Error in SMW01

    Hi, when materials are replicated we found a queue existing in SMQ1 and SMQ2. When i have checked in SMW01 for the Log it showed me the error "Allocation of the tax for country RO, sequence 1, value 0 not possible" Then i clicked on Show BDoc Message

  • JMS using JBoss !!!

    Hey, ich just have a problem realizing jms over the jboss server. Actually, if you want to implement a JMS-Producer or JMS-Consumer you need to define a �*-servie.xml� file which hast to be copied in the deployed directory of the server and it has to

  • Atention Satya:How to find Noisefigur​e by using RFSG and RFSA Drivers

    Sir, I want to find Noise figure by using RFSG and RFSA drivers pls send a LabView code for this.....  Regards, Santhosh M