RunState.Caller.Locals.ReportOptions.Directory unknown in Teststand 2013

Hello,
I have a problem due to migration between TestStand 4.1.2 and TestStand 2013.
In previous sequences I used the variables: RunState.Caller.Locals.ReportOptions.Directory, RunState.Caller.Locals.StartDate.Text, RunState.Caller.Locals.UUT.SerialNumber, RunState.Caller.Locals.ReportFilePath and others... without problem.
Now in TestStand 2013, the variables cannot be evaluated , generates an Teststand error and thus I cannot personnalize my report name and directory.
Hereafter the complete expression that cause problems:
RunState.Caller.Locals.ReportOptions.Directory=FileGlobals.Report_Directory + "\\" + RunState.Caller.Locals.StartDate.Text + "\\" + RunState.Caller.Locals.UUT.SerialNumber ,
RunState.Caller.Locals.ReportFilePath=FileGlobals.Report_Directory + "\\" + RunState.Caller.Locals.StartDate.Text + "\\" + RunState.Caller.Locals.UUT.SerialNumber + "\\" + "Report ["+ RunState.Caller.Locals.UUT.SerialNumber +"][" + Str(RunState.Caller.Locals.StartTime.Hours) +" "+ Str(RunState.Caller.Locals.StartTime.Minutes) +" "+ Str(RunState.Caller.Locals.StartTime.Seconds) + "]" + ".html",
FileGlobals.UUT_Time = "[" + RunState.Caller.Locals.UUT.SerialNumber+"][" + Str(RunState.Caller.Locals.StartTime.Hours) +" "+ Str(RunState.Caller.Locals.StartTime.Minutes) +" "+ Str(RunState.Caller.Locals.StartTime.Seconds) + "]" , FileGlobals.fileDir=RunState.Caller.Locals.ReportOptions.Directory 
Thanks for your help.

If you using these expressions to set the report path and directory, then, do consider using TestStand expression to specify the report path in Report Options dialog. Its lot easier to use compared to setting values to subproperties of Runstate.Caller.Locals.ReportOptions variable.
You can get more information in the following links
http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/specifyreportfilepath_byexpressi...
http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/reports_expressions/
http://digital.ni.com/public.nsf/allkb/78E88742D0F8C3C5862576D4006B8E44
Coming to your error, please provide more information regarding which sequence file and sequence did you modify.
Also note that, in TestStand 2012, process models had major change to support plug-in architecture. Process models without the plug-in architecture (like the one used in TestStand 4.1.2) is installed in "<TestStand>\Components\Models\TestStandModels\TestStand 2010 Process Models (Legacy)" directory. If you want to migrate your process model changes, it might be valid to update the legacy process models instead of new models.
You can see brief description of TestStand 2012 process model changes in http://zone.ni.com/reference/en-XX/help/370052K-01/tshelp/infotopics/2012whatsnew/#plugin
- Shashidhar

Similar Messages

  • Where can I find RunState.Caller.Locals.UUT.SerialNumber?

    Hi guys,
    I was looking at an example with RunState.Caller.Locals.UUT.SerialNumber. The example compares a scanned serial numbers format to pass/fail.
    But I dont understand this RunState.Caller.Locals.UUT.SerialNumber variable. Where it come from?

    Hi
    RunState.Caller means that it comes from the calling Sequence
    and RunstateCaller.Locals means that you are a accessing the "Local" Variables of this Sequence
    Hope this helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Cache directory of Project Pro 2013 connected to Project Online

    Hello,
    Where is located the local Cache directory for Project Pro 2013 connected to Project Online ?
    Thanks

    Check here
    HKey_Current_User\Software\Microsoft\Office\15.0\MS Project\Options
    once you will be in Option --> Save --> Cache Location -->Click
    on Browse 
    You can also try form Open MPP --> File --> Option --> Cache location --> Click on Browse 
    kirtesh

  • Unknown variable or property name 'ReportFilePath'. Error accessing item 'Runstate.Root.Locals.ReportFilePath'. in TestStand

    Hi all.
    I was using Teststand 4.2 up to last week and upgraded to TS 2013. In 4.2 I was using the following to get the location of the teststand report:
    Runstate.Root.Locals.ReportFilePath
    but with TS 2013 this no longer works.. is the following error:
    Unknown variable or property name 'ReportFilePath'.
    Error accessing item 'Runstate.Root.Locals.ReportFilePath'. in TestStand - Get Property Value (String).vi->
    I've tried the following now with no success:
    RunState.Root.Report.Location
    So my question is how can I get the location (path) of the report file during test programmatically please?
    Please find enclosed a screenshot of the report config:
    Solved!
    Go to Solution.
    Attachments:
    TS_ReportConfig.png ‏42 KB

    Shashidhar,
    Thanks for your help! With your tips, I finally got it to work. For anyone else trying to modify report names based on user input after the sequential process model sets the file name path I will re tell what I did:
    Edit the Ni_RerportGenerator.seq plugin found in C:\Program Files (x86)\National Instruments\TestStand 2014\Components\Models\ModelPlugins\
    You go into this file and add the step higlighted in Blue at that same location. Please see the expression I typed in the expression box. Setting Parameters.ReportOptions.NewFileNameForEachUUTStatus to true forces re-evaluation of the report name at the end of the sequentialmodel.seq.
    Then you add a FileGlobal in the sequenatialmodel.seq. I called my FileGlobal ReportFileName
    Then I added an expression in my test sequence that modified the the new FileGlobal I created:
    Finally I updated the report options (Go to Cofigure>Report Options > Report File Pathname and under File/Directory Options select "Specify Report File Path by Expression" and I entered my expression. It appears that you can disregard the evaluated report file path error (box below) because your pathname won't be generated until run-time.
    This worked well for me hopefully it will for others. 
    Thanks,
    Marco

  • How to load files up one step from local working directory

    Good afternoon,
    I have a project assigned to me that has some Ni TestStand code written to read files from a fixed directory and I would like to change this directory to be the directory where the TestStand seqeunce file is located.
    Furthermore, I would like to be able to step back one directories and forward into a different directory. Is this possible? I know in linux his is done with ..\ preceeding the directory location
    I want ot do this for variables in TestStand and also for pats in LabView.
    Cna somebody provide me with the correct syntax, for example if
    my seq file is C:\User\Test\myseq.seq
    and I want to open an ini file located in
    C:\Config\config.ini
    Should I save the path for the variable as
    ..\..\Config\config.ini ?? 
    Thanks,
    -D

    1) If you want to use a relative path that is resolved the same way as a module path (i.e. using the teststand search directories where looking in the same directory as the sequence file is one of the default possibilities) you can do something like the following:
    FindFile("..\\Config\\Config.ini", True, Locals.absolutePath)
    2) RunState.SequenceFile.Path actually includes the sequence file's name, so if you want to build a path from that you would need to do something like the following to parse out the part of the path you care about (though maybe an extra ".." instead of doing this parsing works to get past the file name too, I've never tried that. Perhaps either way is fine.):
    Locals.absolutePath = Left(RunState.SequenceFile.Path, Find(RunState.SequenceFile.Path, "\\", 0, False, True) + 1) + "..\\Config\\Config.ini"
    3) Whether or not you need to build an absolute path or can use a relative path depends on what you are doing with the path, if you provide more details on what you are doing with the path we can let you know. In general, you should not use a relative path when calling a win32 API.  See the remarks section of the following where it says, "Multithreaded applications and shared library code should not use the GetCurrentDirectory function and should avoid using relative path names.":
    http://msdn.microsoft.com/en-us/library/windows/de​sktop/aa364934%28v=vs.85%29.aspx
    Though if you are calling a TestStand API then a relative path might be ok, depending on the API call, because some teststand APIs can use the TestStand search directory algorithm to resolve the path (basically the equivalent of 1 above).
    Hope this helps,
    -Doug

  • Report directory property in teststand 2012

    Hi,
    I'm trying to programmatically access the report file directory in teststand 2012, the location of which changed vs. 2010.  I found one at:
    RunState.Root.Locals.ModelPluginConfiguration.Plug​ins[0].PluginSpecific.Options.Directory
    But the "[0]" tells me it's 0 probably because the report is the first item in the result processing list, and if that ever changed, my code would break. Is there another location besides the above that holds the report directory?
    Thanks
    David J.

    The problem about using [0] is that you are also under the assumption that someone has NOT reordered the list of plugins in the Result Processor list.   To fix that you could check for the name of the Plugin instead of the index.
    To do this you could utilize the ModelPluginConfiguration callback.
    Foreach { Parameters.ModelPluginConfiguration.Plugins }
     if { Locals.Plugin.Base.DisplayNameExpression == "\"Report\"" }
           Then obtain the ReportFilePath
    Now, if someone decides to delete the Report plugin, then that is another story.
    Is there someway to prevent someone from DELETING a Plugin from the Results Processor window?  I imagine privileges probably wouldn't allow a technician or operator to do this, but an admin probably still could.    When it is deleted, it does not appear in the Configuration List, I would assume.
    Thanks,
    PH

  • Passing a string from c# to RunState.Root.Locals.UUT.SerialNumber at NI

    HI all,
    How can I pass a variable content as a string in c# to the sequence variable named as RunState.Root.Locals.UUT.SerialNumber.
    The main gold is to pass the string value from textbox in c# GUI to the sequence parameters.
    Tnx

    Hi
    there a serveral ways to do this task. But you should do it in that way Norbert_B has descriped by using UserInterface Messages.
    In general, TestStand is not only one process. Your UI is another process. You have to share information over processes.
    The recommed way for doing this here is fireing UI messages. From TestStand execution you send a message to your UI. Once you have received this message in your UI, you can get a handle to the current sequnceContext were you are able to set your UUT number.
    I am pretty sure that Norbert can explain this more in detail. :-) because i am out of time now.
    Regards
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • RunState.Caller.Sequence.AsPropertyObject does not return the comment

    RunState.Caller.Sequence.AsPropertyObject.Comment    gives a null string
    but  RunState.Caller.Sequence.AsPropertyObject.Name  does give the right name of the sequence
    any idea what teststand  is doing here

    Hello,
    I develop an application operator of testsrand in c#, and I etulise the order dowry Net, I want to get  the current sequence execution in a listview in c#
    I do not arrive introduced the code
    RunStat.CallStack in my code
    here my code
    private void btnStart_Click(object sender, EventArgs e)
    affichageDeroulementTest.Clear();
    // Execution de Programmme
    myExecution = myEngine.NewExecution(mySqFile,
    "Test UUTs", mySqFile.GetModelSequenceFile(out sDummyString), false, 0, null, null, null);
    Please
    it is somebody can help me has recovers the sequence in the course of execution
    thank you;

  • LDAP with local home directory?

    Greetings.
    I'm trying to configure the Macs to authenticate based off of the LDAP server. I'm pretty sure I've got that part working, but I'm running into difficulty figuring out how to specify using a local home directory template rather than an NFS / AFP portable home directory. All the guides on the internet out there seem to want to use NFS, which we don't have setup (and don't intend to).
    Based on instructions of various texts, manuals, and blogs, I've created a user account called "labuser", and a group called "users", and then given any member of the group "users" write-access to the folder /Users/labuser. This way they login to a default home directory (at least for now). What information do i specify for LDAP's "apple-user-homeDirectory" entry to make it look for this /Users/labuser folder rather than an NFS share?

    So basically I should add C:\Documents and Settings instead of /Users for windows accounts?
    Because if I don't specify anything it creates a roaming profile on the windows machine, and puts the user directory both on the windows machine and a copy on the server under /Users/Profiles. Or at least is what is doing now... so I manually have to change the profile to local on the windows machine and delete the folder on the server...

  • RunState.Root.Locals.StartDate usage

    We have some steps in our sequence files that call LabVIEW VIs and one of the parameters we (try to) pass down is the start time and date of the test.  From previous discussions, I found that I needed to use the RunState.Root.Locals.StartDate.Text, .ShortText, .Year, etc, to send this information down.  What we found, however, is that if we run all tests using "Test UUTs", the date/time info seems to get passed down fine.  If we Run Selected Steps using Single Pass, it blows up, complaining that it knows not about RunState.Root.Locals.StartDate.Text. 
    Why would these Runtime values only be valid from the Test UUTs.  If that's the way it is, does anyone have a work around?

    mrbean,
    I ran a simple sequence with Run Selected Steps using Single Pass and set a breakpoint in my sequence and I do see the StartDate variables you describe.  So, I think some other information is missing in your problem.  Did the process model get modified?  Are you certain that "using Single Pass" was selected (the problem you describe will occure if it is just Run Select Steps)?  What process model are you using (I ran in the default sequential one)?

  • Need to copy .txt file from FTP server and downloaded on local server directory.

    I need to figure out a way to copy .txt file from ftp server in local server directory using sql jobs.

    Below links will help achieving it:
    https://www.virtualobjectives.com.au/sqlserver/ftp_scripts.htm
    http://www.mssqltips.com/sqlservertip/2884/sql-server-integration-services-ssis-ftp-task-for-data-exchange/

  • How to call a python script from a TestStand sequence?

    Please tell me how is it possible to call a python script from a TestStand sequence.
    Thank for your help in advance.
    Imre

    Here you can find some information about Python and LabVIEW:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=124424&query.id=149647#M124424
    If you have LabVIEW, you could use LabVIEW steps to call your Phyton Scipts.
    Another solution would be, to do, what is decriibed in the thread directly in TestStand:
    You can call a dll or .NET assemblies directly from teststand, or use the "Call Executable" TestStep.

  • Unable to call local function in select statement.

    Hi all,
    I am unable to call the local function in select statement in below scenario.
    DECLARE
    l_cnt NUMBER;
    FUNCTION FUN1 RETURN NUMBER
    AS
    BEGIN RETURN 2;
    END;
    BEGIN
    SELECT FUN1 INTO l_cnt FROM DUAL;
    DBMS_OUTPUT.PUT_LINE(l_cnt );
    END;
    /Any alternate way to call local function in select statement?
    Thanks
    Ram.

    Hi,
    Sorry, you can't call a locally defined function in a SQL statement, even if that SQL statement is in a PL/SQL block where the function is in scope.
    This applies to packages, also. If a function is not declared in the package spec, but only in the package body, then you can't call it from SQL statements in the package body.
    Why do you want a locally defined function? Why not a function defined outside the procedure?

  • IGS error (: Error When Calling Up IGS (ListenerRfc: unknown error))

    Hi,
      We have recently upgraded to NW04S.
      Most of our BW reports( SAP delivered or custom, web template or not ) work fine with the IGS, while some reports don't, We receive a message from the Enterprise Portal ( Error When Calling Up IGS (ListenerRfc: unknown error)). No other details are available
      We have checked and found out the related web templates are actually activates properly. From the same business content, we find some repports work and some don't, all however use web template.
      Has anybody expoerienced the same? Please help.
       Thanks
    Arunava

    Hi AHP,
       1> BW_IGS_ADMIN when executed showed me some charts with some statictics and status etc. However as mentioned the other report BW_IGS_CHART_TEST just shows me a blank screen.
        2> SM59 connection test for the IGS RFC  IGS_RFC_DEST is successful
        3> Ping on the Gateway Host( for the RFS dest) works fine as well.
        4> Also as I mentioned earlier, some of the reports using web teamplate works fine where some are not.
        5> when I do the RFC trace  ( since I get an "Error When Calling Up IGS (ListenerRfc: unknown error) ) via ST01 for the query , in the BI sysatem, I get an error 'Prog:CL_IGS_CHART==================CPRow:'.
       Please let me know how do I proceed further.
    Thanks
    Arunava

  • Error when calling up IGS(listenerrfc: unknown error)

    Hello,
    We have integrated IGS 640.2 running on os windows 2003 64 bit(BW 3.5) .When i call the IGS chart from the EP portal i am getting the following error messge
    Error when calling up IGS(listenerrfc: unknown error)
    When i run the report GRAPHICS_IGS_ADMIN i am getting a blank screen.
    This is in the case of production server.
    I am getting the graph when i run report GRAPHICS_IGS_ADMIN in my BW quality server ( with same version IGS 640.2 os windows 2003 32 bit).
    I have followed the below stpes for re-constructionin BW prod:
    Followed the Snote 458731
    1. Checked the Rfc destination 'GFW_ITS_RFC_DEST' amd 'IGS_RFC_DEST'
    2. I can see the monitoring page when i run http://IGSHOST:LISTENERHTTPPORT
    3. Program id and gateway is properly maintained
    4. It is not generating any dumps when i set the dump status to  "dump_on"
    but in BW quality - dump file is getting generated
    I can't switch on trace because it requires resatrt of teh server which is not possible in production.
    I can see service called SAP IGS in BW qualitybut it is missing BW production.
    Apart from that evrything looks similar in both quality and production server.
    Can anyone advice me on how to fix this issue.
    Appreciate your response.
    Thanks in advance.
    Vadi

    Check the following Note : 454042
    In rz20 you can find the IGS as the Internet Graphics Server in the monitor set SAP CCMS Monitors for Optional Components.
    When you double-click on this entry a hierarchy with performance values should be displayed. If no hierarchy is displayed, even though the IGS is running, call transaction se38 and execute the program graphics_igs_admin. Choose Environment  ® Switch on CCMS to activate the IGS display in rz20.

Maybe you are looking for

  • Crystal Reports XII and Dynamic Images

    From an ASP.NET 2.0 web page I am executing a Crystal Reports that creates a photo album(actually a student directory) of from several dozen images to about 700.  The images are pkulled from a file system directory. The problem I am having is that fr

  • Applescript flow disrupted in Mountain Lion

    Has anyone else had problems with AppleScript in Mountain Lion? I have a script with a repeat loop that looks through every sheet in a Numbers document to gather data from the pages.  Previously (in Lion and Snow Leopard) it zipped through the docume

  • Application identity tool error

    I'm getting the following error when I run the appidtool from ant (kodo 3.0.1): kodo.util.FatalUserException: Type "class com.correlat.intranet.news.NewsItem" does not have metadata, does not use application identity, or inherits the identity class f

  • TOPLINK Timestamp Issue

    We have noticed that when TOPLINK is used to insert a datetime into our table, the time entered is always an hour ahead. We are in the EST zone. When we use custom SQL and use SYSDATE to enter or update dates, the datetime is stored at the correct ti

  • 5.1 sound on Envy 17t 3200 3D?

    Before ordering an HP agent said the unit would support 5.1 sound using my existing speakers with 3.5mm mini-plugs for front, center/sub and rear channels.  Now that I have the unit I see only 2 audio in 3.5mm jacks and the driver does not have a 5.1