Update Station Globals from LAbWindows/CVI user interface

Hi,
I am having a requirement such that i need to update a station global variable to true or false based on the click on a button present in User Interface.
My Setup:
Labwindows/CVI 8.5
TestStand 4.2.1
Please advice me.
Solved!
Go to Solution.

Hi,
first thing, why have you posted this query twice, http://forums.ni.com/t5/NI-TestStand/Update-Station-Globals-from-CVI-UI/m-p/1317023
to be able to update a StationGlobal, you first need to get a reference to the Engine, this can be done using ApplicationMgr.GetEngine()
Once you have that reference you can then get a reference to the StationGlobals by the use of Engine.Globals(). this returns a PropertyObject.
So now you can use the SetVal methods to set your boolean, eg PropertyObject.SetValBoolean("MyBoolean",  0,  True)
hope this helps
Regards
Ray Farmer

Similar Messages

  • Update Station Globals from CVI UI

    Hi,
    I am having a requirement such that i need to update a station global variable to true or false based on the click on a button present in User Interface.
    My Setup:
    Labwindows/CVI 8.5
    TestStand 4.2.1
    XP
    Please point me to the basic programming examples of the CVI based User interface.
    Regards,
    Ramjee

    Are you sure you want to change the StationGlobal file or just change an actual StationGlobal variable. When the UI closes and shuts down the TestStand engine the StationGlobal file is updated automatically.
    Regards
    Ray Farmer

  • Conversion of an Instrument Driver from LabWindows/CVI to LabVIEW

    Hello All,
    Conversion of an Instrument Driver from LabWindows/CVI to LabVIEW
    http://zone.ni.com/devzone/conceptd.nsf/webmain/9A93316BEBEDB17786256FA300675A0A 
    But I can not find any hyperlinkt to download
    "LabVIEW Interface Generator for LabWindows/CVI Instrument Drivers"
    Is there any evaluation version for downloading?
    Thanks,
    nonomiya

    So strange,
    I go through three pages but does not find any entry for download,
    hmm...,
    1. After press the hyperlink,
    See Also:
    LabVIEW Interface Generator for LabWindows/CVI Instrument Drivers
    2. and for a resuest info. form.
    3. press download..
    ====
    LabVIEW Interface Generator for LabWindows/CVI Instrument Drivers
    System Requirements
    NI LabVIEW 7.1 or later
    Windows 2000/NT/XP
    Use the LabVIEW Interface Generator for LabWindows/CVI Instrument Drivers to create LabVIEW VIs for VXIplug&play and IVI-C instrument drivers from function panel (.fp) files.
    Instrument Driver Network
    Before using the conversion utility to create a new instrument driver wrapper, please visit ni.com/idnet to see if a LabVIEW Plug and Play instrument driver is available for your device. The Instrument Driver Network (IDNET) provides support for more than 3,000 different instrument models from over 170 different instrument vendors.
    Recommendations
    This utility was created for developers of C-based instrument drivers who wish to provide a LabVIEW interface, but do not develop a LabVIEW Plug and Play driver. By developing the C and LabVIEW interfaces together, it keeps the components synchronized, and eliminates the need for customers to create their own LabVIEW interfaces. Vendors should distribute the LabVIEW wrapper files with the associated VXIplug&play or IVI instrument driver, so that end users do not have to visit multiple web sites to download the complete driver.
    If you are not an instrument vendor, we recommend that you use this utility only if you have instrument driver expertise. Access to the instrument driver source code is preferred, in case you need to edit the C instrument driver in LabWindows/CVI.
    After generation, the wrapper VIs should be tested with the instrument.
    Instructions
    Once you install the software, simply access the utility from the Tools>>Instrumentation>>Import CVI Instrument Driver...menu in LabVIEW. This software replaces the built-in tool and provides feature enhancements.
    For additional information on this utility, view the resources below.
    Readme for the LabVIEW Interface Generator for LabWindows/CVI Instrument Drivers
    Submit your Driver
    Visit the Instrument Driver Network
    nonomiya

  • How to create an array Station Globals programmatically in CVI?

    Hello all,
    I want to create an array Station Globals programmatically in CVI. Where can I find some examples?
    Thanks,
    Zhonghui Ning

    Zhonghui,
    There is a KnowledgeBase on our website that describes the methods needed to do this. You can find the KnowledgeBase at http://digital.ni.com/public.nsf/websearch/C7C81F4AE5A46BB686256CDA005FA4C6?OpenDocument.
    I found this by searching for "teststand create variable". You can find TestStand examples on our Developer Library by going to http://www.ni.com/devzone and clicking on the link for Developer Library. This page has example code as well as tutorials and application notes on many aspects of TestStand. There are quite a few examples there that already address this type of question: Creating Sequence File Global Variables Using the TestStand API with LabWindows/CVI
    and Creating and Inserting a New Data Type into a Sequence File using LabWindows/CVI
    We continually add examples to these web pages, so it is always a good place to look for examples. While they may not have the exact answer to your questions, the examples usually cover a topic that is close enough for you to be able to apply the example to your question.
    Hope that helps.
    Regards,
    Shannon R.
    Applications Engineer
    National Instruments

  • Permission Denied Error when calling Matlab script from LabWindows​/CVI

    Hello,
    I am reading in data from a DAQ and am writing it to a .csv file in LabWindows/CVI.  I am then sending this data to Matlab to be filtered.  I would like the filtered data to be accessed by LabWindows/CVI so that I can display it as a strip chart.  I have gotten everything to work except the writing to a file in a Matlab script that is called from LabWindows/CVI.  I am basically using the shipped example in found in the activex demo. (http://zone.ni.com/devzone/cda/epd/p/id/2994). I select the script that I want to run and each time it tries to open a file with write permissions I get a "Permission Denied" error.  This occurs when using fopen() in Matlab.  I have also tried using csvwrite() as well as dlmwrite().  Each one gives me a similar error.  The script currently does not try to do any data processing.  It just opens the file, if it is successful it then prints "hello" and then closes it.  The script works well when it is run in Matlab, just not when it is called in LabWindows/CVI.  Below is the script.  Any thoughts, comments or suggestions are greatly appreciated.  I am also open to using other approaches for sending data between Matlab and LabWindows/CVI.  Thanks in advance!!
    fclose('all');
    [file, errmsg] = fopen('out.txt', 'w');
    if(file<0)
        disp(errmsg)
    else
        fprintf(file, 'hello');
        fclose('all');
    end;
    [file, errmsg] = fopen('out.txt', 'w');
    if(file<0)    
    disp(errmsg)
    else  
     fprintf(file, 'hello');    
    fclose('all');
    end;

    I am using Windows 7.  I am running CVI as an administrator and was able to get rid of the "Permission Denied" error by going into the User Account Controls in windows and changing it to "Never Notify".  However, this did not fix the problem of Matlab not being able to write to a file when the script is run from CVI.  In the Matlab code below, It now gets in to the "else", suggesting that fopen() returns a good file handle.  After getting in to the else statement, it will not actually write to the file, nor does it create it.  However, I can make changes to the plot settings and those appear.  Everything is functional when run from Matlab but when run from CVI, things get screwy with opening the file for writing.  It handles the read well.  It seems like there would have to be some file permission errors but, in the CVI program, I open and write to the file "in.csv".  Any help is greatly appreciated.
    clear;
    fclose('all');
    t = zeros(1000);
    t = csvread('in.csv');
    for i=1:1000
        t(i) = t(i)*4;
    end;
    [file, errmsg] = fopen('out.txt', 'w');
    if(file<0)
        disp(errmsg)
    else
        fprintf(file, 'goodbye');
        for i=1:1000
            %t(i) = t(i)*3;
            fprintf(file, '%f,', t(i));
        end;
        fclose(file);
        plot(t/3, t);
        ylabel('t');
        xlabel('Time (s)');
        title('Is this really working?!?');
    end;
    Thanks,
    Chris

  • Weather not displaying in notification center after iOS 5 update not to mention the entire user interface is much more sluggish.

    Weather not displaying in notification center after iOS 5 update not to mention the entire user interface is much more sluggish.

    Okay, mine now works here is what I did.
    plug in the iPhone, iPad etc
    in iTunes select the phone or iPad
    Under Summary uncheck "Sync with this....."
    Under "Music" uncheck the "Sync Music"
    Let it remove all the songs, dont worry it will come back no problems.
    Once that is all done all the music on the phone or ipad should be gone.
    Now check them both back on and everything should copy back onto it.
    Working now !!!!!

  • How to transfer Station Globals from 2.0 to 3.1

    I have a Teststand 2.0 sequence.  I notice that after I install
    3.1 it can not access the previously existing station globals.  I
    can enter them by hand but I need to deploy to other machines.  Is
    there a way to import station globals from 2.0 to 3.1. A collegue
    suggested copying the .ini file but I notice those files have teststand
    versioning entries.

    Hi,
    You should be able to do the same as Allen P had responded to the previous query. So did you try that.
    Also what's the point in posting your query here and in it's own post (here), it doesn't get your query answered any quicker.
    Regards
    Ray Farmer

  • Transer station globals from 2012 to 4.2

    I am working with TS2012, TS2010, and TS4.2.1.
    I need to copy my station globals from 2012 to 4.2.1 and am having issues.  I can not find out how to do this without retyping all of the globals.  The import/export only populates the entries.  Any have any idea on how to transfer my station globals from a newer version to an older version?

    Try this. Copy the station globals to the file globals of a new file. Save As --> select 4.2 format. Load the new file in TS 4.2, copy the file globals to station globals.

  • How to display the updated data from db to user interface in sruts framewor

    A beginner in this area, I have been able to read a record from a
    MySQL database and populate in jsp form . Now, my goal is to
    allow the user to edit the contents of the form and then update the
    record in MySQL and then display the same in jsp. page
    The scenario in detail
    1)the data is fetched from db and displayed in non-editable format
    2)Next button is clicked
    3)Now in the same jsp page I view the same data from db in editable format
    4)The user is allowed to change the information
    5)Now update button is clicked
    6)the records are updated in the db -Finished doing till this step
    7)But the updated info in non - editable format to be displayed in jsp page is left pending.
    Here is my code for jsp,i want know how to write an action for this,tried doing the same in java and I'm successful.but what I need is how to fetch the updated information in the user interface.
    I've made both editable as well as non editable info in the same page with different actions.
    pl help me,I'm a newbie
    <%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
    <%@ page language="java" %>
    <%@ page import="java.util.ArrayList,java.util.Iterator" %>
    <%@ page import="com.finocus.common.container.CustomerDetailsTest;" %>
    <html:html>
    <head>
         <title>CUSTOMER DISPLAY</title>
    </head>
    <body>
         <table width="100%" bgcolor="darkkhaki">
         <tr>
              <td><table width="100%" bgcolor="indigo">
                   <tr>
                        <td><font color="white">Display</font></td>
                        <td><font color="white">Update</font></td>
                        <td><font color="white">Verify</font></td>
                        <td><font color="white">Confirm</font></td>
                   </tr>
                   </table>
              </td>
         </tr>
    <%
              //Container for holding data
              ArrayList list = (ArrayList)session.getAttribute("CUSTOMERDETAILS");
              Iterator itr=list.iterator();
              while(itr.hasNext())
              CustomerDetailsTest cust = (CustomerDetailsTest) itr.next();
              System.out.println("testGetCustomerDetails()-successed. retrieved CustomerDetailsTest="+cust.toString());
    %>
    <%
              //Session for checking whether edit or non-edit mode
              String pageMode = (String)session.getAttribute("CUSTOMER_PAGE_MODE");
              session.removeAttribute("CUSTOMER_PAGE_MODE");
              if(null==pageMode)
                   pageMode = "EDIT";
              if(pageMode.equals("EDIT"))
                   //display data in the form
                   System.out.println("Editable mode");
    %>
              <html:form action="/nonedit">
                   <tr>
              <td><table width="100%" bgcolor="darkkhaki">
              <tr>
                        <td><b><bean:message key="label.id"/></b></td>
                        <td><font color="red"><%=cust.getCusId()%></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Company"/></b>
                        </td><br>
                        <tr>
                   <td><bean:message key="label.cname"/></td>
                   <td><font color="blue"><html:text property="name" value="<%=cust.getCname()%>"/></font></td>
                        <td><bean:message key="label.cphone"/></td>
                        <td><font color="blue"><html:text property="phone" value="<%=cust.getCphone()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr1"/></td>
                   <td><font color="blue"><html:text property="address1" value="<%=cust.getCaddress1()%>"/></font></td>
                        <td><bean:message key="label.cemail"/></td>
                        <td><font color="blue"><html:text property="email" value="<%=cust.getCemail()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr2"/></td>
                   <td><font color="blue"><html:text property="address2" value="<%=cust.getCaddress2()%>"/></font></td>
                        <td><bean:message key="label.cfax"/></td>
                        <td><font color="blue"><html:text property="fax" value="<%=cust.getCfax()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.ccity"/></td>
                   <td><font color="blue"><html:text property="city" value="<%=cust.getCcity()%>"/></font></td>
                        <td><bean:message key="label.czip"/></td>
                        <td><font color="blue"><html:text property="zip" value="<%=cust.getZip()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><b><bean:message key="label.cstate"/></b></td>
                   <td><font color="red"><html:text property="state" value="<%=cust.getCstate()%>"/></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Admin"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AAname"/></b></td>
                   <td><font color="red"><html:text property="adminname" value="<%=cust.getAname()%>"/></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAemail"/></b></td>
                   <td><font color="red"><html:text property="adminemail" value="<%=cust.getAemail()%>"/></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAphone"/></b></td>
                   <td><font color="red"><html:text property="adminphone" value="<%=cust.getAphone()%>"/></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.User"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AUname"/></b></td>
                   <td><font color="red"><html:text property="adminusername" value="<%=cust.getUname()%>"/></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AUemail"/></b></td>
                   <td><font color="red"><html:text property="adminuseremail" value="<%=cust.getUemail()%>"/></font></td>
         </tr><br>
              <tr align="center">
                        <td><html:cancel value="Cancel"/>
                        <html:submit value="Next"/></td>
              </tr>
              </html:form>
    <%               
              }else
                   //display data in the text
                   System.out.println("Non-Editable mode");
    %>
              <html:form action="/edit">
              <tr>
              <td><table width="100%" bgcolor="darkkhaki">
                   <tr>
                        <td><b><bean:message key="label.id"/></b></td>
                        <td><font color="red"><%=cust.getCusId()%></font></td>
                        <td><b><bean:message key="label.status"/></b></td>
                        <td><font color="red"><%=cust.getStatus() %></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Company"/></b>
                        </td><br>
                        <tr>
                   <td><bean:message key="label.cname"/></td>
                   <td><font color="blue"><%=cust.getCname()%></font></td>
                        <td><bean:message key="label.cphone"/></td>
                        <td><font color="blue"><%=cust.getCphone()%></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr1"/></td>
                   <td><font color="blue"><%=cust.getCaddress1()%></font></td>
                        <td><bean:message key="label.cemail"/></td>
                        <td><font color="blue"><%=cust.getCemail()%></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr2"/></td>
                   <td><font color="blue"><%=cust.getCaddress2()%></font></td>
                        <td><bean:message key="label.cfax"/></td>
                        <td><font color="blue"><%=cust.getCfax()%></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.ccity"/></td>
                   <td><font color="blue"><%=cust.getCcity()%></font></td>
                        <td><bean:message key="label.czip"/></td>
                        <td><font color="blue"><%=cust.getZip()%></font></td>
              </tr><br>
         <tr>
                   <td><b><bean:message key="label.cstate"/></b></td>
                   <td><font color="red"><%=cust.getCstate()%></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Admin"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AAname"/></b></td>
                   <td><font color="red"><%=cust.getAname()%></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAemail"/></b></td>
                   <td><font color="red"><%=cust.getAemail()%></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAphone"/></b></td>
                   <td><font color="red"><%=cust.getAphone()%></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.User"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AUname"/></b></td>
                   <td><font color="red"><%=cust.getUname()%></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AUemail"/></b></td>
                   <td><font color="red"><%=cust.getUemail()%></font></td>
         </tr><br>
         <tr align="center">
                        <td><html:submit value="Update"/></td>
              </tr>
              </html:form>
    <%
    %>
    <%
    %>
                   </table>
              </td>
              </tr>
         </table>
    </body>
    </html:html>

    u r using action classes. so after calling the insert method in Action Class to a dao... the next statement should be retrieve statement. so at the time of updating first it will get updated.. the next statement it will execute is retrieve and then set these details in VO or FORM and show it on JSP
    Message was edited by:
    leo_michael

  • Updating Station Globals in specify module

    Hi,
    I tried to specify a vi in a sequence and choose a staion global to receive the data from the vi.
    But the staion global is not getting updated as expected. But I received the variable in a local and then in post expression i assigned it to the station global. This updated the station global.
    Can you please explain me what is the problem associated with the behaviour?
    Regards
    Gopal

    Gopal,
    What version of TestStand and LabVIEW are you using?
    Can you post an example?
    Using a station global variable as the value of an output parameter should update the variable.
    Regards.
    Antonio Lie.

  • Checking the User is from Admin or User interface

    Hi All,
    A workflow (say create user wf), which can be accessed from both Admin and User interface.
    My requiremnt is, I need to develop a workflow, when this create user workflow will trigger, I need to determine whether this process has started from the Admin or User interface and also need to determine the User who has started this workflow.
    Hope you guys understand my question.
    has anybody done this before.
    Any ideas please.
    Thanks

    Here is a field in the Tabbed User Form that checks that login app is in the Admin interface.
    <Field name='_FM_VIEW_SECURITY'>
    <Display class='EditForm'>
    <Property name='help' value='_FM_VIEW_SECURITY_DESCRIPTION'/>
    </Display>
    <Disable>
    <neq>
    <ref>loginApp</ref>
    <s>Administrator Interface</s>
    </neq>
    </Disable>
    <FieldRef name='ViewSecurityContent'>
    <Property name='noHeader' value='true'/>
    </FieldRef>
    </Field>

  • Importing Instruments Driver from LabWindows/CVI

    Does anybody have got wintools_32.dll library ?
    I need it to convert LabWindowc/CVI Wintools Instrument Driver to Labview.
    Could you send it to me?
    Romek.
    [email protected]

    Hi!
    Thanks for your answer.
    Exactly, I've tried to import LabWindows/CVI instrument driver to Labview.
    This Instrument driver I've found here:
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F04956A4E034080020E74861&p_node=DZ52176&p_submitted=N&p_rank=&p_answer=&p_source=External
    During import procedure i was asked about wintools_32.dll library.
    Personally I am interested in System Tray icons functionality of this driver.
    I'm not sure that wintools_32.dll is Labwindows/CVI library, but i've searched Microsoft Windows pages with no results.
    Regards.
    Romek.

  • .exe Build from LabWindow/CVI 7.1 run exception under RTE 8.0.1

    Below is the source file  of test1.exe, which was built using LabWindow/CVI 7.1 environment, OS is Windows XP SP3
    Due to some reason(install TestStand, or LabView, or ...), the Runtime  Engine  cvirte.dll, cvirt.dll (exists in c:\windows\system32\ )is 8.0.1
    Executing this file, the GenericMessagePopup() will generate window's exception.  But if executing GenericMessagePopup() before LoadLibrary(), it will be ok.
    By the way, "cp3245mt.dll" is Borland's DLL. If load other DLL, everything is OK.
    Is there any suggestion to solve the conflict between NI and Borland? Thanks!
    // test1.c  sourcefile
    #include <windows.h> 
    #include <userint.h>
    #include <stdio.h>
    main()
    // If execute the below line first. it will be ok.
    //    GenericMessagePopup("Info", "Test","Yes","No",0,0,0,0, 
    //   VAL_GENERIC_POPUP_BTN1,VAL_GENERIC_POPUP_NO_CTRL,VAL_GENERIC_POPUP_BTN2);
       LoadLibrary("cp3245mt.dll"); 
       GenericMessagePopup("Info", "Test","Yes","No",0,0,0,0, VAL_GENERIC_POPUP_BTN1,VAL_GENERIC_POPUP_NO_CTRL,VAL_GENERIC_POPUP_BTN2);

    Did you ever figure this out. I've set classpaths, the APPCPATH variable several
    times with many variations and its not working for me, though the jsp thing is working.

  • How can I convert a project from LabWindows/CVI 2010 to a Visual Studio 2011 project?

    I have a good sized project, 12 source files, 14 headers, 1 uir, that I want to be able to edit and compile in MS Visual Studio 2011, MSVC++.
    I remember being told that LabWindows dropped support for C++ in 2008 and no longer had a wizard for converting projects. I know I can go the DLL route, but I have never created a DLL before and wouldn't know where to begin with it. What would be the best way to go about this conversion?
    Solved!
    Go to Solution.

    CVI 2010 still supports the Visual Studio Conversion Wizard for Visual Studio 2005/2008. We do plan to add support for VS 2010 in a future release.
    If you need a VS 2010 project now, you can use the Visual Studio 2008 conversion wizard, then upgrade the VS 2008 project to VS 2010.
    National Instruments
    Product Support Engineer

  • Is it possible to shutdown TestStand LabWindows/CVI operator interface programmatically?

    Hi,
    Like the title says, I'm trying to find a way to shutdown TestStand operator interface automatically after sequence execution is completed.
    Any suggestion is appreciated, thanks in advance.

    Thank you for your reply.
    I did a loop but it wouldn't work :s
    I managed to create an ActiveX button to exit test stand.
    I found an example within the TestStand Course I and II.
    static void ExitApplication(void)
     VBOOL canExitNow;
     TSUI_ApplicationMgrShutdown (AppManagerHandle, &errorInfo,&canExitNow);
     if (canExitNow)
      QuitUserInterface(0);
    // the ApplicationMgr control sends this event when it is ok to exit the application.
    HRESULT CVICALLBACK ApplicationMgr_OnExitApplication(CAObjHandle caServerObjHandle, void *caCallbackData)
     ExitApplication(); 
     return S_OK;
    void CreateTSEngineHandle ()
     GetObjHandleFromActiveXCtrl  (panelHandle, PANEL_APPLICATIONMGR,&AppManagerHandle);
     GetObjHandleFromActiveXCtrl  (panelHandle, PANEL_EXIT,    &AppExit   );
     TSUI__ApplicationMgrEventsRegOnExitApplication (AppManagerHandle, ApplicationMgr_OnExitApplication, NULL, 1, NULL);
     TSUI_ApplicationMgrConnectCommand (AppManagerHandle, &errorInfo, AppExit, TSUIConst_CommandKind_Exit, 0,
                TSUIConst_CommandConnection_NoOptions, NULL);
     TSUI_ApplicationMgrGetEngine (AppManagerHandle, &errorInfo,&EngineHandle);
     TSUI_ApplicationMgrStart     (AppManagerHandle, &errorInfo);
     TS_EngineGetGlobals(EngineHandle,NULL,&Globals);
    This way I click my QuitButton and it calls the the ActiveXExitButton witch calls the ExitApplication function.
    The ApplicationMgr control sends ApplicationMgr_OnExitApplication event when it is ok to exit the application.
    Hope this was clear enough and I hope this may be helpfull for someone else.
    I apreaciate all the help.
    Regards,
    Daniel Coelho
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda

Maybe you are looking for

  • Synchronization appears to work but songs do not show up on Ipod

    Itunes works correctly with all other ipods. When I synchronize this new ipod 30GB Video, Tunes 7.1 - it shows it synchronizing, while connected I can see the ipod and the songs on the ipod as well as the correct disk usage. When I disconnect the ipo

  • ASA WebVPN. How do you restrict access to users in an AD group using LDAP?

    Hi All, I am trying to configure separate WebVPN connection profiles to give different portal bookmark contents to users based on their AD group membership.  This has been very difficult, even though I beleive it should be easy. The login page of teh

  • How can I delete all my documents in iCloud Drive?

    I started using iCloud drive on my PC, but it has got in a complete mess syncing the files. I want to delete all files and start again. If I try to delete them on iCloud.com I can only delete a few files at a time (if I select too may it gives an err

  • Adding Field in Additional Data B in VA02-Please help me out this

    Kindly help me out , I have a requirement to add a custom field at Header level in Additional Data B tab of VA01/VA02. Program: SAPMV45A screen 8459 Can any body tell me procedure to do that. Appreciate your response.Thanks in advance

  • Safari keeps crashing and will not reload

    This is the message. It has crashed 70 times. I tried uninstalling rapport but it still crashes. Process:         Safari [471] Path:            /Applications/Safari.app/Contents/MacOS/Safari Identifier:      com.apple.Safari Version:         6.1 (853