Calling a VI in a subpanel with parameters inside an event structure and using an abort button

Hi all,
I have a control panel with a tab control and two tabs have a sub panel in them.  At runtime I load the VIs I want in to the sub panels.  In the control panel event structure I want to start each of the VIs and monitor the execution state so I can abort the VI while it is running.  One method I use can run the VI and the abort event will work (see example).  The second method I use does not and this is what I want to do!  I have many inputs to the VI I want to pass so placing the VI in the event blocks everything else and it has to wait until the VI has completed, so I cannot monitor the execution state.
I have attached an example of what I want to do.
Any help appreciated.
Martin
Solved!
Go to Solution.
Attachments:
SubPanel.lvlib ‏2 KB

Hello,
You can do this with queues. 
The main vi and subpanel vi's should be based on the producer/consumer (events) and you handle the front panel events accordingly in the respective vi's. 
Name the queues in obtain queue , for example the Main being MainQ, subpanels SubPanel1Q, SubPanel2Q. When you start the application, initialise the main vi and also run both of the subpanels (just to make sure that the queues are first obtained by themselves). Then you can use obtain queues to do inter vi communication.
For example if you need to send data from main to subpanel1, use obtain queue and use the name SubPanel1Q, pass the required data & command and voila. Subpanel1 vi will receive your message. You can do this anyway you want. Hope this helps.
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community.

Similar Messages

  • Declare the internal table with only one 10 character  field and use

    Hi,
    I want to declare the internal table with only one 10 character  field and use.
    Jaya

    Hi,
    Go ahead. U can declare IT with only one field
    Example:
    data: begin of zcustlist occurs 1000,
                   custmer(10)  type c,
             end of zcustlist.
    Narendra Reddy.
    Edited by: Narendra Reddy C on Aug 8, 2008 11:39 AM

  • Calling Transaction SP01 (Display spool requests) with parameters via URL

    Hi,
    I would like to be able to list all spool requests of a certain title via a URL.
    Unfortunately ITS does not seem to work. A URL constructed like this
    http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
    causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
    I am therefore considering the following options:
    1. BSP Program
    2. Java WebDynpro
    3. ABAP WebDynpro
    Ideally, I want to be able to enter in my browser something like
    http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
    and for this to show in the browser a list of all spool requests that are named "Testing123".
    Can someone advise whether any of the above options are preferable?
    Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
    Many thanks for any assistance.
    Regards
    Adrian

    Solved myself. Thanks

  • How to call web page to search document with parameters?

    Hi!
    i need to call a web page with access parameters to search a document and display this in .pdf format (external system).
    Example:
    PARAMETERS:
    license code = xxx
    society code = yyy
    nickname = ...
    password = ...
    fieldsearch = ....
    valuefieldsearch = ...
    with these parameters, i must access in a web page https://....
    and open .pdf file.
    how to do? Can i do from SAP R/3?
    Do you suggest any idea?
    Thanks & Regards
    Raffaella

    Hi
    Raffaella
    you have to use Class cl_http_client to execute HTTP REQUEST (in your case using GET method)
    Check this link
    http://help.sap.com/saphelp_nw70ehp2/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
    You can also use the abap report RSICFCLTST01 for testing Abap http requests

  • Call Report Builder from Jdeveloper 10g with parameters

    hello , how are you
    i am in oracle forms for long , today i am work in jdeveloper 10g, i want some questions
    1- how call oracle report builder from oracle jdeveloper 10g with parameters
    2- if there aren't call from jdeveloper 10g, what is good report tools?
    thanks.

    I'm assuming that what you want to do is actually run a report from a JDeveloper application.
    To do this you can use the various ways that Reports offer to invoke reports with the report server - including URL & Web Service interfaces.
    More information on these in the Oracle Reports - Publishing reports manual.

  • PreparedStatements with parameters inside functions

    With PreparedStatements, can I use parameters inside of functions. For example, instead of doing:
    stmt = conn.prepareStatement("INSERT INTO MyTable (EncData) VALUES (ENCRYPTBYKEY(KEY_GUID('MyKey'), 'ABCDEF''))");
    I want to do:
    stmt = conn.prepareStatement("INSERT INTO MyTable (EncData) VALUES (ENCRYPTBYKEY(KEY_GUID('MyKey'), ?))");
    stmt.setString(1, "ABCDEF");
    I am getting a 'String or binary data would be truncated' exception when trying this.
    Thanks,
    Kevin

    OK ... let me take you a couple steps back ...
    I can get PreparedStatements to work in Java (J2SE1.5):
    stmt = conn.prepareStatement("INSERT INTO MyTable (Data) VALUES (?)");
    stmt.setString(1, "ABCDEF");
    However, the previous example does not work through SQL Server Management Studio ... it gives a syntax error:
    INSERT INTO MyTable (Data) VALUES (?)
    Moving onto my issue, how do I get PreparedStatement parameters to work within a function:
    stmt = conn.prepareStatement("INSERT INTO MyTable (EncData) VALUES (ENCRYPTBYKEY(KEY_GUID('MyKey'), ?))");
    stmt.setString(1, "ABCDEF");
    And as mentioned earlier, the following works fine in Java J2SE 1.5
    stmt = conn.prepareStatement("INSERT INTO MyTable (EncData) VALUES (ENCRYPTBYKEY(KEY_GUID('MyKey'), 'ABCDEF'))");
    So, in conclusion:
    I can successfully make PreparedStatements perform inserts using parameters in Java
    I can successfully make PreparedStatements perform inserts in Java using the encryption function
    However, I cannot make PreparedStatements perform inserts using parameters in the encryption function in Java
    I cannot get a simple example of PreparedStatements to work in SQL Server Management Studio ... and wouldn't expect to ...
    Thanks,
    Kevin

  • Huge problems with my MacBook:  Invalid Node Structure and More!

    A couple days ago I was browsing the internet, and when I closed Safari, the system froze. I couldn't even force quit out of anything, so I had to shut it off manually. When I tried to turn my computer back on the next day, I couldn't get past the Apple screen. The little wheel would keep spinning, but I could never get anywhere.
    Then, I tried to boot from the Leopard DVD to possibly reinstall Leopard, hoping it would work. At first, no drives would show up to install to, but for some reason, they eventually showed up. Problem is, I don't have enough free memory to reinstall Leopard. Furthermore, I've tried to fit it on the space I have, and it says that the install failed, so I can't reinstall Leopard.
    I also went to Disk Utility from the DVD and tried to repair the disk. The only option available was to Verify Disk, but when I go there, that fails, and it says "invalid node structure."
    I'm not sure what happened to my computer because it seemed to come from nowhere. To sum up, I cannot log in to OS X, or even XP on a separate partition, I can't reinstall Leopard, and I can't repair the disk. I've read about how DiskWarrior might help, but I can't get in to OS X. Does anyone have any idea what happened or what I can do? I haven't backed anything up, so if I'm screwed, then so be it, I guess. Just wondering if anyone has any explanations or suggestions. Thanks.

    Interesting how many people have this same issue. A friend of mine has brought me her white Macbook Intel Core 2 with Leopard and it had a folder with a question mark instead of the apple at startup. I was able to boot using the Mac Install DVD and ran Disk Utility. It said something like "Invalid Node Structure" and "Cannot Repair". Unfortunately DiskWarrior will not fix this. I tried it to no avail. I'm resigned to the fact that a new hard drive is necessary.
    The HD in there is a Hitachi 120GB.
    It also wouldn't let me erase the disk nor partition it. Then, one morning I woke up and it was able to erase! So I erased, then installed Tiger. It seemed to be working fine. So I rebooted from the Leopard drop-in disk and installed Leopard. Then I restarted, and BAM! back to the question mark folder. Now I'm back to where I started. Other threads
    I forgot to mention that my friend had photos and music on the HD that she couldn't do without and I was able to recover that data using Data Recover II. First I had to use SuperDuper to clone my own computer onto an external drive so I could use it as a boot drive.
    For now the only solution is to buy a new internal hard drive and reinstall the OS. And regularly backup!!
    So I guess this issue has not really been solved, but hopefully you have warranty. Unfortunately for my friend, this happened a week after her warranty expired.
    Good luck.

  • Call a BI Publisher Report URL with parameters

    Is it possible to call a BI Publisher URL from a form but pass the parameters along so the report can run with the user having to fill any parameters in? If so, how do you pass the parameters in the URL? We are trying to do some Proof of Concept work on a new project and would like to introduce BI Publisher into the mix instead of using Oracle Reports.

    See this article
    http://blogs.oracle.com/xmlpublisher/2006/07/18
    from Tim Dexter's most excellent blog

  • After changing my mac mini 2009 with a mac mini late 2012, and using Time machine for the reinstallation, Lightroom is operational but Photoshop elements is said to have a license no more valid (code error 150:30). I tried all solution I found to no avail

    After changing my computer from a mac mini 2009 to a late 2012 version, all reloaded with Time machine, Lightroom works fine but Photoshop elements refuses to start (error code 150:30; "license no more valid"...). No solution found on the internet works. Any advice ? possibility to reload the application (I have kept the number of license etc.) ? Thanks in advance to anyone who could help.

    Alain Picard this error often occurs due to incorrect file permissions or corruption of licensing data during the Time Machine restore.  What version of Photoshop Elements were you using?  I would recommend that you remove and reinstall it using the uninstaller located in the Applications/Utilities/Adobe Installers folder.

  • Passing parameters to table valued functions and using parameters as column name on select

    I am creating a function where I want to pass it parameters and then use those parameters in a select statement. When I do that it selects the variable name as a literal not a column. How do I switch that context.
    Query:
    ALTER FUNCTION [dbo].[ufn_Banner_Orion_Employee_Comparison_parser_v2]
    @BANNER_COLUMN AS VARCHAR(MAX),
    @ORION_COLUMN AS VARCHAR(MAX)
    RETURNS @Banner_Orion_Employee_Comparison TABLE 
    LAST_NAME nvarchar(max),
    EMPNO int,
    BannerColumnName nvarchar(max),
    BANNER nvarchar(max),
    ORION nvarchar(max)
    AS
    BEGIN
    INSERT INTO @Banner_Orion_Employee_Comparison
    (LAST_NAME, BANNER, ORION)
    SELECT
    a.LAST_NAME, @BANNER_COLUMN, @ORION_COLUMN
    FROM OPENQUERY(ORCLPROD_APDORACLE, 'select LAST_NAME, BANNER_RANK, BADGE, EMP_STATUS from XTRACT_VIEW') AS a
    inner join IWM_Stage.dbo.ViewPersonnel AS b
    on a.BADGE = b.badge
    WHERE a.EMP_STATUS = 'A'
    and a.BANNER_RANK <> b.[rank]
    RETURN;
    END;
    GO
    Output
    I execute this:
    select * from ufn_Banner_Orion_Employee_Comparison_parser_v2 ('a.BANNER_RANK' , 'b.[rank]')
    and get:
    Cerecerez NULL
    NULL a.BANNER_RANK
    b.[rank]
          

    George,
    You could go for using a CASE statement as earlier mentioned by Erland. This would look like below: (Downside is that you need to be mentioning all possible values in the CASE)
    ALTER FUNCTION [dbo].[ufn_Banner_Orion_Employee_Comparison_parser_v2]
    @BANNER_COLUMN AS VARCHAR(MAX),
    @ORION_COLUMN AS VARCHAR(MAX)
    RETURNS @Banner_Orion_Employee_Comparison TABLE
    LAST_NAME nvarchar(max),
    EMPNO int,
    BannerColumnName nvarchar(max),
    BANNER nvarchar(max),
    ORION nvarchar(max)
    AS
    BEGIN
    INSERT INTO @Banner_Orion_Employee_Comparison(LAST_NAME, BANNER, ORION)
    SELECT
    a.LAST_NAME
    , CASE @BANNER_COLUMN WHEN 'a.BANNER_RANK' THEN a.BANNER_RANK WHEN 'a.BADGE' THEN a.BADGE END --put values as required
    , CASE @ORION_COLUMN WHEN 'b.[rank]' THEN b.[rank] END --put values as required
    FROM OPENQUERY(ORCLPROD_APDORACLE, 'select LAST_NAME, BANNER_RANK, BADGE, EMP_STATUS from XTRACT_VIEW') AS a
    inner join IWM_Stage.dbo.ViewPersonnel AS b
    on a.BADGE = b.badge
    WHERE a.EMP_STATUS = 'A'
    and a.BANNER_RANK <> b.[rank]
    RETURN;
    END;
    GO
    Another method that I would suggest is to get all values from the function, then build a dynamic query to obtain results from it .. Something like:
    ALTER FUNCTION [dbo].[ufn_Banner_Orion_Employee_Comparison_parser_v2]()
    RETURNS @Banner_Orion_Employee_Comparison TABLE
    LAST_NAME nvarchar(max),
    EMPNO int,
    BannerColumnName nvarchar(max),
    BANNER nvarchar(max),
    ORION nvarchar(max)
    AS
    BEGIN
    INSERT INTO @Banner_Orion_Employee_Comparison(LAST_NAME, BANNER, ORION)
    SELECT
    * --Returns all the columns
    FROM OPENQUERY(ORCLPROD_APDORACLE, 'select LAST_NAME, BANNER_RANK, BADGE, EMP_STATUS from XTRACT_VIEW') AS a
    inner join IWM_Stage.dbo.ViewPersonnel AS b
    on a.BADGE = b.badge
    WHERE a.EMP_STATUS = 'A'
    and a.BANNER_RANK <> b.[rank]
    RETURN;
    END;
    GO
    --Execution
    DECLARE @BANNER_COLUMN AS VARCHAR(MAX), @ORION_COLUMN AS VARCHAR(MAX),@SQL NVARCHAR(MAX)
    SET @BANNER_COLUMN='BANNER_RANK'
    SET @ORION_COLUMN='[rank]'
    SET @SQL='
    select LAST_NAME,'+@BANNER_COLUMN+','+@ORION_COLUMN+' from ufn_Banner_Orion_Employee_Comparison_parser_v2 ()'
    PRINT @SQL
    EXEC @SQL
    You just need to make sure that the column names returned by the function are UNIQUE (Using proper alias names) so that you don't have a problem referring to them from the outside..
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • This program works to plug in an electric guitar with a cable as the iRig and used the pedals and amps right?

    this program works with the iRig and then iShred cable to use an electric guitar right?

    Mr. Rodriquez,
    Thank you very much for your response.  Another concern of mine is overwelming the APs.  We have 70 of the
    "AIR-LAP1131-AG-A-K9" APs and from what I've seen the 386 clients the 4404 knows of includes the 162 clients the 4402 knows of. 
    I don't how of a way to easily determine how many clients we have per AP, so I am assuming the clients are distributed somewhat evenly.  Considering the number of APs and clients we currently have do you see any problem with increases our DHCP leases to 200 or 250?
    Thank You,
    Andres

  • HUGE Troubles with xServe RAID formatted 10.4 and using it with SLS 10.6

    Hi All,
    We met today a huge trouble using an Apple xServe RAID (formatted HFS+ with a Mac OS 10.4 Server PowerPC G5).
    This RAID has been plugged with a new xServe Intel Xeon (Model xServe 3.1), MacOS X 10.6.2, Apple FiberChannel card 4 GB, the link is at 2 GB.
    There is also an Infortrend RAID FiberChannel 4 GB Fiber to SATA RAID attached to this new Intel Xeon server : this RAID drive mounts correctly, no troubles.
    BUT the "old" xServe RAID is not able to mount at all while plugged with this new Intel Xeon, DiskUtility claims the volume needs repair !!! We try a repair = failed !!!
    The xServe RAID has been formated under 10.4.6, HFS+ Journaled.
    The Infortrend has been formated under 10.6.2, HFS+
    Does anyone met a such case ??? We tried using SFP to SFP Copper cable or Optical Fiber + SFP/LC Transceiver = same results
    Many thanks a lot for your opinion !!!
    Regards.

    What if you connect your "old" xServe RAID to a non SLS server if you have one available? Preferably one running 10.4.x server to match your HFS format. If the data on the old RAID is so critical that you can't afford to lose it, you could always pickup a used PPC w/ a fibre channel card and install 10.4 server on it just so you can transfer the data. Curious to see what you end up doing.

  • Each time I try to log in to my E-mail account it gives a drop down with the incorrect E-mail address and uses it regardless. How do I stop this?

    This happened on my dad's e-mail account. Each time we try to get him logged in the drop down appears and overwrites the correct address. How do we get rid of the drop down?

    #Make sure that [[Cookies]] are enabled for the site in question.
    #[[Basic troubleshooting#w_2-clear-your-cookies-and-cache|Clear your cookies and cache]].

  • IDOC to JDBC, problem with the multiple line items structure and mapping

    Hi,
    I have a scenario where the ORDERS data need to update the SQL table. for the idoc which consists one line item its ok but for multiple line item its just updating one line item. In the destination side we have only one table for purchase order which consists of lineitem as a field.(no different tables for Header data and Line item data)
    Can anyone suggest me how to create a structure for target side and how to map them.
    Regards,
    CJ

    Hi Rajan,
    The table structure is
    [PO_DATE]
          ,[VENDOR_NO]      ,[PAYMENT_TERM]      ,[MATERIAL_CODE]      ,ORDERED_QTY]      ,RECEIVED_QTY]                                 
          ,[UOM]       ,[RATE]       ,[CURRENCY]       ,[PO_EXCRATE]       ,[TAX_CODE]       ,[BASE_VALUE]       ,[TAX_VALUE]
          ,[TOTAL_VALUE]       ,[ADVANCE_PAYAMT]       ,[TOTAL_QTY]        ,[SNO]       ,[POLINEITEM]
    Datatype structure:
    PO_XI_MT_ORDERS05 1-1
    STATEMENT   1-UNBOUN
      TABLENAME 1-1
        ACTION   optional
        TABLE    1-1
        ACCESS  1-1
           PO_NO   0-1
           PO_DATE 0-1
    Correct me if im wrong.
    Regards,
    CJ
    Edited by: kuncjy on May 5, 2011 11:32 AM

  • Passing parameters to an event handler

    I am successfully using event handlers to respond to user
    inputs(mouse click, enter key, etc.)
    The handler can also use the event objects parameters to
    perform operations based on who called the function. An example of
    this is the target._name, which is apparently passed when the event
    occurs.
    In addition, I have a need to call an event handler from
    within AS to essentially mimic a mouse click or keyboard entry.
    This call from AS is no problem. Just use the event handler
    name. For instance, mc.click(); and the handler is invoked.
    However, with the AS call there is no object passed to the
    handler. This differs from an event-driven call where an object
    identifying the event source is passed to the handler.
    The question is: Can you pass a parameter(s) or object to an
    event handler from a call in ActionScript? I have tried various
    ways, but nothing has worked.
    Does anyone know the insides of event handling and how the
    "eventObject" is passed when
    a user event occurs? Knowing how that works might give some
    clues as to how to pass an object from an AS call.

    You would need to use a modified version of the
    mx.utils.Delegate package. The link below has just that;
    http://www.person13.com/articles/proxy/Proxy.htm

Maybe you are looking for

  • How to create database and table with GUI?

    How to create database and table with GUI? for linux can do that? or have only way to create table by use sql*plus. everyone please help me. thanks

  • SAP ERP 2005 ECC 6.0 - START_SHDI_FIRST

    Hi, Help!!!  I'm currently in the upgrade phase START_SHDI_FIRST trying to start the Shadow Instance and received this message on the upgrade: SAPup> ERROR: Starting system failed, rc=0 To analyse the errors during start of shadow instance, view file

  • Export in .DLD format? instead of .TSV format?

    Hi, When we are trying to export..usually file has to get saved in TSV format by default..but it is defaulting to DLD format? have you ever see this issue?how to fix it? Rgds,AP

  • Problem with updating podcast in iTunes store

    Hey guys, I've got a podcast that my buddy and I started 2 weeks ago, and I posted the 2nd episode, only to find that now neither the first nor second episode are listed when I click on our podcast through the iTunes store (and I didn't auto download

  • Unable to install applications or operating system

    Ive just had a new hard drive installed as my previous one crashed after only 3 and haly years and I hadt backed up any of my data, so all now lost. Lesson learnt I have tried to load up the new mavericks operating system but it just crashes the syst