Added a check to Text to sequence file result in Test Stand hang up.

I added the check in text to sequence file translator.vi (the file is attached)
With this addition I generated the dll.
Test Stand load the sequence file without any problem for the first time.
If I add a space to the sequence file and save the file; test stand tries to load the new sequence file saying file has changed do you want to load the new sequence...
But fails to load the sequence (Test Stand hangs up)
The only way to overcome is kill the TestStand thru task manager.
Which displays
"You chose to end the nonresponsive program, SeqEdit.exe"
Attached the displayed error (error.doc)
Attachments:
Changed code.vi ‏55 KB
Error1.doc ‏45 KB

Hi Vidula,
Is it only when you add a space to the file name that you see this behavior? If, for instance, you add a '1' to the beginging of the file name does the same thing happen?
Adam
National Instruments
Applications Engineer

Similar Messages

  • Can I open the (.squ) sequence files using NI test stand 4.0 version?

    I have the sequence files created using ATETool Kit test Executive. But I have NI 4.0 test stand. I want to open the sequence files using NI 4.0 test stand. Can i do that?

    Hi,
    I am not familiar with ATETool kit Test Executive, but I doubt NI TestStand will open this. As you have both, have you tried it?
    TestStand does have a conversion tool for converting NI TestExecutive sequence files into TestStand sequence files.
    Maybe you could write a conversion tool to make the conversion for you if you have many ATETool kit Test Executive files.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to add process model results to the sequence file results?

    After my sequence file runs, I would like to add some additional results using the process model. I need to log my equipment list which is obtained by the process model. Alternatively, I could add a sub-sequence to the end of each of my sequence files for doing this, but that would create maintenance problems if I ever needed to change the way equipment is logged. Does anyone know a way to (1) append process model results to the sequence file results or (2) force each client sequence file to call a sub-sequence before returning to the process model.

    Mark -
    The report and database process model routines expect a single subsequence step result that invoked MainSequence. This result contains the results from the sequence call.
    In TestStand after the process model root sequence call to MainSequence is performed, the property Locals.ResultList[0] is the MainSequence result. The subproperty Locals.ResultList[0].TS.SequenceCall.ResultList contains the results from the steps in MainSequence.
    One option is to create a subsequence call in the process model that logs the equipment info in the results for its steps. The call to the subsequence should not be checked to record results.
    This subsequence would have a parameter called ResultList. The Result type does not exist in the Insert menu, so you can only create the parameter by copying the empty Locals.ResultList and pasting it in the parameters. Then change its type from By Value to By Reference.
    In the setup of the subsequence, add the following steps which do not record results. These steps rename the Locals.ResultList parameter to ResultListOrig, and then create a new Locals.ResultList alias property that really references Parameters.ResultList. This way any additions to the Locals.ResultList really append to the Parameter.ResultList.
    Setup
    Step: "Rename Locals.ResultList"
    StepType, Adapter: Action, Active-X
    Description:
    Action, Set PropertyObject.Name = "ResultListORIG"
    Record Results: False
    Step: "Create Alias in Locals"
    StepType, Adapter: Actioin, Active-X
    Description:
    Action, Call PropertyObject.SetPropertyObject ("ResultList",
    0x201 ' Not Owning and Create, Parameters.ResultList)
    Record Results: False
    In the Main steps, you add your equipment info steps which record results.
    In the Cleanup steps you undo the steps performed in Setup.
    Cleanup
    Step: "Delete Alias in Locals"
    StepType, Adapter: Action, Active-X
    Description:
    Action, Call PropertyObject.DeleteSubProperty ("ResultList",
    0x400 ' Refer to Alias)
    Record Results: False
    Step: "Rename Locals.ResultListORIG"
    StepType, Adapter: Action, Active-X
    Description:
    Action, Set PropertyObject.Name = "ResultList"
    Record Results: False
    I have attached a TS 2.0 version of SequentialModel.Seq that has a AppendResults subsequence in it and this is invoked after MainSequence in Single Pass entry point.
    Hope this helps...
    Scott Richardson (NI)
    Scott Richardson
    National Instruments
    Attachments:
    SequentialModel.Seq ‏174 KB

  • Adding a line (String text) to a file ,only if it is not present in the

    Please tell me the java code to add a String line to a file.
    The condition is the string to be added should not be present in the file
    Thanks in advance

    Hi ,
    The one simple solution is you can read the file in a string.
    The check the string you want to insert in the string so formed.
    By using
    int if((str.indexOf("String to be inserted"))!=-1)
    //Insert in the file
    else
    //dont Insert in the file
    Thanks & Regards
    Pradeep

  • Help:set up simple test sequence, operator selects particular test then teststand links to part of sequence file and performs test

    Hi,
    I am extremely new to TestStand, please see question below and offer advice.
    I want to set up a simple test sequence.
    I want a message to popup on screen that asks the operator which unit of 6(max 10) Units to test(i.e. there are say 6-10 box's to select from).
    Then the sequence goes to the particular part of the sequence and performs the test on which ever unit was selected.
    What is the best way to do this?
    Could i use message popups to do this?and if so what do i need to do link it to the correct part of the sequence file?
    Do message popups only allow 6 options to select from?
    Thanks,
    Solved!
    Go to Solution.

    Hi,
       You can do using message popup method. You can ask the user which unit want to execute by inserting message in message expression in message popup step settings.Something like below
    "Enter unit number to execute 
     1.  Unit1
     2.  Unit 2
     10. Unit 10"
    then check "Enable response text box" from options tab in step settings.When user enters unit number you can get the user entered value by inserting the below statement in post expression of message popup step settings
        Locals.String = Step.Result.Response 
        Note : String is a local variable to be defined.
    Convert that string in to number and send that output to switch expression there by you can use a sequence call step to call sequence whichever to be executed. (I hope your each unit will be seperate sequence file)
    I hope these resolves your problem. If you don't understand let me know so that I can develop a small example and send it to.
    Cheers,
    krishna 

  • Charger un sous-VI LabView dans une séquence TestStand d'après un fichier texte *.lvtf (Sequence File Translator)

    Bonjour,
    J'utilise un fichier texte *.LVTF  (semblable à celui présent dans les exemples TestStand) afin de lancer automatiquement mes séquences dans TestStand en le chargeant.
    Cependant, je n'arrive pas à trouver la ligne de code pour appeler un VI LabVIEW.
    Quelle est le "Step Type" que je dois entrer dans le fichier texte pour que TestStand l'exécute...
         Je rentre pour le moment :
         Multi,Action,E1:number=2,E2:number=3,S1:number=S1
         (nom, type, param1, param2, param3)
    Je vous joins ci-après un impr. écran de l'éditeur de séquence que j'aimerais avoir.
    Merci,
    Cordialement,
    Pièces jointes :
    TestStand.png ‏134 KB

    Bonjour Rodéric,
    Le nom du VI n'a à priori aucun effet sur le chargement de la séquence.
    En fait, TestStand ne reconnait pas le StepType : c'est-à-dire ici "Action"... Lorsque j'essaie de charger le fichier *.lvtf via TestStand, j'ai un message d'erreur qui s'affiche (voir fichier joint).
    J'ai pourtant rajouté une condition au sous-VI "TextCreateStep" où j'ai inséré le module "LVAdapterKeyName" mais cela ne change rien à mon problème !
    Je t'ai mis les impressions d'écran ci-après.
    Cordialement,
    Pièces jointes :
    TextCreateStep.png ‏130 KB
    error.png ‏17 KB

  • How to apply Property Loader to all sequences in the Sequence File?

    HI,
    I'm following the help instructions for the Property Loader and it states....
    Use Current Sequence File—Selects the file where the step is located.
    Sequence—Specifies the name of the sequence into which to import variables and properties. The specified sequence must exist in the specified sequence file. Select the <ALL SEQUENCES> tag from the drop-down list to instruct TestStand to import variables and properties for all of the sequences in the specified sequence file. You must specify a valid sequence name for the step to work properly.
    In my specific sequence file I added the Callbacks:  SequenceFileLoad, SequenceFileUnload, PreUUT. In addition to that, my MainSequence is calling 2 subsequences.
    I put the propertyLoader step (setting few values of the SequenceFileGlobals) in the setup section of the SequenceFileLoad, checked the 'Use Current Sequence File' and selected ALL SEQUENCES tag in the 'Sequence' option.  I verified that it does what I wanted.  Then, is it entered the PreUUT subsequnce, the values returned to the "original" values.
    Is that a bug?
    If not, how do I use the PropertyLoader in a sequenceFile that include several subsequences as well as Callback sequences.
    Thanks
    Rafi

    Ooops, sorry about that...
    I forgot to mention....it is TS 3.5.
    As per your questions-- yes they all in the same sequence file. 
         mySeqFile.seq
               SequenceFileLoad
               SdequnceFileUnload
               PreUUT
               Seq1
               Seq2
    AS I said....I put the property loader in the setup of the SequenceFileLoad,  I see that it works properly in that subsequence.  Then, after the SuequenceFileLoad is finished, I do Ctl+F5 for Test UUT's.  I put a breakpoint in the first step of the preUUT subsequence and check the context.  I notice that the variables in the FileGlobals to whom the property loader writes, have been changed back to the original values.
    I'll try to create a simple program to duplicate it but it may take me time as this test station is very busy.
    Thanks
    Rafi

  • Protecting Sequence Files From Modifications

    I sure others have had to do this in the past.
    What is the best way to protect the sequence file from being modified in the field?
    Even I, with my limited TestStand skills, have gone in with a text editor and changed things in a sequence file.
    We would like to encrypt the sequence file and then have code to convert it back as it is loaded.
    Or is there a better way.
    We are also encrypting the report files on the back end so those can't be altered easily.
    Thanks

    What version of TestStand are you using? According to this version 3.5 has some built-in security features.
    If you don't want to or can't upgrade, there are a few other things I can think of. Are you getting copies of the test results from the CM. At each of the CMs I deal with, we insist on an Internet connection so that the test results are transfered to our local database. If I wanted, I could look at the limits and number of test in the results and compare to a master. I also install VNC on each of the deployed testers. This not only helps to debug when a problem arises, but I can do a simple check sum on the sequence file and compare it to my local copy.

  • How can I restore FileGlobals in a Client Sequence File that is reloaded?

    Hi,
    I'm using TS2.0.1f1 and dynamic client files (search "DynamicClientModel" to see an example) in order to load different test sequences depending on what product should be tested.
    We do something like this,
    newseq = IEngine.GetSequenceFile(...)
    Execution.ClientFile = newseq
    Do testing
    IEngine.ReleaseSequenceFileEx(newseq)
    Goto
    The first time a client sequence file is loaded it will copy the default FileGlobals from RunState.ProcessModelClient.Data.FileGlobalDefaults (TS does this automatically).
    The problem though is that after calling ReleaseSequenceFileEx() the actual sequence isn�t really disposed. Since when we later start over with another prod
    uct that uses the same client sequence file the GetSequenceFile() call returns the same copy that was used before and doesn�t copy the FileGlobals from RunState.ProcessModelClient.Data.FileGlobalDefaults, there by the second time the same sequence file is used, the FileGlobals don�t have there default values.
    So, to get back to the subject, how can I make sure that the second time around the FileGlobals have there default values?
    (Keep in mind that all this is done within the same execution of the processmodel.)
    I�ve included a short demonstration of this in the attached zip file.
    Any help appreciated.
    Cheers,
    Hans
    Attachments:
    TestModelFileGlobals.zip ‏12 KB

    Hi Scott,
    Thanks for the answer, I had been thinking about option nr 1 in particular but that would require more changes than I'm prepared to do right now.
    I tried option nr 2, but instead of adding that line to the client sequence file I made the copy operation in the process model like this.
    Execution.ClientFile = Locals.ClientSeq
    Locals.ClientFileGlobalsRef = Execution.GetFileGlobals(Locals.ClientSeq)
    Locals.SerializedCopy = ""
    [RunState.ProcessModelClient.Data.FileGlobalDefaults] PropertyObject.Serialize(Locals.SerializedCopy, "Test", 0)
    [Locals.ClientFileGlobalsRef] PropertyObject.Unserialize(Locals.SerializedCopy, "Test", 0)
    This seems to do the trick, although option nr 2 does seem a bit like doing things the way they weren't
    supposed to be done.
    Regarding option nr 1, are there any �Best Practice� documents, guides or examples on how one should best manage Engine and Execution lifetimes? Or to put it differently when to spawn new Executions and or Engines during the span of working with several units of the same product type and/or different product types?
    Cheers,
    Hans

  • Schemas for Different Sequence Files

    I  have a database that is storing my results from Test Stand.  I'm having trouble creating the tables for the 6 different sequel files in the same database.  I tried making a new schema to rename all the tables, but I cant execute a new SQL window to build the tables because all the files I have to open are the text files TestStand supplies which all create the same table names.  Do I have to create all those text files myself to make the tables for a new schema?  As you all can see I am a struggling novice.  Thanks for the help. 

    Hi Roons,
    It appears you must be using a TestStand version prior to 3.0.  TestStand 3.0 and above have a utility to build a .SQL file directly from your schema.  With your version, you still have 2 options:
    1.  You still have the default schema .SQL files in the C:\Program Files\National Instruments\TestStand 2.0.1\Components\NI\Models\TestStandModels\Database directory that you can work against.  You can use these as a template for creating the CREATE TABLE statements for your particular database.
    2.  You could open up your database in TestStand Database Viewer (Click the View Data button of the Data Link tab in Database Options) and can then use the Right Click options to Add the tables and columns you need and, if necessary, drop any tables that you don't need.  If you are not familiar with SQL, this may be easier to do.
    Give either method a shot and please repost with any other questions you have as you go through this process.  Thanks and have a good one.

  • Urgent!!!  checking a text file!

    Hello,
    I have a text file with some info in it.
    How do you cross-reference some text inside the text file with out importing the text file into a String???
    example:
    File myFile = new File(/file.txt);
    // inside myFile contains the text: "the sun is great"how do you check if myFile contains the String "sun" ???
    with out importing all the text in the file?
    -RonX

    DrClap wrote:
    How do you cross-reference some text inside the text file with out importing the text file into a String???That's a pretty weird requirement. So can you tell us why it exists at all?you could use another memory structure :)
    It probably exists because some teacher wants his kiddos to learn to think outside the box, and this kiddo is too incompetent to even notice the box it's in.

  • Adding text to a file (not overwriting it)

    Hello,
    I am trying to have a printwriter just add text to a file instead of have having it rewrite my file.
    Here is the code currently in my code:
    outstr = "ANSWER = " + numbera;
    PrintWriter outscan = new PrintWriter("output.txt");
    outscan.printf(outstr);
    outscan.close();As you guys know, this code just overwrites my file when its run again. But I have researched here in the Java docs, and I found code like this:
    public FileWriter(String fileName, boolean append)
    throws IOExceptionHowever, I get errors when trying to just use this. I have also tried appending, but I can only get it to append chars, I need it to add a string.
    I know I am missing something simple, I just don't know what.
    Thanks for any help!

    Okay, I think this goes at the beginning of my main file:
    public FileWriter(String fileName, boolean append)
    throws IOExceptionI am not sure what (if anything) needs to go after the word public (void, class, static, etc.)
    Then my printwriter might look something like this:
    PrintWriter outscan = new PrintWriter(FileWriter("output.txt", true));
    outscan.printf(outstr);
    outscan.close();So yeah, I am not sure if anything I am doing here is right. I am trying to learn Java with a book plus the Internet and I am a little confused about somethings. :(

  • Sequence File Documentation adding code module inputs/outputs

    Hi there,
    I would like to document my sequence file. I have used the TS tools| Sequence File Documentation which works fine but I would like to add more information like the code module input and outputs.
    I am using LabVIEW code modules.
    How can I access the VI Parameter table: parameter name, type, in/out and value and then add them to docgen_txt.seq ?
    Any suggestion would be much appreciated.
    Thanks in advance..
    Marken

    Hi Marken
    In this thread there is an example how to create a LV-Module dyamically. Accessing the LV-Parametertable is a sub topic there.
    http://forums.ni.com/t5/NI-TestStand/Create-a-LabVIEW-Step-dynamically/m-p/977348#M25792
    Hope this helps,
    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=

  • How do I make Step Types in the Type palette be "master" versions which all sequence files on a particular should use? (since this only seems to "half work")

    The situation I would like is to have a library of step types which sequence developers can use. Therefore if new step types need to be added, or existing ones modified - all that needs to be done is to roll out a new MyTypes.ini (for example), and the code modules/substeps.
    Scenarios:
    If I create types in MyTypes.ini (make sure "Attach to this file" is checked, so they get saved here). I can then create a sequence file using these step types. No problem so far.
    I can open the type palette, modify the step properties, and save. When I go back to my sequence file an asterisk appears (saying it needs to be saved, even if I have opened it from scratch). The properties have been updated to reflect what is in the Type Palette. Still no problem (Type versions are the same in the sequence file and type palette).
    This is where the problem appears:
    If I change a step type (in the Type Palette) from using a code module to using a Post-Step substep instead (changing the module adaptor to "None") - any instances do NOT update when you open sequence files. (The same happens vice versa also).
    Please note that the "Type version" listed in the sequence file DOES match that listed in the Type Palette - the properties are the same but the manner in which the code modules are called is DIFFERENT! This then can lead to to runtime errors if the old code module has been deleted for example.
    The only way around this is to open EVERY sequence file that contains an instance of the step type, and make sure that you have "Apply changes to all loaded instances of this type" checked in the step type properties dialog. This is is not a good solution since files could be missed, and is very time consuming if you have hundreds of sequence files!
    What I need is that the Type Palette on any particular station contains the MASTER copies of each type. These are loaded whenever a sequence file is loaded and NOT retreived from the sequence file. As discussed above this seems to work when you modify properties - but doesnt work fine if you change the way in which code modules are called.
    Am I doing something wrong or is this a limitation?

    I had a system recently containing seven sequence files, approx 20 subsequences in each, and around 10-20 steps in each sub-sequence. Every step (except for the NI non-code module types) was an instance of a step type.
    Each one of these steps had an Edit sub-step and a code module called through the code module adapter.
    In order to make these into "wrapped up" step types it was decided to move the code module to a Post-Step substep (as also done in the NI-IVI step types) - so that developers cannot fiddle with the code prototype or module.
    In order to do this I had to open all 7 of the sequence files, make the changes and then ensure that "Apply changes in this dialog to a loaded instances" was checked. This seems to sort of work, but some steps started causing Error 17502 (System Error) when you configure them (call the Edit substep). Over the course of the past few months I have had to effectively check every instance of a type to see if it works (deleting the step and replacing it when it doesnt). Other strange things happened like some of the step type instances now have the "None" (adapter) icon associated with them - but both still work.
    The idea of creating a type-def of a step type is a good one, but frustrating that it doesnt seem to fully work. Why should the sequence file also store a version of the step-type - which is what is effectively causing this problem - why not make it so that if you dont have the step types installed in the type palette - TOUGH! Message Edited by RichM on 03-15-2005 06:55 AM

  • How to revert changes made to sequence file dynamicall​y

    Problem synopsis:
    1. TestUUTs entry point of custom process model, which is based on NI SequentialModel is being executed.
    2. PreUUT step of process model set Execution.ClientFile according to serial number, provided by operator.
    3. During sequence execution step module inserts additional steps into running sequence.
    4. After first UUT loop iteration sequence contain all the original steps plus all the steps, which were added dynamically.  This is exactly what I need.
    5. Next UUT loop iteration is executing on updated sequence file. This is what I trying to prevent.
    This design is serving following requirements:
    a) dynamically load test sequence
    b) dynamically add test results.
    So my question is: how to implement this correctly?
    I tried to release sequence file of previous iteration ("Engine.ReleaseSequenceFileEx") but it "SequenceFile.CanUnload==false" and "SequenceFile.IsExecuting==true".
    But this happens during execution of PreUUT of process model. I think, at this point client sequence shall not be executing.
    Steps 2. and 3. (see above) are executed in dll written using MS VC++ 2005.
    TestStand is 3.5.0.725
    Help me please.
    Thanks,
    Misha

    rishi_86 wrote:
    i have created a jTable in netbeans6. The table model is DefaultTableModel.
    i'm not understanding the concept of firecellupdate and other events listeners.
    i want the changes i make to the table during runtime to be written into a Text file.
    any help would be greatly appreciated.you need to add the TableModelListener to your table model.
    for example:
    model.addTableModelListener(new TableModelListener() {
                public void tableChanged(TableModelEvent e) {
                    // TODO Auto-generated method stub               
             });then, you need to put your custom business logic(saving data to a text file, etc) into the tableChanged method.
    From TableModelEvent you can get all information about the model changes.

Maybe you are looking for

  • Creating INDD file from INX and visa versa

    Hi My task is to create a inx file from indd file and that was easy. I just use var myDocument = app.open(File(sourceFileName)); //save INX myDocument.exportFile(ExportFormat.INDESIGN_INTERCHANGE, File(destinationFilePath+".inx")); but my problem is

  • Cannot accept Meeting Request updates on iPhone

    Hi, When I am working at a client's account, I am sending or forwarding important meeting requests to my private mail. Then, when I open that mail account on my iPhone, and open the meeting request mail, I can scroll to the bottom and see a 'mime-att

  • How to use DTD in my XSLT program

    I've got a DTD,i've to code the XML part in XSLT_TOOL but when i use the statement !DOCTYPE doc SYSTEM "c:\doc.dtd" it is throwing me an error and i don't know how to use it also.Can anybody please send me a sample program showing how i can use that

  • Silent AIR application installation fails on AIR 3.9

    I install my AIR application silently using the following command : "/Volumes/Install Test/Install Test.app/Contents/MacOS/Install Test" -silent -location "/Applications/ABC" It worked fine till AIR 3.8. With the new AIR update 3.9, this command fail

  • FingerPrint Utility - OmniPass - Doesn't work with Internet Explorer 7

    OmniPass website password saving/autologin for Internet Explorer 7 Beta 2 doesn't work correctly (it seems microsoft has changed the way their forms work for username and password submission etc) OmniPass loaded slow in the earlier version it actuall