Use Teststand step comment field in CVI 8.1

Hi,
In the past we used Teststand 2.0. 
We used the comment field of a step to pass variable to CVI.
We used the following code to do this
tsErrChk (TS_SeqContextGetProperty (testData->seqContextCVI, &errorInfo,TS_SeqContextStep, CAVT_OBJHANDLE,&objhStep));
tsErrChk (TS_StepAsPropertyObject (objhStep, &errorInfo, &objhPropertyObject));
tsErrChk (TS_PropertyGetProperty (objhPropertyObject, &errorInfo,TS_PropertyComment, CAVT_CSTRING, &CommentStr));
Now, we use Teststand 4.2. In Teststand 4.2 the argumentlist of a function has changed. So this code does not work.
How can i read the comment field from a teststep in Teststand 4.2 into CVI 8.1 ?
How can i get the name from the used seq file in CVI 8.1 >
Thanks in advance
Tonnie

Hi
I have added the seqContextCVI object to the argumentlist of my function
void __declspec(dllexport) Meet(double *measurement, char reportText[1024], short *errorOccurred, long *errorCode, char errorMsg[1024], CAObjHandle seqContextCVI)
    int error = 0,State=0;
    ErrMsg errMsg = {'\0'};
    ERRORINFO errorInfo;
    static CAObjHandle objhPropertyObject, objhStep;
    static char *CommentStr1,*CommentStr2;
    //First try
    tsErrChk(TS_PropertyGetComment (seqContextCVI, NULL, &CommentStr));
    sscanf (CommentStr1, "State=%i",&State);
    //Second try
    tsErrChk (TS_SeqContextGetProperty (seqContextCVI, &errorInfo,TS_SeqContextStep, CAVT_OBJHANDLE,&objhStep));
    tsErrChk (TS_StepAsPropertyObject (objhStep, &errorInfo, &objhPropertyObject));
    tsErrChk (TS_PropertyGetProperty (objhPropertyObject, &errorInfo,TS_PropertyComment, CAVT_CSTRING, &CommentStr2));
    sscanf (CommentStr2, "State=%i",&State);
    *measurement = testMeasurement;
Error: 
    if (error < 0)
        // *errorOccurred = TRUE;
        // OPTIONALLY SET THE ERROR CODE AND STRING
        // *errorCode = error;
        // strcpy(errorMsg, errMsg);
I treid to read the comment field in 2 different ways
The first way is not working. The second way works fine.
Why is the first way not working
Thanks in advance
Tonnie

Similar Messages

  • IPhoto still won't make web pages using the comments field

    I am someone who makes use of the comments field in iPhoto. I don't edit the title, because I thought it edited the photo file name (perhaps only in earlier iPhoto versions). Unfortunately, the Apple's tools for making a web page from iPhoto '08 seem to still use the title field only and not the comment field. That means that I have to edit all titles (to blank or a proper title) if I just want to show an annotation on just a few photos in a web page. At least the comments field defaults to blank, so I normally use it, along with the Better HTML plugin to make web pages, http://www.geeksrus.com/software/betterhtmlexport/
    Now, the web pages produced by Apple are now as good as and even better than the BHTML templates, and I'd like to use them. But this problem with the comments means I can't quickly convert my old photo albums to something that makes nice web pages using my annotations with the iPhoto tools.
    Does anybody know of any solutions to this problem? E.g. a script to copy the comments field to the title field?

    I know what you mean. I can't believe that after so many versions of iPhoto that have supported publishing of some sort that such a basic and obvious feature still hasn't been implemented. It can't take that much effort to add. I'd rather have that than the new (and IMHO completely useless) "Events" feature. Speaking of which, does anyone know if there is a way to turn it off? It's annoying the heck outta me. I hate it.

  • Read versions of comments field using javascript client object model

    Hi,
     Does someone knows how to Read versions  of comments field in 'tasks' list using javascript client object model?
    Thanks
    Manvir

    Hi,
    According to your description, I know you want to read versions of comments field.
    We can use the
    SPServices to achieve it. The below code for your reference:
    $().SPServices({
    operation: "GetVersionCollection",
    async: false,
    strlistID: "tester",
    strlistItemID: 1,
    strFieldName: "comments",
    completefunc: function (xData, Status) {
    $(xData.responseText).find("Version").each(function(i) {
    console.log("Name: " + $(this).attr("Information") + " Modified: " + $(this).attr("Modified"));
    More information:
    http://spservices.codeplex.com/releases/view/81401
    Best Regards,
    Dennis Guo

  • Crash in application by using TestStand 4.0 and CVI labWindows 8.01

    Our application often crashes in two areas:
    1) Often crash in the case:
        During running, if there is poop, like error message, you want to debug by opening other programs,like notepad. 
        It shows error signature:
        AppName: operator Interface.exe     AppVer. 4.0.0.326, ModName  cvirte.dll
        ModVer: 8.1.0.271         Offset : 000b9c8a
    2) Often crash at the end of test, when generating TSV file.
         AppName: operator Interface.exe     AppVer. 4.0.0.326, ModName  msvcr80.dll
        ModVer: 8.0.40727.762         Offset : 00008a8c
    We use TestStand 4.0 and CVI LabWindows 8.01. The program is running in our customized operator interface.
    But I tried using the default TestStand operator interface, it crashed too.
    Also we found it is related PC too. One PC in our lab crashed often, but it actually newer PC with bigger RAM. (Pentium(R) 4 CPU 3.2GHz), 3.19GHz, 0.99 GB of RAM)
    The one crashed Less often is Pentium(R) 4 CPU 2.80GHz, 2.79 GHZ 504 MB of RAM.
    Hope you can help us to find out root cause.
    Thanks 

    Hi Doug,
    Thanks for your reply.
    Answers to your queries:
    1. We are not calling any DLLs from our sequences.
    2. We are only using LabVIEW modules and the VIs are called under LabVIEW development environment and not using Run Time engine.
    3.  In our case it is always seqedit.exe which crashes. LabVIEW never crashed. Hence I think its TestStand whose memory is getting corrupted.
    We  are trying to narrow down the issue as suggested by you.
    By the time, we have observed a strange thing while the sequence editor crashed.
    In our sequence we call a thread which calls a VI to run continuously and collect the data from other modules.
    What we observed is that, when the sequence editor crashed (the popup appeared), it was still executing the sequence (running a loop). I was able to break the execution and debug it. All the variables were also having proper values.
    But the VI which was running in a separate thread was in surprising state. That VI was showing as executing but actually it was not running any of its code. I tried to put probes inside that VI but they were not updated (meaning that part of code was not runnning). I tried to stop the VI using the abort button but no help. It was not having any effect. I also clicked on the Pause button. The button turned red but the VI didn't halt at any part of code (actually the VI was not at all executing). An other VI which was called by another thread was working properly. I could see it by putting probes in that VI.
    If your thought about the memory corruption is correct, is it possible that this VI is somehow corrupting the sequence editor memory?
    I am not sure, but I think wherever the sequence execution may be, but the above mentioned VI is always in this state at the time of crash.
    I tried to reproduce this scenario locally but it ran without problem for hours
    Probably I am still not able to properly reproduce it. I'll work on it further and let you know the outcome.
    Regarding your last question, We are using LabVIEW notifier. A VI is called which waits on LabVIEW notifier from another VI. That code is pretty simple it just obtains a notifier and waits on it indefinitely.
    Please let me know your views on the above mentioned issue.
    Thanks,
    - Kaustubh

  • What is a good use of "Comments Field" in "Document Inspector"?

    Can anayone give me good examples of what is a good use for thsi field? Thanks.

    Hi KT,
    Here is an answer to my question which I thought I share.
    The "Comments" field in the "Document" Inspector is only for us (the authors). Whatever you put here is for you and won't show up in the actual iBook nor in the iTunes. It is just a place to make notes to yourself!
    Best
    Mojdeh

  • Creating LabVIEW module adapter TestStand Steps using the API without loading module prototype???

    Is it possible to programatically create a TestStand step (using the API), that calls a LabVIEW module, without loading the prototype of the module to get a reference to the Module Parameters.
    I want to specify a VI Pathname, but I dont want to use that pathname to load the prototype.  I want to programatically specify the name, type, representation etc. of each of the controls and indicators.
    My reason for attempting this is that I only want the VIs called by the steps to exist on the target hardware not on the numerous development machines running my application.
    Any thoughts greatly appreciated.
    Steve  
    https://decibel.ni.com/content/blogs/DailyCLAD

    Hi Steve,
    Unfortunatly it is not possible to do what you want within Test Stand but I am not sure why it is necessary, I think I am understanding your application incorrectly.  The only time you will need to load the prototype is if you are creating the step but if you are creating the step you will need the VI that the step calls so that VI will need to be present on the system.  If you are not calling the step then you shouldn't need to load the VI prototype.  If this is how you program funtions it may be a problem with your architecture but if not please could you correct my misunderstanding so that I can go about finding a suitable solution.
    Regards,
    Tom
    Applications Engineer
    National Instruments UK & Ireland

  • Use of APP USER in comments field

    Hi ,
    I have a form which is used to update xyz details. The same record can be updated by multiple users and it goes into a field called comments. How do I capture all the users and the comments and display it. I tried using APP_USER but does not seem to work. kindly assist. Am a beginner.
    Regards,
    Anitha

    Hi Loga,
    Please find the details below for the "COMMENTS" field. Item Name "P2_COMMENTS"
    Mention Apex version : Application Express 4.1.0.00.32
    Region Template : Form Region
    Item type : Textarea
    Scenario: I have a record say D12345GC10 and User X is inserting a comment " Testing 1" as of 30-May-2012. When the record is displayed the output should look like
    [Updated by X : Testing 1 on 30-May-2012]
    Let us now say the same record is been taken for updating[Update form] this time by User Y and inserts a comment "Testing 2". When the record is displayed the output should look like
    Updated by Y: Testing 2 on 31-May-2012
    Updated by X : Testing 1 on 30-May-2012
    So as you see multiple users can update same record and I need to be able to capture all the comments by all the users.
    Regards,
    Anita
    Edited by: user773506 on May 30, 2012 6:21 AM
    Edited by: user773506 on May 30, 2012 6:21 AM

  • Using LabView to Programatically Specify the Module of a TestStand Step Problems

    I am writing a LabView App that generates TestStand Sequences.
    When programatically 'specifying the module' of a TestStand Step calling a LabView VI, is it possible to set the values of the parameters passed to the VI by Name?  I am currently creating steps fine, but the only way I can set parameter values is by using the parameters index. 
    It would be really nice if I could reference the parameters by the name specified in the VI rather than the index derived when the VI is created.
    Any ideas?
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

    Hi Steve,
      you've also posted this on the TestStand forum and it's been answered there.
    For anyone else looking for the approach :
    http://forums.ni.com/ni/board/message?board.id=330&message.id=9585
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer

  • Canu00B4t use two step transfer with split valuation ?

    Hi people , i´ve activated split valuation for MaterialX , it has two Valuation types ( Production and Purchase ) . The problem arose when i tried to do a two step transfer between plants ( mov 303 ) and i got the following error msg :
    Use one-step procedure for transfer posting to mat. subj. to valuation
    Message no. M7048
    Diagnosis
    In the receiving plant, the material is subject to split valuation. For this material, a stock transfer cannot be carried out using the two-step procedure.
    Procedure
    Use the one-step procedure (movement type 301) or a stock transfer order for the stock transfer.
    The message is very clear itself , but... i just wonder if there`s actually any way to avoid this, considering that having to create a transfer order for each movement will duplicate work and using a one step transfer won´t be practical. I tried to change the error msg into a warning but couldn´t find it in customizing. Thanks for any comments on this !

    First of all , thanks everyone for the help.
    Csaba Szommer, Kunal ingale  , i read the OSS note and the pdf and indeed everything confirms it´s not possible to do the two step movement. So , i tried the stock transport order and something else appeared here. When creating this type of order , the system first ask for a Supplying Plant , then you can populate the material , quantity and the destination plant. But then it asks for the Valuation Type of the material involved, and it seems this field is Mandatory . Is it possible to make this field on the transport order as optional ? I couldn´t find this field at SPRO-MM-Purchasing-Purchase Order-Define Screen Layout at Document Level .
    I need this field to be optional for the following reason. In my company there´s a relation between two plants , Plant A ( from where products are dispatched to the customer ) and Plant B ( where the material is produced with valuation type "Production" and sometimes is buyed from vendors with valuation type "Purchase" ) . The idea is to run an MRP which will generate the material needs on Plant A considering the Sales Orders. This need will be then transformed (automatically by MRP ) in Stock Transport Orders with Supplying Plant "Plant B" and receiving "Plant A". The problem here is that , at the moment of the transport order creation it´s no possible to know which will be the valuation type of the material that will satisfy the need. I mean , Plant B ( production and buying plant ) will check the list of needs for Plant A and then will decide which material ( with which Valuation Type ) they will provide considering the actual stock levels at the time of the MRP run.
    In a few words, i see the only way to do a two step transfer of a split valuated material is using Stock Transport Orders , is there a way to make the field "Valuation Type" optional ?. The idea would be to choose the Valuation Type of the material at the moment of the Good Issue.  Thanks a lot , once again.
    Edited by: Christian  Len on Jul 7, 2008 3:16 PM

  • How can I make the comments field appear when the operator is debugging a test?

    When a test is being written the comments field is being utilized for information relating to what the test is doing and how to solve certain problems that arise. It is basically a quick place for the technician to look at when they are attempting to debug a board. However it appears when you view the sequence files these are off to the right side of the screen but when running the debug engine and the technician sets a break point then these comments are no longer visible to the user off to the right of the screen. Is there any way to have it include the comment in the data displayed when tracing through a test step by step. The technician can double click on each step but it would be alot mor
    e user friendly and timly if these could be displayed just to the right of the execution flow column.

    Hello John,
    I assume you are talking about the sequence editor. Unfortunately, there is currently no way to view the comments associated with a step inside of the execution display window (i.e during run-time). If you are using the operator interface, then you may extract the comment associated with a step and post a custom UI message that contains this information. The operator interface can then be modified to respond to this UIMessage and update its display accordingly.
    To post a UIMessage with this data, you must first obtain a PropertyObject reference to the step you are trying to extract the comment from. Then use the "Comment" property of the PropertyObject class to obtain the comment value.
    Unfortunately, the Sequence Editor discards all custo
    m UIMessages, and you will have no way of viewing the comment using the above method.
    Hope this helps.

  • Control over Source/Comments field size on Allergens Sensitivities and Additives

    Is there a way for use to expand out the field size of the Source/Comments field in each of these sections??
    thanks,
    David

    Hi David,
    You can expand out the field size or the text size by below steps:
    1, go to \Web\gsm\BaseForms\UserControls\ctlComplianceContainedGrid.ascx, open the file
    2, go to line 102 :  <wcc:DatatableColumn ID="SourceText" Key="SourceText" TranslationID="lblSourceOccuring" Formatter="helper.getTextFormatter()" Editor="Oracle.PlmProcess.Ui.Datatable.CellRepresentation.getTextareaCellEditor(125)"  Parser="string" width="<%# IIF (IsInEditMode(), 478, 502)%>" runat="server"  />
    3, change theCellRepresentation.getTextareaCellEditor or the width of the field, save the file, refresh your open page or create a new page, then this field will change to the newly configured size
    Notes: the maxinum text supported is 4000 character
    hope this helps.
    Thanks,
    Jessie

  • Reporting mechanism on HTML report file, using TestStand 2012 SP1

    Hi,
    I am using TestStand 2012 SP1, where the reporting mechanism is configured to be in HTML format.
    I am not getting the full report of the sequence file which is executed, however I get a part of it printed on the HTML file.
    The following are the configured "Report options",
    ===========
    Contents Tab:
    ===========
    Report Format : HTML Document
    Default Numeric Format : %$.13f
    Include Step Result: Checked
                  Result Filtering Expression : Result.Status=="Failed"
                  Include Test Limits : Checked
                  Include Measurements : Checked
                  Include Arrays : Insert Table
                  Filter : Include All
    Include Execution Times : Checked
    On-The-Fly Rporting and Only Display Latest Results : Checked
    Select a Report Generator for producing the Report Body : DLL
    ===========
    Report File Pathname Tab:
    ===========
    Generate Report File Path : Checked
           File Name/Directory Options : Specify Report File Path by Expression
           Report File Path (Sequential Model) :
                            StationGlobals.TopLevelReportPath
                            +RunState.ProcessModelClient.AsPropertyObjectFile.​DisplayName+"Report_[<FileDate>]<Unique>.<FileExte​nsion>"
    Please let me know a solution to this problem.
    Thanks,
    Dharani

    Jason,
    Thankyou for replying.
    Yes, I need only the steps which had failed to print on the report file.
    The problem what I am facing is, if there are 10 failed steps, the report is not printed for all.
    Also the order of printing is not correct for the first step and the last step which is printed on the report file.
    I had used "Post Expression" for printing data for all the failed steps. Normally these post expressions should be printed beneath the step in the report file.
    However,
    1) For the first step which is printed on the html file, the post expression gets printed just above the step and also it gets printed beneath the step.
    2) For the last step which is printed on the html file, the post expression is not printed beneath the step.
    Please let me know if i need to provide some more information.
    Thanks,
    Dharani

  • NI 5660 Driver DLL Errors when using Teststand 2010 and LabVIEW Run-Time Engine 2010

    This problem seems similar to the post "Resource not found error in executable on developmen​t machine." but I didn't want to repost under that thread because I only happened upon it by chance and none of my searches brought me there... so I made a more descriptive Subject.
    I am working on a system that uses a PXI Chassis with a NI 5600 Downconverter and a NI 5620 high speed digitizer, among other PXI Cards. 
    I inherited working code written in LabVIEW 2010, running with the LabVIEW Run-Time Engine 2010.  The code was using a custom executive and my task was to rewrite the test using TestStand 2010.  I reused the majority of the old code.  The old code used NI-5660 to control the 5600 and 5620.  When I run my sequence using the LV Development System and TestStand, it runs without any issues.  When I change the adapter over to LabVIEW Run-Time Engine 2010, all of my NI5660 VIs become broken due to DLL issues.  It warns that the nipxi5600u​.dll was not initialized correctly.  Many of the errors are associated with the NI Tuner and NI Scope. After this LabVIEW will crash randomly, and the seqeunce will not work in TestStand even when back with the LV Development Adapter.  The only way to recover after this is to restart the computer - TestStand automatically reverts back to the development system, the VIs are no longer broken and the sequence works again. 
    I have all of my VIs associated with a project. After reading a little bit about DLLs and TestStand, I found all of the DLLs in the dependencies section of my project and added them to my TestStand workspace.  I also used Dependency Walker to track down the problems with the nipxi5600u​.dll, the 2 DLL files that it said were not found already existed in the same folder as the original DLL (C:\Windows\System32).  I have also performed a Mass Compile to make sure everything was running in LV 2010.  If I skip the steps involving the 5660, my entire sequence runs fine. 
    The previous code was running with the LabVIEW Run-Time Engine without any issues.  Is there just a step I am missing?  Has anyone seen anything like this before?  I can send screenshots of errors to provide more detail if necessary. 

    I have tried some more things and still can't get it to work.  I have added the VIs mentioned in the Notes On Creating Modulation Executables KB both to the TestStand workspace and the LabVIEW project holding all of my VIs.  This did not change the results. 
    When I try to run my sequence, The first error I get is shown in Error 1445.bmp.  This happens when I try to use the NI 5660 initialize.vi.  If I click ignore, the next error I see is shown in Error -20551.bmp.  When I try to open the VI to look at it, I get the 2 DLL errors shown in Error loading nipxi5600u.bmp and Error loading nidaq32.bmp.  When I close TestStand, I get the error LabVIEW Fatal Error.bmp. 
    Attachments:
    Error1445.JPG ‏164 KB
    Error -20551.JPG ‏174 KB
    Error loading nipxi5600u.JPG ‏9 KB

  • How to read the comment field of the Leave of absence Workflow.

    Hi,
    I have attached a custom Workflow template  to the
    Standard class "CL_HRASR00_WF_PROCESS_OBJECT" and  event "TRIGGERED" for my Personal leave of absence approval.
    During the Workflow step, once the approval goes to the final approval step and it is there in the Benifit Administrator's inbox (Portal) for approval, the Benift Admin is having an option of Withdrawing the process(Withdraw Process button). After filling the comments field, once he clicks this withdraw button the standard class "CL_HRASR00_WF_PROCESS_OBJECT" event "WITHDRAWN" gets triggered and it calls a separate workflow.
    I need to capture this comment in the new Workflow but not able to do the same.
    Can anyone let me know how can I do this. The event container does have any parameter to pass this value to the workflow container. And since the Step_Object GUID also changes I am unable to read it in the second workflow.
    Looking for some real help as this has become critical for the project.
    Thanks is andvace.

    Hi All,
    Thanks for your reply Trevor, but I guess you misunderstood my question. What I am not looking for is not the absence data. Basically I need to capture the comments put in by the Benifit administrator in the Leave of absence application form (Personal or Maternity/child care ), incase when he goes for withdrawing the Application submitted by the Employee.
    To elaborate it functionality step by step...
    1. An employee logs on to portal and submits a LOA application with a few mandatory field ( Commencing date,Returning Date, Reason).
      This kicks of a Workflow say WF1 attached to
    ABAP Class- CL_HRASR00_WF_PROCESS_OBJECT,  Event- TRIGGERED.
    2. Then after executing a few tasks to retrive data it goes to the Manager for approval. Once the manager appoves it goes to the Benifit Administrator.
    3. The Benifit Administrator can approve the application or has an option of withdrawing it.
    4. In case the Benifit Administrator goes for Withdrawal, after putting some comments in the form, it triggers the Event-WITHDRAWN of ABAP Class-CL_HRASR00_WF_PROCESS_OBJECT.
    5. This event in turn starts a new Workflow WF2.
    6. In this Workflow WF2 I need to pull in the comments put in by the Benifit Admin.
    How can I pull this comment?

  • Is there a way to simultaneously add text to Comments field for multiple files?

    Is there a way to simultaneously add text to Comments field for multiple files? I know I can use Option+Comman+i to bring up the Inspector window but it doesn't have a Comments field. For example, in iTunes you can select multiple files and change metadata for any field simultaneously and easily yet when it comes to the Comments field in the Finder, this seems to be missing.
    In our production environment, Comments field is important because we place notes about what drive the file originated then when it gets transferred to LTO-6 tape via LTFS, we can quickly trace it in the event we needed to recreate the hard drive. Because tape archiving is linear, we can't store all of the files on the same tape.
    We've tried using Apple's Automator but it too seems to not have a way to batch change text in the Comments field. Any help is appreciated.

    What is "order data"?

Maybe you are looking for