Passing variables into CVI from TestStand.

Is there a different way to send variables into CVI from TestStand other than the input buffer? Parsing that string is annoying and bulky. Isn't there an easier way?

Hi,
Here is a short cut to another example which will use the StationGlobals -
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=313&HOID=506500000008000000301F0000&UCATEGORY_0=_8_&UCATEGORY_S=0
There are loads of other examples either as part of the examples provided by TestStand installation or in the Resource Library under TestStand on the NI website
Good Luck
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • Pass Variables into Flash from URL

    I have a real simple request for some reason cannot pull it
    off. I have a url that looks like this:
    http://mywebserver/directory1/directory2/webpage.html?name=Mark
    I am trying to pull the variable "mark" into a swf. The URL
    will change depedning on the user and I plan on adding additional
    variables as well (lastname, state, age, etc).
    Easy answer to this? If so, please excuse my ignorance. I use
    actionscript 2 but would consider myelf a novice as I am more into
    design.

    Using FlashVars would work, as would SWFObject - which is
    what I'd use. Glad
    yout got it though.
    Dave -
    www.offroadfire.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • How to pass variables into an alert

    Hi,
    I have set up an alert control step in my BPM, and completed all the required config to see the alert is created in my alert inbox. However, I want to pass some parameters into the alert message, such as po number. Does anyone know how to do it? I already defined the variables in the alert category container.
    Your help is appreciated!
    Hart

    Hi Hart
    I don't know if my way is "recommended" but...:)
    1. don't define container variable in alert def
    2. select "dynamic text" in your alert category
    (if you select this you'll be able to pass text from  "alert message" to the alert)
    now it should work
    passing variables into the long text
    of the alert message works for me just great 
    Hope it will for you to:)
    Kind Regards,
    Michal Krawczyk
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/u/34500 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

  • Deferred Tasks - Passing Variables into Workflow

    Hi everyone
    I am experiencing difficulties with deferred tasks in IDM 8.1. I have managed to create a deferred task on a user, with the task name being ‘Generate Email’. I also passed in an attribute ‘id’, and these can be seen in the user view under waveset.properties.tasks.
      <Activity id='1' name='Add Deferred Task'>
                    <Action id='1' application='com.waveset.session.WorkflowServices'>
                        <Argument name='op' value='addDeferredTask'/>
                        <Argument name='type' value='User'/>
                        <Argument name='name'>
                            <ref>accountId</ref>
                        </Argument>
                        <Argument name='authorized' value='true'/>
                        <Argument name='subject'>
                            <s>Configurator</s>
                        </Argument>
                        <Argument name='task'>
                            <ref>taskToAdd</ref>
                        </Argument>
                        <Argument name='date'>
                            <new class='java.util.Date'/>
                        </Argument>
                        <Argument name='owner'>
                            <ref>WF_CASE_OWNER</ref>
                        </Argument>
                        <Argument name='taskDefinition'>
                            <new class='com.waveset.object.GenericObject'>
                                <map>
                                    <s>id</s>
                                    <ref>accountId</ref>
                                </map>
                            </new>
                        </Argument>
                    </Action>
                </Activity>I have set up a scheduler that correctly scans all the user objects for this workflow name, and the ‘Generate Email’ workflow is periodically run.
    The problem is when it gets to the Generate Email workflow, all the variables that were set when the deferred task was created are gone. Both <ref>id</ref> and <Variable name=’id’ input=’true’/> return null.
    Setting the following in the TaskSchedule object did not help, as the string value $(id) is passed into the workflow instead of the id itself. I cannot debug the TaskSchedule as the Netbeans IDE does not allow me to put in breakpoints on this file.
    <Variables>
        <Object>
          <Attribute name='id' value='$(id)'/>
        </Object>
      </Variables>My question is, how do I pass variables into a workflow via a deferred task?

    Hi,
    Here is an example that I found that may assist.
    <Activity name='setDefTask'>
         <Action application='com.waveset.session.WorkflowServices'>
           <Argument name='op' value='addDeferredTask'/>
           <Argument name='name' value='$(user)'/>
           <Argument name='task' value='$(taskType)'/>
           <Argument name='date' value='$(date)'/>
           <Argument name='description' value='$(taskDescription)'/>
           <Argument name='taskDefinition'>
              <Object>
                  <Attribute name='Arg1' value='value1'/>
                  <Attribute name='Arg2' value='value2'/>
                  <Attribute name='Arg3' value='value3'/>
              </Object>
           </Argument>
         </Action>
         <Transition to='end'/>
    </Activity>Hope it helps

  • Trouble passing variable into package

    I am having an issue reading a variable in a script task that I'm passing in from a windows service. I should be able to pass the param in from .NET and load it into one of my package vars right? The windows service is a file watcher service.
    Windows Service code
                        Package pkg;
                        Application app;
                        DTSExecResult pkgResults;
                        Variables vars;
                        app = new Application();
                        pkg = app.LoadPackage(pkgLocation, null);d because I log it to a log file.
                        vars = pkg.Variables;
                        vars["User::FileName"].Value = sFileName.ToString();
                        pkgResults = pkg.Execute(null, vars, null, null, null);
    The sFileName variable in the service is populated because I write it to a log file.
    In the package I list the FileName variable as read/write. Have checked the spelling.
    package code snippet:
          public void Main()
          //get file and path info
          string sFileName = Dts.Variables["User::FileName"].Value.ToString();
    the package fires but the variable is empty and I log an exception to the sysssislog:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.  Parameter name: length    
    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)     at ST_5a4733488a6149abb109d633296e2c38.csproj.ScriptMain.Main()     --- End of inner exception stack trace ---    
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)    
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object
    target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
    I cannot find what the issue is. In the package I log to a text file the value of FileName variable and as expected it is empty.
    I appreciate your help wit

    The scripting task which is designed to retrieve the file name from the package var User::FileName is listed in the scripting tasks read/write variables and it is a package level variable. Is that what you mean by "expects" Arthur? If so then yes. But is
    there a property setting on the script task that has to be set?
    I could use the config file but the file name changes daily with a date stamp suffix. I could also just sweep the directory when the file watcher executes the package but that all seems so sloppy considering that I should be able to pass the filename in
    as a variable.
    Thanks for talking through this with me. I appreciate it.

  • Passing variable into pdf document

    I have created a pdf document that I want to share with my marketing team.  However, in the document I want the url to be dynamic and show that individual's url.   For example, if my domain is www.xyz123abc.com   In the pdf, I want to setup the url in the document as www.xyz123abc.com/REPSITE.  Then when the pdf is opened from each individual's site, we will pass the REPSITE variable into the pdf document.   If my marketing page is www.xyz123abc.com/jim.   When someone visits my website and opens the pdf, they will see www.xyz123abc.com/jim.  When my partner Bob's site is visited, the pdf will display www.xyz123abc.com/bob. 
    So how can I dynamically pass variables from a website into the pdf?  

    Don't know if there is a better way, but you could use the 'identity Object'. Just make sure that the Identity is set in the application preferences for each employee
    var userName = identity.name
    Edit: Sorry, after rereading your post, I don't think this is what you are asking for. Perhaps the 'HostContainer Object' wll allow you to do what you want?

  • Select (variable) into:parameter from xyz , dynamic sql

    hello everyone
    I have a table with the columns KZ01*01*, KZ01*02*, KZ01*03*.....
    I want to select the value from one column depending of a variable z.b. varable=3 I want the value select KZ01*03*
    I wrote the trigger post_querry:
    declare
         v_kfz string(20);
    begin
    v_kfz:='select KZ010'||:daten.lkw||'into :kennzeichen from r_bestellung@r where nummer=:daten.r_bestell_nummer';
    Forms_DDL(v_kfz);
    end;
    alternativ I tried:
    execute IMMEDIATE 'select KZ010'||:daten.lkw||'from r_bestellung@r where nummer=:daten.r_bestell_nummer'
    I am using Form builder 6.0.... and Oracel 8i
    what I am doing wrong, thanks for helping
    regards
    robert

    I think there was good example in form but here is the example for your crieteria.
    DECLARE
         vSqlStr VARCHAR2(1024);
         cursor_number EXEC_SQL.CursType;
         vRecCount NUMBER;
      vReturnedValue DATATYPE; -- Set this datatype upon table field
    BEGIN
         cursor_number := Exec_SQL.Open_cursor;
         -- Here variable your field name
         -- for numeric
         vSqlStr := 'select '||<VARIABLE>||' from r_bestellung@r where nummer='||:daten.r_bestell_nummer;
         -- for characters
         vSqlStr := 'select '||<VARIABLE>||' from r_bestellung@r where nummer='''||:daten.r_bestell_nummer||'''';
         -- From above use only one on your requirement
         EXEC_SQL.PARSE(cursor_number, vSqlStr);
         EXEC_SQL.DEFINE_COLUMN(cursor_number,1,vReturnedValue,30);
         vRecCount := EXEC_SQL.EXECUTE(cursor_number);
         IF EXEC_SQL.FETCH_ROWS(cursor_number)=1 THEN
           EXEC_SQL.COLUMN_VALUE(cursor_number,1,<:FORM_FIELD_NAME>);  -- Here form_field_name replace with you current form field.
         END IF;
         EXEC_SQL.CLOSE_CURSOR(cursor_number);
    EXCEPTION
      When EXEC_SQL.INVALID_CONNECTION Then
         message('Unexpected Invalid Connection error from EXEC_SQL');
      When EXEC_SQL.PACKAGE_ERROR Then
         message('Unexpected error from EXEC_SQL: '||to_char(EXEC_SQL.LAST_ERROR_CODE)|| EXEC_SQL.LAST_ERROR_MESG);
      If EXEC_SQL.IS_OPEN(cursor_number) Then
        EXEC_SQL.CLOSE_CURSOR(cursor_number);
        message('Exception - Cleaned up Cursor');
      End if;
    END;-Ammad

  • Why I can't pass parameters into CR from VB6

    I want to Pass parameters into crystal report from VB6.
    But whatever I try, it don't work Fine,
    always Show the message "This field name is not known".
    Crystal Report::
    Parameter: a.@cmpy;
                       b.@p1
    formula:
    a. If {?@cmpy} ="USA" or {?@cmpy} ="usa" then
          "This is test 1 sentences"
       else if {?@cmpy}="TWD" or {?@cmpy} = "twd"  then
          "This is test 2 sentences"
    b. if trim({?@p1})="1" then "This is test 3 sentences"  
    VB::
    Public oApp As New CRAXDDRT.Application
    Public oRpt As CRAXDDRT.Report
    oRpt.ParameterFields(1).ClearCurrentValueAndRange
    oRpt.ParameterFields(2).ClearCurrentValueAndRange
    oRpt.ParameterFields(1).AddCurrentValue ("TWD")
    oRpt.ParameterFields(2).AddCurrentValue ("1")  
    I had trid to use "IsCurrentValueSet" function to check whether parameter was set or not, and It responsed "Ture",so I so confused about it.
    Anyone know about this??
    ps. I had trid other way that change the formula indirectly, although it can work fine, but it isn't a right way to solve my problem.
    Edited by: DeanLai on Jun 22, 2010 8:54 AM

    I Find something.
    First I tried to add parameter and wanted to see these value on Report.
    So I inserted {?@cmpy} and {?@p1} into report, and used VB code
    "oRpt.ParameterFields(1).AddCurrentValue ("TWD")" and "oRpt.ParameterFields(2).AddCurrentValue ("1")",
    then ran the process, but it didn't display any value on report,
    so why it couldn't pass value into parameter??
    then I tried other way which was to add new parameter, and used the same way to pass
    value into parameter, then it can display value on report.
    So the different between these is {?@cmpy} and {?@p1} which come from
    Stores Procedure.
    While I set Database in crystal report, set all value into Store Procedure's
    parameter(the window about "Enter Parameter Values"), then it automatic come out the DB columns and parameter(SP parameter)
    , course include {?@cmpy} and {?@p1}.
    Do this problem cause my question?
    Can we pass value into parameter which come from SP parameter??
    Can we use these parameter into forumla??
    Edited by: DeanLai on Jun 30, 2010 11:56 AM

  • Pass variable into getURL

    I need to know how to pass a variable into getURL.
    Is it possible to use a param name in the html with a value
    of a URL (google.com) and pass that into the flash... and then in
    the actionscript replace the link with a var that calls the param?
    hope that makes sense.
    Thanks

    All you need to know here?:
    http://www.adobe.com/devnet/flash/articles/google_search.html

  • Pass variable into xMII applet???

    Is it possible to pass a javascript variable into the xMII applet?

    I guess what I asking is could I place a variable that I created in the head of the html file and then call for it in the applet.
    The variable is called in the Applet name below.
    For Example:
    <html>
    <head>
    <script>
            var TEST = alert("")
    </script>
    </head>
    <body>
    <tr>
    <td>
                                       <applet name="TEST" codebase="/Illuminator/Classes" code="iGrid" archive="illum8.zip" width="775" height="350" mayscript>
                                       <param name="DisplayTemplate" value="/Production/gridQA_Moistures">
                                       <param name="QueryTemplate" value="/Production/qryQA_Moistures">
                                       <param name="UpdateEvent" value="Grid_Updated">
                                       <param name="Param.1" value="%">
                                       <param name="Param.2" value="%">
                                       <param name="Param.3" value="%">
                                       <param name="Param.4" value="%">
                                       </applet>
    </td>
    </tr>
    </body>
    </html>

  • Pass Variables into AS3 through Query String?

    Man! I've been searching ferociously and can't seem to find a solution that works for me. I am trying to pass variables via query string on a PHP page to Flash, and then have the swf add movie clips to the stage depending on the information it receives.
    Here is what the PHP outputs:
    swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...
    And here is my AS3 code:
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
    The addTheResults function takes the coordinates, adds a MC instance to the stage and positions it accordingly.
    var colorMCArray:Array = new Array();
    function addTheResults(val,colnum:Number){
    if(val == null){val = "52-46";} // so I can test it locally
    var daColor:String;
    switch (colnum){
    case 1:
    daColor = "f3951c";
    break;
    case 2:
    daColor = "74b47d";
    break;
    case 3:
    daColor = "436494";
    break;
    case 4:
    daColor = "9b74ac";
    break;
    case 5:
    daColor = "b43d44";
    break;
    var dash:int = val.indexOf("-");
    var lateral = val.slice(0,dash);
    var vertical = val.slice(dash+1);
    lateral --;
    vertical --;
    // adding the MC instance
    var comm:tileB = new tileB();
    comm.name = "comm"+colnum;
    addChild(comm);
    colorMCArray[colnum] = comm;
    //Change the color
    var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
    var thiscolor = "0x"+daColor;
    colorTransform.color = thiscolor;
    colorMCArray[colnum].transform.colorTransform = colorTransform;
    colorMCArray[colnum].x = 5;
    colorMCArray[colnum].y = 536;
    colorMCArray[colnum].x += (lateral * 9);
    colorMCArray[colnum].y += (vertical * 9)*-1;
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
    I don't know what I'm doing wrong here.

    Was this the "e" in the code below you were pertaining to as the culprit? "e" is not a keyword. It's just the shortcut for the word "event" for the variable name of type Event which is the Event object that triggered the call of function loaderInfoSh. In your code you assigned e = myQueryString.e which should have given you a type mismatch error.
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);

  • How to pass table type variable into function from SQL*PLUS ?

    How to pass a table type variable from sql*plus prompt into a function ?
    Thanx in advance.

    Krishna,
    Do you mean like this?SQL> DECLARE
      2      TYPE t_tbl IS TABLE OF VARCHAR2(20);
      3      l_sample_tbl           t_tbl;
      4
      5      FUNCTION print_contents ( p_tbl IN t_tbl )
      6      RETURN VARCHAR2
      7      IS
      8          l_string            VARCHAR2(1000);
      9      BEGIN
    10          FOR i IN 1..p_tbl.COUNT LOOP
    11              IF (i = 1) THEN
    12                  l_string := p_tbl(i);
    13              ELSE
    14                  l_string := l_string || ', ' || p_tbl(i);
    15              END IF;
    16          END LOOP;
    17          RETURN (l_string);
    18      END print_contents;
    19
    20  BEGIN
    21      l_sample_tbl := t_tbl();
    22      l_sample_tbl.EXTEND;
    23      l_sample_tbl(1) := 'one';
    24      l_sample_tbl.EXTEND;
    25      l_sample_tbl(2) := 'two';
    26      l_sample_tbl.EXTEND;
    27      l_sample_tbl(3) := 'three';
    28      l_sample_tbl.EXTEND;
    29      l_sample_tbl(4) := 'four';
    30      l_sample_tbl.EXTEND;
    31      l_sample_tbl(5) := 'five';
    32      DBMS_OUTPUT.PUT_LINE(print_contents(l_sample_tbl));
    33  END;
    34  /
    one, two, three, four, five
    PL/SQL procedure successfully completed.
    SQL> HTH,
    T.

  • Problem with passing variable into subroutine

    Applescript newbie stumped again...
    for some reason when call the subroutine below from my code, I get an error message on the bolded variable.
    Error is:
    Can't make "test" into type integer.
    I am calling the subroutine like this:
    createFolder(folderCreationPath, appFolderName)
    And am passing in two variables that I have concatenated folder name & path name.
    on createFolder(folderLocation, folderName)
    tell application "Finder"
    if (the folder folderName of folderLocation exists) then
    display dialog folderName & " already exists."
    else
    make new folder at folderLocation with properties {name:folderName}
    end if
    end tell
    end createFolder
    When I display the variables inside the subroutine, both appear to be strings.
    Any help would be appreciated.
    Thank you.

    If I knew how to upload a file to the forum I would do so...
    Copy & paste into script editor would reformat.
    Here's the full script:
    ---SubRoutines------------------------------------------------------------------ ------------------------------------------------------------------
    on createFolder(folderLocation, folderName)
    display dialog "FolderName: " & folderName & "
    Folder Location: " & folderLocation & "
    " & folderLocation & folderName
    tell application "Finder"
    if (the folder folderName of folder folderLocation exists) then
    display dialog folderName & " already exists."
    else
    make new folder at (folderLocation as alias) with properties {name:folderName}
    end if
    end tell
    end createFolder
    ---Main Code--------------------------------------------------------------------------- ------------------------------------------------------------
    set projectName to "Project " & the text returned of (display dialog "What is the name of your Project?" default answer "")
    set projectLocation to choose folder
    ---create root project folder
    createFolder(projectLocation, projectName)
    ---create subFolders
    --List of Folder names:
    set FolderMediaType to {"Project", "Media & Imports", "Exports"}
    set projectApplication to {"FCP", "Soundtrack", "LiveType", "Motion", "DVD Studio Pro", "Web Videos"}
    set projectLocation to projectLocation & projectName --Set's project location to include project folder
    repeat with iProjectApplication from 1 to count (projectApplication)
    set folderCreationPath to ((projectLocation as string) & ":") --set's folderCreation to include project folder
    set appFolderName to ((iProjectApplication as string) & "-" & (item iProjectApplication of projectApplication))
    createFolder(folderCreationPath, appFolderName)
    set folderCreationPath to projectLocation & ":" & appFolderName & ":"
    repeat with iFolderMediaType from 1 to count (FolderMediaType)
    set mediaFolderName to iFolderMediaType & "-" & (item iFolderMediaType of FolderMediaType)
    createFolder(folderCreationPath, mediaFolderName)
    end repeat
    end repeat

  • Passing an ActiveX reference from TestStand to Labview

    How can I pass and ActiveX reference (for a dll) created and used in a TestStand sequence (under Locals) to a VI running within that sequence so that I can then call the same instance of the dll from Labview?
    (I know this isn't the best approach to programming but I'm more interested in proving the point than anything else)
    Cheers
    Dan

    Here's what I think you are tyring to do. Within your sequence, instantiate an object from an ActiveX DLL, storing a reference to it within a TS variable. Then, within a VI called by this sequence, call a method of the intantiated object.
    To do this, when specifying your module on your LV step you must check the Sequence Context ActiveX Pointer check box. In the called VI you must have the a Sequence Context control on your front panel and have it wired to your connector pane along with a TestData cluster control and a LV Error Out cluster control.
    Within the VI you use an invoke node to invoke the AsPropertyObject method on the SequenceContext (Make sure you use the ActiveX close function on this new reference when you are done with it.). Use another invoke node to call GetValInterface method on the sequence context property object reference (you could probably also use the GetValIDispatch method. See the help). For this invoke node you will want to use a lookupstring that reference the variable, relative to yo sequence context, in which you stored the refernce to the instantiated object in your sequence file. This will return a variant reference. You must convert this reference to a LV reference using the "To G Data" function in the ActiveX palette. The "To G Data" function requires a type input. You will need an ActiveX Automation Refnum control as the input to this (see ActiveX control palette). You will need to right click on this automation refnum control and browse the ActiveX automation server until you find the DLL ActiveX server from which you instantiated your object within your sequence. Once selected, also select the object that you instantiated. The "To G Data" function will then give you a reference to you object on which you can happily used in your desired manner. Make sure to close this reference with an ActiveX Automation close function when you are done with it.
    I would definitely clean this up with a subVI to perhaps generalize the solution.

Maybe you are looking for