Teststand programmat​ically start a sequence

Hi!
I'd like to create a VI (GUI) which is meant to be a launcher for different teststand sequences.
Is there a way to open teststand (operator GUI) and load a selected sequence file using a VI?
Thanks!
Solved!
Go to Solution.

Start here: <TestStand>\UserInterfaces\Full-Featured\LabVIEW\S​ource Code
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

Similar Messages

  • How to load programmat​ically from CVI the specific sequence file in TestStand 3.1

    I am trying to implement TestStand from Windows/CVI 3.1. I need to insert a specific sequence file in TestStand, with all other sequences unloaded. I used TSUI_ApplicationMgrCloseAllSequenceFiles() and TSUI_ApplicationMgrOpenSequenceFile(), but after Username/Password prompt, the TestStand loaded all the old sequences. How to eliminate this?

    Hello,
    I created a function that calls those two methods. When I made a simple CVI button and in a callback for it, I call my function, it does successfully close all open sequencefiles and then load the one I specified; however, it does not work when I call the function just before the call to RunUserInterface! I am very surprised by this and will be bringing it up with our R&D department. There is a simple work-around. Instead of closing all open sequencefiles at the beginning of the OI, close them at the end instead. I have modified the full-featured OI for you and tagged in the code where I made changes. This should do exactly what you want (you may want to change the code around to make it a little cleaner...I left more in code in than I needed for instructive purposes). Please let me know if you have any questions about this. Take care!
    Regards,
    Aaron B.
    National Instruments
    Attachments:
    TestExec.c ‏55 KB

  • Activating "Check user privileges​" causes TestStand to not start properly.

    Recently we checked the box "Check User Privileges" under Station Options->User Manager.
    Now when we try to start the Teststand Sequence editor it opens but with all functionality grayed out so that no action whatsoever can be taken.
    If we make an attempt to use File-Login no new box appears but the GUI flickers for a millisecond as if a dialog was open and closed at almost the same time.
    If we try to start a sequence file directly from windows explorer it replies with an error message : "Could not open the sequence file(s).... Error code: -18360, User does not have required privilege".
    What has happened and does anyone have any good ideas about how to remedy this?

    Hi GiangV,
    You can change the "Check User Privileges" setting back to the default by modifying the TestExec.ini file, located by default at (C:\ProgramData\National Instruments\TestStand 2010\Cfg)
    With TestStand closed, change the line CheckUserPrivileges = False to CheckUserPrivileges = True
    Also, the login dialog issue can occur if the loginlogout sequence becomes corrupted (this would explain the flickering behavior).  To restore this sequence to its default state, you can do the following:
    Move the FrontendCallbacks.Seq file to a different location (such as my documents), located by default at (for TestStand 2010):
    C:\Program Files\National Instruments\TestStand 2010\Components\Callbacks\FrontEnd\FrontEndCallbac​ks.seq
     Run a repair install of TestStand to recreate the default version of the file
    Hope this helps!
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Programmatically close the current sequence's window

    Is there a way to programmatically close the current sequence’s window in order to reload it if it was modified or to load another sequence (programmatically)?

    Do you want to close it from the UI?  Because I don't think you can do it from the Seq. Editor???? 
    From TestStand Help:
    CloseSequenceFile Method
    Syntax
    ApplicationMgr.CloseSequenceFile ( file)
    Return Value
    Boolean
    Returns whether the sequence file was successfully closed.
    Purpose
    Closes a sequence file.
    Remarks
    The Application Manager control attempts to close the sequence file by generating a QueryCloseSequenceFile event. The QueryCloseSequenceFile event confirms whether to release the file and remove the file from the SequenceFiles collection. If the sequence file is running in an execution or if other references to the sequence file exist, TestStand does not immediately unload the file from memory.
    Parameters
    file As SequenceFile
    [In] Specifies the sequence file to close.
    OpenSequenceFile Method
    Syntax
    ApplicationMgr.OpenSequenceFile ( sequenceFilePath)
    Return Value
    SequenceFile
    Returns the opened sequence file, if successful. If a type conflict occurs when loading the file and the conflict prevents TestStand from opening the file, this method returns NULL. If an error occurs while opening the file, this method throws an exception.
    Purpose
    Opens a sequence file.
    Remarks
    This method adds the sequence file to the SequenceFiles collection and generates the SequenceFileOpened and DisplaySequenceFile events.
    Parameters
    sequenceFilePath As String
    [In] Specifies the path of the sequence file to load. If you do not pass an absolute path, this method searches for the file using the TestStand search paths.
    Hope that helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Archive start from sequence=2...

    Hi All,
    After completion Database (10g) installation on solaris machine , check the sequence number from v$log view as shown below : it display sequence 2 is current and archive is also start from sequence 2.(check this archive files manually from log_archive_dest_1's location.)
    but when we are looking for any recovery scenarios then will it be asking for archive sequence 1?
    select * from v$log;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
    1 1 2 52428800 2 NO CURRENT
    2 1 0 52428800 2 YES UNUSED
    3 1 1 52428800 2 YES INACTIVE
    Can any one suggest me why it's start from sequence 2 as current instead of sequence1?
    Thanks...

    Furthermore, read my earlier reply about the backup : "As you haven't taken any Database Backup yet, the archivelogs that are currently being generated will not be required in a Recovery scenario -- you can't begin Restore+Recovery until you have a Backup to Restore."
    Even if log sequence#1 did get archived, it is meaningless. Any archives created before any database backup are unusable in a Recovery situation. A Recovery can apply archivelogs only from the point when a backup was created. You wouldn't, COULDN'T, have taken a Backup before Log Sequence#1 , so there won't be a need for an archive log of that file.
    The situation when Log Sequence#1 is archived is IF a database, being already in ARCHIVELOG mode, is opened with RESETLOGS , for example, after an Incomplete Recovery. Then, the next archive would be Log Sequence#1 of the Incarnation created by the ResetLogs .

  • Inconsistent behavior in TestStand and TestStand UI for the same sequence file

    Solved!
    Go to Solution.

    I tried both the TopLevelVI and testexec.exe; but both of them were giving the same error. I never tried any other UI than Labview. 
    Because the same sequence was working without any issue on some other system, I uninstalled and reinstalled TestStand 4.0 and same sequence is now working fine, in TestStand, testexec.exe, TopLevelVI – basically everywhere. I am not sure what was wrong with TestStand in my system, but definitely something wasn’t correct. 
    Thank you for all the responses.
    Vidula
    Message Edited by Vidula S. on 08-26-2009 10:28 AM

  • Is there a way to start a Sequence with Task Manager (Windows)

    Hi
    Is there a way to start a Sequence with Task Manager (Windows)?

    Hi,
    That is too bad I can not schedule my action Wizard to run via Windows scheduler... The funney things about is that on the same machine that I have created the Action Wizard and saved to to my desktop via export, when I click on it to run it asks me you want to Import that action to your Acrobat Pro X? Okay or Cancel... That Action is already there in my action Wizard List and I have exported from this same machine and I was trying to see if I can schedule it via this command:
    C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat <C:\Users\Bahram\Desktop\OCRFaxedPDFs.sequ
    Regards,
    Jeff P.

  • Using comport data to start a sequence

    All--
        I'm sure my terminology is bad here so allow me to explain what I want to do. I wish to monitor a com port and when the data stream arrives do things like parse, plot, send to indicators and write the data to a file. I have built a series of cases to do each of the tasks in sequence. I need a nice neat way to start the sequence when the data is finished arriving and then wait for the next data transmission. The data arrives about once per minute. Unfortunately, for now, the data will only come in at 1200 bps, so the transmission takes about 3 seconds. I think an event structure would work but I have no idea how to create/uses dataflow on the comport to start the sequence. Thanks in advance for the help.
    [email protected] (Scott)
    Solved!
    Go to Solution.

    ssmith490D wrote:
    I tried using the timeout on the "Configure Serial Port" vi but it did not work very well. The example uses a property node with the read function. How does this timeout differ from the Config Ser. port" timeout function?? Thanks.
    Scott
     I'm not sure which example you are referring to here or which property node with the read function you are talking about.
    How come you have 60,000 wired to the property node for data bits?  The only valid setting for that are 5-8.  And the only likely settings would be 8 or 7.  I think you have that setting confused with timeout.
    I would recommend opening your serial port and configuring the settings only once during the intialization frame of your state machine.  Close the port only once in a frame that occurs once when you stop the program.  In between, you just carry the VISA reference through the loop by way of shift registers.
    (Actually you should be using a lot more shift registers.  You are relying too heavily on local variables to get data from one state to another.  It could possibly cause problems down the road.)
     Your architecture right now is technically a state machine, but basically just a step above a flat sequence structure.  You can use decisions to determine which code to execute next.  See the attached screenshot.
    Message Edited by Ravens Fan on 11-25-2008 04:53 PM
    Attachments:
    CR23x[1]_BD.png ‏19 KB

  • ICal starts and shuts down

    Hi,
    I have an iCal problem that I did not find an answer to. My iCal starts, shows appointments and tasks and such and then shuts down by itself after 10 - 20 seconds.
    I used 'The Missing Sync' in the past, but uninstalled it, and I recently ran the 10.4.11 update, but iCal did not change behavior.
    The HelveticaNeue font is installed in the correct directory and I am not using a font manager.
    Any suggestions are appreciated.
    ~frostey

    Frostey,
    Welcome to Apple Discussions.
    The first and easiest troubleshooting step involves replacing/refreshing the com.apple.iCal.plist file.
    Quit iCal and find the com.apple.iCal.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. Drag the file to your Desktop, log out/in or restart and check iCal for normal behavior.
    ;~)

  • How do you get alerts for expired events after iCal starts?

    Hello,
    If this has been covered please point me to the right direction because I couldn't find it.
    When I get into work I wan't to be alerted to any events that have happened between me shutting off my computer the night before and starting up my computer for that day. Currently, if I start iCal after the time the alarm is suppose to go off I will never see that event. Is there an option to show these past events when iCal starts?

    I get no menu that comes up when choosing import from device, only a finder level window allowing me to choose where I want to import files from. I did have to unmount, unplug and reinsert the CF card to get the "Import from Mass Storage Device" dialog that is what comes up when a card is inserted after Lightroom is already running and visible.
    The problem I am having is that 'Import from Device' is grayed out when the card is already inserted before I start Lightroom. That is why I could not choose it. Otherwise, if I go about it normally, to insert the card after Lightroom is running, the choice for "Import from Device" is not grayed out, but it doesn't matter then really because that menu comes up automatically after I insert the card.

  • Rig start up sequence

    Hello,
    I'm looking for a way to create a laboratory start-up sequence.I'm using Labview 6i, and using the fieldpoint FP-CTR-502 counter input module. For the purpose of start up we are going to use the 4 discreet output channels on the CTR-502.
    I'd like to know how the to issue the bits I want in a sequence so as to enable various stop buttons, valves and motors on the rig.
    The bit logic should look like this...:
    Discreet Channel No:
    3 2 1 0
    Step 1: 1 1 1 1 Start/Reset (watchdog state?)
    (Stop button shut, control valves shut, heaters shut, DC motor shut)
    Step 2: 1 1 1 0 Enable stop mechanism (powerup)
    Step 3: 1 1 0 0 " " "
    At th
    is point the program should stop and should only be able to continue once the enabled stop button has been manually reset (a FP-AI-110 signal will feedback the signal to the program that the emergency stop mechanism has been reset, thus enabling the sequence to continue).
    Step 4: 1 1 0 1 Enable control valves.
    Step 5: 1 1 0 0 " " "
    Step 6: 1 0 0 0 Enable the three heaters
    Channel 2 bit is the 'master' bit. The heaters controlled by channels 0 and 1 cannot be ON until a 0 is issued to channel 2.
    Program should stop here for adjustment of set point. No feedback required just a click on a 'continue' button, once the required temperature is set.
    Step 7: 1 0 1 1 Heaters not required are shut(channels 0 and 1)
    Step 8: 0 0 0 0 DC motor enabled
    And that's the whole program! I would have thought that a sequence loop would be appropriate.
    Cheers,

    One thing to consider is how you want to address the output channels on the FP-CTR-50X modules. You can individually address each channel by the channel name/number, or you could create a multi-channel item allowing you to address all 4 channels at the same time. If you address all 4 channels simultaneously, there is a little trick to make it work correctly. The 4 output channels are channels 12-15 on the module. Each channel would be represented by a single bit in a 16 digit number with channel 15 (Output Channel 3) being the most significant bit. Thus for step 1, you would write a value of 0xF000 or decimal 61440. Step 4 would be 0xD000 or decimal 53248.
    Regards,
    Aaron

  • Changing Mac name and start-up sequence

    I bought a new Mac Air to replace my work Mac Pro and transferred over my files using Thunderbolt.  Unfortunately it has ported across the old work Mac Pro name, the NetBio and start up sequence which is looking for my old work network before fulling opening - how can I change it.

    AilB wrote:
    ...how can I change it.
    Change what?  Your computer name?  Do that in System Preferences > Sharing > Computer Name

  • How to create programmat​ically a new step type in TestStand (to myTypes.in​i)

    I need to create a new step type to myTypes.ini file programmatically. I have tried to do it with following steps:
    - Get reference to engine
    - Load type palette files
    - creating new step type (engine.NewSteptype() )
    - Inserting new type using TypeUsageList.InsertType method. Problem with this is the first parameter. It excpects it to be in a form of PropertyObject, but engine.NewStepType returns it as a StepType object. If I try to use StepType.AsPropertyObject it returns an error.
    How to convert StepType object to a PropertyObject?

    And here it is in C++:
    TS::IEnginePtr mEngine;
    SAFEARRAY * typeList;
    TS::TypeUsageListPtr typeUseage;
    TS:tepTypePtr stepObj;
    mEngine = engine;
    mEngine->LoadTypePaletteFiles();
    typeList=mEngine->GetTypePaletteFileList();
    TS:ropertyObjectFilePtr *rgelems;
    SafeArrayAccessData(typeList,(void**)&rgelems);
    typeUseage = rgelems[0]->TypeUsageList;
    stepObj=mEngine->NewStepType();
    TS:ropertyObject *property = stepObj->AsPropertyObject();
    property->PutName("TestMe");
    typeUseage->InsertType(property, 0, TS::TypeCategory_StepTypes);
    rgelems[0]->IncChangeCount();
    rgelems[0]->SaveFileIfModified(true);
    SafeArrayUnaccessData(typeList);

  • How to build a TestStand 2012 workspace ( insert a project / insert a folder) programmat​ically using LabVIEW 2012 and the TestStand API.

    Hi everybody!
    I am just trying to find out how to create a TestStand workspace … in LabVIEW using the TestStand API.
    To create a new workspace was quite easy. Unfortunately I am not successful to insert a new or existing project to the workspace.
    Furthermore I have to insert a folder from disk to the new or existing project in the way that I can use an absolute path for the directory …  
    Maybe someone had already solved this problem, in any case  I am thankful for any hint.
    Greetings from Germany,
    Norbert

    Have you find out how to add a folder to a project? I'm looking for this to... I tried WorkspaceObject.NewFolder[Name]whitout success...
    For creating Workspace and project see the newer resolved thread I created.
    Martin

  • How to externally trigger the execution of TestStand with a start and abort button through a digital interface?

    Hello,
    I'm Currently evaluating TestStand as an alternative for an in-house developed Test Sequencer.
    To start our own Test Sequencer we use a small box, connected to a DIO board. The box has a start button and an abort button. The box also has a pass, a fail and a running led.
    The interface with this box is made via some digital lines of a PCI-DIO-96.
    In our own Test Sequencer we have groups named Init, Run, Abort, Exit.
    The Init group is executed at startup (only once). It is used to initialize all the HW and SW. -> I guess this is the Pre UUT Loop callback in TestStand.
    The Exit group is only executed once at the end of the day when the application is terminated. It is used to free all the used hardware and cleanup all the resources. This probably is the Post UUT Loop Callback in TS.
    When a product needs to be tested, the operator presses the "start" button which triggers our own Test Sequencer and the run and abort group are being executed (first the run group, afterwards the abort group).
    When the product is being tested the "running led" of the little box lights up to indicate to the operator that the application is running. (only when the run and abort group are running)
    The Run group has all the functional tests in it. (MainSequence)
    The abort group is used to put everything back in it's original state after the test on this single product is done. (Post UUT)
    When executing the tests and something goes wrong (operator gets stuck in a clamper, ...) the operator can still press the abort button and then the execution immediately jumps from the currently executing step in the run group to the first step of the abort group. So, when something goes wrong, immediately the abort group is called.
    At the end of the run and abort group, if no errors occured, the "pass led" lights up. If one or more steps went wrong the "fail" led lights up.
    This setup can also be used to test multiple product in parallel. At that time all the different parallel testers have such a small box which contains a "start" and "abort" button and a pass, fail and running led. (it is possible that they are all connected to the same PCI-DIO-96 board. )
    My question:
    Is it possible to do something similar like this in Teststand? If yes, is there an example available that shows me how to do this in TestStand? (externally trigger the execution of TestStand)
    Typically, in the Init group (Pre UUT Loop) the digital interface box gets initialised.
    In the Close group (Post UUT Loop) the digital interface box is taken out of scope.
    Note: The PCI-DIO-96 board to which the digital interface box is connected will also be used in the rest of the developed application (MainSequence, ...)
    What's really important for me is that I can create a process model that all the application developers in our organisation can use. I really don't want any of the application developers (limited software experience) to mess around in all the features of TestStand.
    For them it's important that they just add the function DigitalInterfaceBoxInit () in the Pre UUT Loop Callback and the DigitalInterfaceBoxClose () in the Post UUT Loop Callback, and then everything works!
    It is important that the appliation developers do not have to create any global variables, other functions, synchronisations, parallel sequences, ... in TestStand. All this needs to be done with a simple call to the DigitalInterfaceBoxInit function.
    Thanks in advance for all the help!
    Best Regards,
    Dennis Vanotterdijk
    [email protected]

    Dennis-
    Your application sounds very well suited to TestStand's abilities. I am also quite impressed with your knowledge of how TestStand's architecture is arranged when you are still just considering whether or not to use it.
    I think that TestStand would work really well for you in this application. Like you mentioned it will provide you with a form of standardization for your application developers to work from. It also provides the flexibility for you to add your custom routines in many different places. TestStand also makes parallel and batch testing much easier in TS 2.0 so that you could develop one test for your product and execute different instances of it in parallel to test multiple products at once.
    As for your specific question about how to c
    ontrol TestStand using a DIO board. I think this is very feasible and should not be too difficult. Since TestStand provides you the ability to create a custom operator interface your operator interface could monitor the status of your DIO board and launch/abort executions based on the read values. Usually the executions are launched/aborted when a button on the GUI is pressed however, I do not see any thing different about basing the action on a DI signal vs a mouse click. I am sure your application is more involved than this high level description but from the sounds of it I think it is very possible to do with TestStand.
    Based on my experience of building test systems with TestStand and your description of the application, I would feel very confident in using TestStand to achieve all the goals you mentioned. If you have further detailed questions on how one of your features might be implemented, feel free to contact one of our Application Engineers or email us at www.ni.com/ask
    and we would be glad to help you.
    Best regards,
    Richard McDonell
    National Instruments

Maybe you are looking for

  • SD-R6112 drive no longer recognized - Error Code 19 in device manager

    Hello! I have two opticals (one internal, one external) that suddenly are unrecognized. Both are showing up in device manager with the same error message as follows: Windows cannot start this hardware device because its configuration information (in

  • How to solve error in table control?

    Hi expert, I am a beginer in table control. I have a problem. I create a table control in that I use a search help for a column. Everything is normal if I enter a value into search help value and save . There are two situation: 1. In the first time I

  • Site that automatically resizes images based on browser size

    Hi. I need to make a site that automatically adjusts the size of the images based on the browser size, but keeps the image quality. Does anyone know how to do this without using flash? I basically want the site to perform like [http://www.shotview.co

  • Photoshop Elements 6 to Lightroom -- How to move the Catalog

    So, how do you import a photoshop elements 6 catalog into Lightroom. > I have just gotten both and after a HD Crash installed Element 6 and spent > days updating and reconnecting the catalog. For Christmas, I have gotten a > new camera and Lightroom.

  • What's the newest version of iMovie that'll run on a Mac G4 OS X (10.3.9)

    What's the newest version of iMovie that'll run on a Mac G4 OS X (10.3.9)? My MiniDV camcorder records video in widescreen (16:9) , but the version of iMovie (version 3) I have squashes the widescreen image to a 4:3 dimension rectangle.