How do I save a running sequence file

Part of my testing requires a large number of variables to be passed to and from the UUT within TestStand. I can store some of these variables in the station globals, but I'd like the option to store others in the sequence files at run time and save them to disk (save the sequence file) at the end of the test. I can create variables in the station globals and commit the globals to disk just fine (LabVIEW vi's using the TestStand API). However, I cannot figure out how to do the same thing with a sequence file. My code is able to create and populate the locals variables with no problem, but I cannot save the running sequence file to disk with the new locals (or file globals) intact (they disappear when the sequence ends.) The reason I want to save the sequence file is to avoid manually entering all these variables into each sequence file locals list.
So, I think the questions are:
How do I make the new locals or file globals a part of the running sequence file?
How do I save the sequence file to disk before it stops running?
I can increment the change count on the file. I have figured out two or three ways to save the file while it's running without errors (although I doubt it's actually doing anything.) I'm using the TestStand API in LabVIEW vi's to pull this off and cannot find the functions I'm looking for.
Sorry if this is rambling, it's kind of hard to describe.

Hi Lars,
The reason that we can't save the local variables created during
runtime is because TestStand creates a runtime copy of the variables
when the sequence starts. After the sequence is finished executing,
this copy is discarded. The reason behind this is that TestStand allows
for a single sequence to have multiple executions at the same time, and
each instance gets its own runtime copy of the local variables. If new
locals could be saved to the actual sequence file in memory, it could
cause major problems for other execution threads of that particular
.seq file.
You can use the API to add variables to the actual file using
GetSequenceFileEx and incrementing the Change Count, or create a
separate sequence that modifies another sequence file, but adding these
locals to the sequence file from itself isn't possible.
Hope this helps Lars,
Have a good one.
Dan Weiland
Applications Engineer
National Instruments
www.ni.com/support
Dan Weiland

Similar Messages

  • How to get the loaded client sequence file path/name?

    I added a step in Process model, and wanted to get currently loaded client sequence file name/path. I used the variable of "SequenceFile.Path" but then I realized what I would get is the process model file path, not loaded client sequence file path/name. How can I get loaded client sequence file path/name?
    Thanks!
    Jacky

    I dont understand what you are trying to achieve.  Can you provide more information.
    If you are trying to dynamically load and run a client sequence file at run time you need to make a couple of calls to the TS API from inside the process model, Engine.GetSequenceFileEx to get a reference to your sequence identified by its pathname, and then Execution.ClientFile to tell the process model which sequence you want to run.
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

  • How can I sav an emailed .mov file to my iPad?

    How can I sav an emailed .mov file to my iPad?

    Yes there is, if you hold down the attachment widget in the email once the video is downloaded, it will give you a series of options to save it to, including camera roll. 
    Hope this solves your question. 
    Cheers,
    Allen

  • How do I save a word pdf file to png file for up load onto FB

    how do I save a word pdf file to png file for up load onto FB

    What is a Word PDF file? There are Word files and there are PDF files. What does your question have to do with Boot Camp, the subject of this discussion group?

  • How do I save an Illustrator CS4 file as a CS2 file?

    How do I save an Illustrator CS4 file as a CS2 file?

    http://forums.adobe.com/message/3028501#3028501
    http://forums.adobe.com/message/1275606#1275606

  • How do I save an illustrator cc file to open in cs6?

    How do I save an illustrator cc file to open in cs6?  I get an error when I send the file to a colleague and they cant open it.
    It doesnt give me any options.

    It should give you many options.
    Save it to CS6 format.
    If you cannot do that, provide more details.

  • How can I save a Motion 5 file as a video?

    How can I save a Motion 5 file as a video? I want to use it in an iMovie Project.

    Everything about using Motion, including exporting a video (and much more), is available either in the application or online:
    Help Menu> Motion 5 Help: see the Share Motion Projects chapter.
    The manual can also be found online here: http://www.apple.com/support/motion/
    Finally there is also this link to the manual: http://help.apple.com/motion/mac/5.1/

  • How do I save individual edited MTS files in CS6

    how do I save individual edited MTS files in CS6

    Set the work area on the timeline to the limits of the clip that you want to export.  Then File>Export>Media. 
    You need to consider what the exported file is intended for, so you can determine a suitable format and preset for the export.

  • How do I save my Photoshop CC file down to CS5?

    How do I save my Photoshop CC file down to CS5?

    Please refer following Adobe official blog on the subject.
    http://blogs.adobe.com/jnack/2013/05/can-you-open-a-photoshop-cc-file-in-cs6.html
    Hope this help.

  • How do you save a jepeg scanned file to email it?

    I scanned a document and the mac saved it as a jpeg file in photosmart utility (colorsync utility?).  I could not email it as an attachment,  and I could not save it as a different type of file.  I could not copy the file to paste it as a word document.  How do you save a jpeg scanned file to email it?

    I scanned the document on an hp injet printer and it was all automatically done by the laptop.  I didn't use image capture, that I know of.  I don't know what that is, or how to utilize it to scan the pages.  I scanned about 10 pages and they went into a folder called scanner output.  I was able to attach that to the email, but then the email could not be sent.  The email tries to send it, then after about 7-8 minutes I get a message that says:
    "Sending the message content to the server failed.
      Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be delivered."

  • Email attachments: whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    Is this a particular sender, or all of your attchments?  Google winmail.dat and you will see a number of returns that can explain this, but in short, this is the way some e mail providers deal with attachments.  If all of your e mail is coming that way, you need to change a setting on your isp set up.  Perhaps stary here...
    http://www.nytimes.com/2010/11/25/technology/personaltech/25askk.html

  • HT4623 How can I save the update download file as I have several devises to upgrade and cant afford the bandwidth to do each via iTunes

    How can I save the update download file as I have several devises to upgrade and cant afford the bandwidth to do each via iTunes.
    There does not appeare to be any doenloadable files in the download section.

    "Well that's totally unacceptable."
    Actually you can only accept it, as it is the way it is.  You may not like it, but it is so.  Sorry.
    " your seriously telling me that Apple expect me to download the same huge file 8 TIMES"
    That is exactly what I am telling you.
    " No way."
    Still true.
    "Apple are going to have to come up with another solution."
    No.  They do not have to do any such thing.  They may choose to do so in the future, but there is no reason to believe that they will.

  • QuickView (run in backgroud) - How to auto save data to local file

    I am using Quickview to extract data. I want to run the Quickview query in background and auto save the data extracted into local file (ASCII file). Currently when I specify File Store (as my Output Format) and enter a file name (e.g C:\Temp\test.asc). Upon completion of extraction there is a little window popup that need me to select data format (e.g DAT, ASC) and click <Transfer> button to proceed to save data into local file.
    Is there a way that I can save data into local file without have to manually select ASC data format and click <Transfer> button. I will not be  able to schedule my QuickView query to run in background if I can't resolve this problem.
    Note that I don't have access to ABAP programming, therefore this option is out.
    Thanks in advance to anybody who can share your expertise experience.

    Tyr Fm's
    1. WS_UPLOAD
    2. GUI_UPLOAD
    But using gui_upload and ws_upload can only upload data from txt.
    actualy we have software to convert pdf to text file it freely availabe in internet...
    after conversion you can use thesr fms.
    plzz reward points usefull
    Cheers,
    Chandru

  • How to launch a specific TestStand sequence file from command line?

    I've written a TestStand sequence file launching other sequence files.
    When I launch it via the TestStand GUI, it works well.
    Now, I would like to launch it via command line. Could you indicate me how to proceed?

    Hi,
    I think this link can help you:
    How to Run a Sequence File When Opened from Windows Explorer
    http://digital.ni.com/public.nsf/websearch/146D372C1F807E6D862567E7004881AB?OpenDocument
    regards,
    Alexandre D
    NIF

  • 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