Access data from a SubVi to the MainVi while the SubVi is still Running

I want to pass some Boolean/String from a subvi to the main vi while the subvi is still running. 
I understand that it could be done using queue/ notifier. I do not want to use global variables. I looked at different examples but failed to figure out how to do it.
I was trying to make an example by looking at an example from Labview about notifier. 
Can anyone please help me with this code and guide me to the correct way.
Thanks.
Attachments:
mainVi.vi ‏9 KB
SubVi.vi ‏11 KB

Hi babu726,
I have included a revised MainVi.vi and SubVi.vi for you. I had to modify the SubVi to get it to be called by the MainVi. I also included a disabled diagram structure with the code just copied and pasted in, since your code does not seem modular. Hopefully this helps!
Regards,
Michelle G
Applications Engineering
National Instruments
Attachments:
SubVi.vi ‏11 KB
mainVi.vi ‏16 KB

Similar Messages

  • Problem accessing data from Pointbase embedded in the application server

    When i try to access any information from a table in the pointbase database thru my jsp file it gives the error :"Invalid table name 'Table-name' specified at position 'position'.
    I am using the sun application server installed on the solaris machine and i created new table in the sample database PBPublic schema (a default schema that comes with the embedded pointbase database) and when i try to get data from the table i created i get the specified error.The connection string i use is :
    String l_driver = "com.pointbase.jdbc.jdbcUniversalDriver";
              Class.forName(l_driver).newInstance();
              // The URL for the sample PointBase database          
              String l_URL = "jdbc:pointbase:embedded:sample";
              // Database UserID          
              String l_UID = "pbpublic";
              // Database Password          
              String l_PWD = "pbpublic";
              // Establish connection with the database and return a Connection object          
              con = DriverManager.getConnection(l_URL, l_UID, l_PWD);
    it connects me to the database but does not fetch results on the query i execute.
    can anyone suggest what am i suppose to do for resolving this error.

    I've never used an embedded db. My connection settings are:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.jdbc.jdbcDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="jdbc-pointbase-pool" pool-resize-quantity="2" steady-pool-size="8">
    <property name="DatabaseName" value="jdbc:pointbase:server://localhost:9092/sample"/>
    <property name="Password" value="pbpublic"/>
    <property name="User" value="pbpublic"/>
    </jdbc-connection-pool>
    -- markus.

  • Accessing data from db table on another client on a separate server

    Hi
    We are trying to access data from a db table on client 400 NSQ with a program running on client 200 NSD. We are also trying to find the name of the table in which the connection configuration should be maintained. The two clients are on separate servers.
    Regards
    B.Garlipp
    Edited by: B.Garlipp on May 31, 2010 9:22 AM

    Create an RFC destination for NSQ system client 400 into your system where program is running (in this case NSD Client 200)
    Now in your program you can call function module RFC_READ_TABLE (with reference to this destination) to read entries from the other system.
    If you know ABAP, In fact you can create a Z RFC FM specific for this tables, so that you get the data in exact structure. This is because RFC_READ_TABLE returns data in text format with a delimiter.
    Cheers.
    Edited by: Rashid Javed on May 31, 2010 10:36 AM

  • I have 3 macs. 2 are Lion, 1 I left Snow leopard so I can access data from my old Quicken Application that doesn't work with Lion. If I move to iCloud, will I no longer be able to access my MobileMe email on the Snow Leopard mac?

    I have 3 macs. 2 are Lion, but 1 I left Snow leopard so I can access data from my old Quicken Application that doesn't work with Lion. If I move to iCloud, will I no longer be able to access my MobileMe email on the Snow Leopard mac?

    What version of word do you have? The TS3938 sounds like it's a PowerPC app- written for an old architecture that is no longer supported in Lion. If this is the case, your files are fine- you just need a newer version of word that will run in Lion in order to open them. The newest version (2011) should be readily available anywhere, and has worked fine for me ever since I switched to Lion on release day....

  • Stream data from a subvi to the main vi - path refnum

    hello everyone
    sorry my english
    http://forums.ni.com/t5/LabVIEW/stream-data-from-a-subvi-to-the-main-vi/m-p/2205150/highlight/true#M...
    - refnum boolean worked
    - refnum graph worked
    - refnum numeric worked
    how to create a  path refnum? stream data from a subvi to the main vi
    where do I start?
    thank
    Solved!
    Go to Solution.

    Bom Dia Saille,
    Eu acredito que o que você tenha hoje seja isso aqui (Desenho bem simplificado):
    Hoje o que você tem é o Aplicativo do Medidor + USB Driver controlando o seu medidor. Basicamente, sua aplciação está dividida em três camadas:
    Aplicação - Onde estão as funcionalidades principais do programa (interface com o usuário, apresentação de dados, geração de arquivos, etc.)
    VISA - Uma arquitetura de Software para controle de instrumentos. Basicamente, ele se comunica com o Driver USB para poder enviar e receber pacotes de dados através do barramento USB.
    Device Driver - Intruções de SW de baixo nível para controlar um periférico através de um barramento.
    No desenho, eu aponto duas camadas onde você pode tentar atuar para automatizar suas medições:
    Aplicação - Você pode usar o VI Server para controlar o Aplicativo do Medidor (Se este aplicativo tiver sido desenvolvido em LabVIEW, o que eu suponho ser verdade). No entanto é necessário saber se o desenvolvedor do produto permitiu isso (Veja Using VI Server to Pass Data Between a VI and a LabVIEW Executable). Outra alternativa é conversar com o fabricante para ver se ele desenvolveu alguma API (Application Programming Interface) para que você consiga controlar o instrumento diretamente.
    VISA - O LabVIEW Fornece uma API chamada NI-VISA para poder enviar e receber informações através de diversos barramentos (Veja Serial Instrument Control Tutorial)
    É possível acessar o Driver diretamente também, mas eu não recomendo. O resultado não compensa o esfroço!
    Espero ter esclarecido suas dúvidas e espero que você tenha sucesso na sua aplicação!!
    Atenciosamente.
    Felipe Flores
    Engenharia de Aplicações
    National Instruments Brasil

  • I am from India using my iphone4 with Vodafone and  firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????

    I am from India using my iphone4 with Vodafone and  firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????

    I am from India using my iphone4 with Vodafone and  firmware version 5.0.1(9A405). I am unable to access 3G from my device as the CELLULAR DATA NETWORK option in the settings is missing. Any methods or options for fixing the same????

  • ORA-28150 when accessing data from a remote database

    Portal Version: Portal 3.0.9.8.0
    RDBMS Version: 8.1.6.3.0
    OS/Vers. Where Portal is Installed:: Solaris 2.6
    Error Number(s):: ORA-28150
    I have a problem with using a database link to access a table in
    a remote database. So long as the dblink uses explicit logins
    then everything works correctly. When the dblink does not have a
    username then I get the ORA-28150 message. The database link is
    always public. A synonym is created locally that points to a
    synonym in the remote database. I am using the same Oracle user
    in both databases. The Oracle portal lightweight user has this
    same Oracle user as its default schema. The contents of the
    remote table are always visible to sqlplus, both when the link
    has a username and when it doesn't have a username.
    All the databases involved are on the same version of Oracle.
    I'm not sure which Oracle login is being used to access the
    remote database, if my lightweight user has a database schema
    of 'xyz' then does portal use 'xyz' to access the remote
    database? I would be very grateful for any help or pointers that
    might help to solve this problem.
    James
    To further clarify this, both my local and remote databases
    schemas are owned by the same login.
    The remote table has a public synonym.
    The link is public but uses default rather than explicit logins.
    The local table has a public synonym that points to the remote
    synonym via the database link.
    If I change the link to have an explicit login then everything
    works correctly.
    I can view the data in the remote database with TOAD and with
    sqlplus even when the database link has default login rather
    than explicit login.
    This seems to point to Portal as being the culprit. Can anyone
    tell me whether default logins can be used across database links
    with portal?
    TIA
    James

    832019 wrote:
    One way to do this is by creating a database link and joining the two tables directly. But this option is ruled out. So please suggest me some way of doing this.Thus you MUST use two connection strings.
    Thus you are going to be either constructing some intricate SQL dynamically or you are going to be dragging a lot of data over the wire and doing an in memory search.
    Although realistically that is what the database link table would have done as well.
    Might be better to look at moving the table data from one database to the other. Depends on size of course.

  • APEX Application accessing data from two different databases

    Hi All,
    Currently as we all know that APEX Application resides in database and is connected to the schema of that database.
    I want APEX Application to be running and accessing data from two different databases. Elaborating my question,
    Currently, my APEX Production Application is connected with XXXX Schema of DB1 Database(Where APEX Resides). Now I want to add some pages into this APEX Application for REPORT Purpose, But I want to connect this REPORT APEX Pages to get data from Different Schema YYYY for Database DB2.
    Is it possible to configure this scenario?
    The reason for doing this is to avoid the REPORT related (adhoc queries) resource utilization effect on Production DB1 Database.
    Thanks
    Nil

    1. If you do the joining of two or more tables in DB1 then all data is pulled over to DB1 and then the join is executed: so more data over the databaselink and more work for DB1. Better keep the joining stuff where the data resides and just pull exactly that data over that you need.
    2. Don't know about your different block sizes. Seems a nice question for one of the other forums (DBA or SQL).
    3. I mean create synonyms on DB1 for reports VIEWS in DB2.
    Hope all is clear!

  • How do I access  data from one user account to another?

    I want to access data from a different user account. How do I make all the files available?

    I have another post here in the forum that explains in detail about the rez problem. It was read by a lot of people with no responses. 1 thing that might be important is that I was using a Wacom drawing tablet when this problem started. I removed the Wacom software and no help.
    My Apple 23" Cinema display has very large icons but the display prefs says it is at 1920 x 1200. It's not just a low screen rez but the dock and all icons will scroll on the screen when I move the mouse.
    The resolution will not change to anything else. The rez is fine on other user names.
    I have booted from the Apple DVD and run disk repair, repaired disk permissions. Booted and run Tech Tool.
    Booted from the Disk Warrior cd and ran that.
    I have zapped the PRAM. I have plugged the display into the other port on the video card.
    When I change to the problem user name it is fine for about 1 second and then changes to the "problem". I have never seen this before and I have been using a Mac since 1990.
    It's a G-5. Dual 2.0 ghz. 2.5 gb ram. OS 10.5.8. Apple keyboard. Logitech mouse and
    Thanks.

  • Can I create a Stored Procedure That access data from tables of another servers?

    I'm developing a procedure and within it I'm trying to access another server and make a select into a table that belongs to this another server. When I compile this procedure I have this error message: " PLS-00904: insufficient privilege to access object BC.CADPAP", where BC.CADPAP is the problematic table.
    How can I use more than one connection into an Oracle Stored Procedure?
    How I can access tables of a server from a Stored Procedure since the moment I'm already connected with another server?
    Can I create a Stored Procedure That access data from tables of another servers?

    You need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
    CREATE DATABASE LINK command. Refer Document for further details

  • How do I get live data from a subvi while it is running ?

    Hi.
    I'm finishing up my little application, and one of the things I cant figure out to get to work is getting live data from a subvi and displaying it on my main vi's front panel.
    In my subvi I am sending about 10 commands to the serial port, each time updating a local variable that writes value to a progress indicator. I would like to get that indicator displayed on my main vi so I can see the progress of my subvi.
    Currently I have just linked the progress indicator on the sub to a terminal, and connected that to my main vi, but, that only updates when the sub finishes its mission. Is there a way to update the main while the sub is active ?
    Any ideas appreciated !
    /Brian

    In your VI Prg_all_sub, you are actually only writing out the progress bar once to the contol reference.  Once the code to the top has executed, it will never execute again although you continue to write values to the local variable PP throughout the program.
    The quickest fix would be to put that code at the top in a loop with a small time delay function.  That way it continues to execute every time a new value gets written to the local variable.  You would have to use a local variable stop button to stop hat loop wonce your string of VISA reads and writes executes.  Also make sure to reset that stop boolean to false once the loop ends so that the loop will execute properly the next time this sub VI is called.
    Other recommendations for cleaning up the programming is to use arrays or bundle values into clusters that you pass into and out of subVI's.  Prg_all_sub and MPS setup loader have numerous wires going into and out of the sub-VI's.  Bundling these together would simplify the wiring quite a bit.
    Note also that in a lot of places you send in a wire to an indicator and branch it off to a local variable of the same indicator.  That is redundant.  Sending the wire to the local variable does the same thing as sending the wire to the indicator.  Try to use wires instead of local variables as much as possible.  For instance, near the top you send the output of the VISA resource name control back into a local variable of itself, (not necessary) then use a local variable numerous times in the case structure below.  Just wire the name into the case structure border, and maintain the value through all of the loops using a shift register.  This will eliminate dozens of copies of the VISA resource name variable.
    In several places you concatenate a carriage return character to a string constant.  Just put a "\r" at the end of the string constant when it is shown in \ display.  Then you can eliminate the concatenation.
    I hope this helps you get your progress bar working and help simplify the code for you.
    Message Edited by Ravens Fan on 08-13-2007 09:34 AM

  • Error while reading access data (URL, user,password) for the Adapter Engine

    Hi,
    Any idea on below message? I am doing file to file scenario and got the below tarce from sxmb_moni.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.pi1.piserver1</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>no_messaging_url_found: Unable to find URL for Adapter Engine af.pi1.piserver1</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine af.pi1.piserver1</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks
    Balaji

    It looks like the adapter engine is not able to register him self on SLD, you have to check in the SLD the "Exchange Infrastructure" domain, you have to verify restarting the J2EE the adapter engine update the entries in the SLD related to the specific XI Domain.
    Launch Visual Administrator >> Server >> Services >> SAP AF CPA Cache
    Enter the appropriate values for:
    SLD.selfregistration.hostname (Use fully qualified hostname)
    SLD.selfregistration.httpPort
    SLD.selfregistration.httpsPort
    Sandro

  • Accessing data from other SAP system

    Hi experts
    I need to access data from one SAP system from other.  My requirement is , perform applications (programs) in some SAP system, but using/accessing  data from other SAP system .
    For example, when we press F4 we get the match code (search help) for the field ;  that window is alredy created by SAP and it shows the data for that field . Of course the application (ike any other program/application) read the data from the SAP system is being executing ;  well i need execute that match code but show (taking) the data from other SAP system;  i not refer to other MANDT in same system but other SAP system.
    The communication between SAP1 system and SAP2 system is already created from BASIS.
    My doubt is how can i  execute that standard application (search help) but 'invoke' to standard application this take data from other system ?
    I guess i can create Z search help wich call a Z Function (RFC) to get the data required from the other system ;
    or maybe enhance the standar search help to call that Z RFC ;  but standard application search help is already created and this access the data in several ways or places of code , and this has severals sub-windows and search features ; and i just need execute exactly same search help but accesing data from the other SAP system ; so my doubt is, is there some way to indicate to SAP the applications always (wherever) these applications acces the data do it but from other SAP system, 
    like if we 'redirect' the Data Base to other SAP system. 
    SAP1 applications are being executing  -
    >   but all data (records) are taking from SAP2
    Maybe the first suggestion is simply why do not we execute applications in SAP2 instead SAP1 , that's because the version package in SAP2 system (where we have the data) does not support some (non SAP) applications we need to use.
    Excuse the long thread.  Does somebody can help, any idea ?
    Best Regards
    Frank

    Hi Frank,
    Below are my thoughts, these are only conceptual and haven't had an opportunity to try these possibilities, also not sure if this is the right thing.
    1) Create an entry in DBCON using TCode: DBCO for the Database of system SAP2. Now in the application of SAP1 use the "SET CONNECTION" construct as the very first statement, so that consecutive SQL statements will point at the DB of SAP2.
    2) I have read somewhere that the Work Processes are connected to the Default database and i am not sure if you can change this setting, but if you can and provided you have have multiple application servers in your SAP1 landscape, then pick one of the application servers and change the settings on the WP to point at the DB of SAP2, you have the end users login to this particualr app server.
    3) If there are multiple app servers in SAP1 landscape, then choose one of the app servers and change the default database setting to point at DB of SAP2.
    Regards,
    Chen

  • Access data from 2 SAP systems into WebDynpro..Please guide :)

    Hello,
    Is is possible to access/retrieve data from 2 seperate SAP systems in Web Dynpro?
    To ellaborate more:
    Under normal situation - We create a Model using which you can access the required BAPI/RFC and using the JCo this connection is complete.
    So, in the SLD there is one JCo connection/object for this model.
    Now as per my quesry, I want to access data from 2 systems... like CRM & R/3.
    So how can I do this:
    1. Create 2 seperate model objects and then do Model Context Mapping. If this is rite, then I will have to create 2 JCo connections in SLD.
    2. Is is possibe that under one model (example this model is accessing R/3), I need to access data from CRM <i><b>without creatiing another model</b></i>. So that are the possiblities? Secondly is this way/path recommended?If no, how should I proceed.
    Hope my requirements are clear
    Awaiting Reply.
    Thanks & Warm Regards,
    Ritu

    Ritu,
    There is no way you can create single model for 2 different R/3 systems (unless SAP decides to implement this in later versions).
    If you still want to stick with a single model approach, I would suggest to use <b>Webservice</b> model where the R/3 interaction part would be taken care by WebService.
    Ashutosh

  • Questions about accessing data from old drives

    I am trying to access data from a 10-12 yr old IDE drive that I used with a PC way back when. I place it in an enclosure, and when connected, receive a message via Lion (see attached). Anyone have any idea if the drive may work when connected to a modern PC? Did Windows 10-12 years ago use some system that makes drives not recognizable with Macs OR are the drives just likely bad?
    Thanks.

    Wired is with Ethernet. Connect both with an Ethernet cable

Maybe you are looking for

  • Unable to Start Listner for 10g R2 after windows xp pro restart.

    Database worked just fine until a system reboot after installing the Apache server and Apex 2.2 The service start and I'm able to connect to the database SQL*PLUS without specifying the host string SQL*PLUS User Name: xxxxx Password : xxxxx Host Stri

  • W540 second hard drive

    I have just ordered a w540 and I'm wondering if I can add a second hard drive (actually what I want to install is an SSD) to it. Apologies if this has been answered before, in which case I failed to find the appropriate message Solved! Go to Solution

  • Items not showing up in CONTEXT SYNC ON COMMIT  index

    My problem is, sometimes users can't find an item when searching (index is CONTEXT SYNC ON COMMIT), however, when I change the index column, the item shows up. I can even tell the index column was changed before at one point because i put a string re

  • Finding photos after upgrade to 7.1.1 by location on a map

    I have updated my ipad to 7.1.1 but cannot find my photos by location on the map. I have followed the ipad manual where it days tap the > when viewing in years but I have no > icon. All my photos appeared on a map prior to upgrade - can anyone help?

  • General settings before extracting the data in sap bi

    plzzzzzz