Labview Simple User Interface

I would like to know how to add a simple LED indicator in the TestStand Labview Simple User Interface that would display the Sequence Status( PASSED or FAILED ) ?
I'm using TestStand 3.1.
Thanks a lot
Olivier

Hi Olivier,
There are several ways to implement this.
The quick and easy method would be to read the ItemText from the Executions ComboBox control. Then scan it to see if it contains "Passed".
(see attached VI)
An alternative is to setup a TestStand UI Label Control, Using the ExecutionViewManager you can set a CaptionSource to the UUTStatus. This will then contain the UUTStatus of the currently selected execution. This is similar to above except the string will only contain the UUTStatus string, not all of the details in the execution string.
However a "more complete" method would be to setup a Callback VI for UIMessages, when the UIMsg_ModelState_TestingComplete is recieved, the UUT status can be retrived. (Refer to the TestStand Help file)
The callback (assuming it has a reference to the LED) can then set the value of it.
This method is prefered over the above 2 because you do not need to poll the TestStand controls to get the status information. When the TestingComplete event occurs, TestStand will execute the Callback VI.
I hope this helps.
Simon Holman
Software Engineer
Certified LabVIEW Developer
Certified TestStand Developer
measX GmbH & Co. KG.
http://www.measx.com
Attachments:
Simple OI - Top-Level VI (Quick).vi ‏191 KB

Similar Messages

  • Building a simple User Interface

    HI,
    I'm interested in building a very simple User Interface. All I want to see is a panel with buttons and each button will execute a test sequence file.
    1) Is it possible to create such a panel with CVI or LV and then call a sequence file which will be handled by TS?
    In that case, I would expect to see TS panels while executing the sequence and once finished (or closed by the user) to come back to the original panel that calls the sequences.
    2) is it better to create this panel with TS utility? (I have never done it and suspect it will not be a simple job).
    Thanks
    Rafi

    You can do this in test stand if a simple interface containing just a prompt and buttons will do. In your main sequence, the first step is to create a MessagePopup step. Put a title like "Test Selection". Put a message like "Choose a Test". Label button 1 "test 1". Label button 2 "test 2", and so on. Create a local numerical variable called TestNum. In the post expression section of the first step, add the line Locals.TestNum = Step.Result.ButtonHit. You next step can be a sequence call to the first test sequence. Add a precondition that Locals.TestNum==1. The following steps can all be sequence calls to your other test sequences with preconditions of Locals.TestNum==x, where x is the number corresponding to the button hit in step one. When the selected test sequence is done, the main sequence will be repeated with the message popup asking for a test to run.
    - tbob
    Inventor of the WORM Global

  • Teststand Simple User Interface in LabVIEW

    Hello Community,
    I am designing a user interface for Teststand by using the simple example vi provided. The name of the file is Top-Level VI.vi
    I am trying to understand how the vi works inorder to make changes and ran into a few questions that I was hoping someone could answer for me please.
    To start I add my sequence file and click "Test UUTs". Then a dialog box pops up asking to enter the serial number of the UUT, where and what causes that to happen in the code? After I enter my serial number it runs my sequence code and at the end another message box appears specifing in a green or red whether the UUT passed or failed. Where and what causes the Pass/Fail Boxes to happen in the code?
    Thank you
    Kevin
    Solved!
    Go to Solution.

    The S/N dialog is part of the process model.
    For the Sequential Model (SequentialModel.seq), the default S/N dialog in found in the 'PreUUT' sub-sequence and implemented as a DLL call.
    The PreUUT sub-sequence of the SequentialModel is a callback, so you can override it in your own test sequence.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • LabVIEW Simple operator interface deployment

    Hi All,
    I try to deploy a TS 3.1 application with a LV 7.1 Simple OI. I successfully (no errors) built the OI executable and created an installer with default options. I also built the Deploy TestStand System and created an installer with default options, except I selected only User Interface->Simple->Labview (no development system). I installed them on the target machine without any problem. The problem appeared when I ran the OI; it reported "Error 97 occured at Unknown System Error in TestStand-Set TestStand Application Window.vi->Simple OI-Top-LevelVI.vi. Possible reasons: Labview: Null Refnum was passed in as input".
    I beleive this happened because the "Application Manager", "SequenceFileView Manager" and "ExecutionView Ma
    nager" ActiveX Controls, which were required by the OI, were not present on the target PC.
    Obviously, TestStand Deploy did not distribute them.
    Does anybody know how to distribute these ActiveX controls or have a successful experience of distributing the LabVIEW Interface?
    Thanks.

    PPascal,
    We've seen this error before, and it usually fixed by a simple reinstall. You could also possibly just run a repair on the TestStand engine within add/remove programs and this should also fix the problem. Please try this and post back if this does not fix the problem for some reason. Thanks and have a good one.
    Adam B.
    Applications Engineer
    National Instruments

  • Use networked Users.ini in deployed simple user interface

    I'm using the  Simple LabVIEW UI that comes with TestStand 2014. I have customised it to my requirements, but have a small issue. I want to deploy the interface to numerous production PC's but cannot workout how to get the interface to use a networked Users.ini, at Login on those PC's. Does anyone know how to make the user interface use a networked Users.ini? I know that in TestStand 2014 you can use the menus Configure>Station Options>User Manager to tell it where to find a networked Users.ini. I don't know how to make the Simple LabVIEW UI do the same thing. Hopefully I've missed something obvious and will soon be felling rather stupid.
    Thanks
    Colin

    Colin,
    This setting is stored in TestExec.ini.  You can deploy this by following this link: http://digital.ni.com/public.nsf/allkb/E5E4FEADEFE6023D862571590000C5CC
    Here's another link:http://zone.ni.com/reference/en-XX/help/370052N-01/tsdeploysystem/infotopics/includingcfgfiles/
    TestExec.ini is just 1 of many cfg files for TestStand.  They all need to be in the same folder.  Generally the ProgramData\National Instruments\<TestStand>\Cfg folder.  The exception is Users.ini.  It is the only cfg file that can be in a different location (as you have discovered)
    So I recommend pointing to the users.ini on your development machine and then adding TestExec.ini to your workspace.  Then you need ot put it in the Cfg directory on the deployment machine.  Be careful though because there are a lot of other settings stored in that file.
    Hope this helps,

  • How can I tile up the execution window in the Labview Teststand user interface

    I am using the Labview User interface provided with the TestStand development environment.
    Running the BatchUUT.seq Example using the TestStand Sequence Editor, you will see that the Execution Window will be divided in 4 windows showing the execution status of the 4 UUTs.
    Running the same Sequence using the provided Labview User Interfaces (Simple or Full-Featured) will just show one window with the execution status.
    Is there a way to tile up the window to display the execution status in the Labview User Interface?

    Try something like this:
    You wouldn't use random numbers of course, but rely on already opened clones. So you would extend the "Manage Clones" to manage the data for the window position, but set it for each clone in the way the screenshot shows.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Simple User Interface Improvement

    There is one aspect of the user interface that has always slowed my productivity in LR. The scroll bars located on the far left and right of the side panels are thinner than standard scroll panels in Windows programs. When I work with the interface at my normal operating speed, I usually miss the scroll bar 50% of the time when I try and click and drag them. I thought over time this issue would go away as I got use to this irregular aspect of the LR interface, but it has not during the years I have used LR starting with version one. Since many people have wide screen displays, it seems like having a normal width scroll bar would not sacrifice that much screen real estate and would benefit those of us with hand eye coordination that falls outside what was envisioned by the LR user interface developers. Perhaps it could be an optional setting.
    Of all of the user interface improvements possible in LR, this one simple change would be of the greatest benefit to my productivity.
    Thank you for considering it

    Ken, I agree. In general, many of the user-interface elements of LR are fussy and non-standard in their behavior.  A couple of examples: The scroll bars don't have up and down arrows at the end, making it hard in large catalogs to scroll by one line of thumbnails using the mouse.  Scrolling the Library Filter Keywords column is particularly painful when it has a thousand keywords.
    Adobe wants feedback to the product team submitted at the feedback forum:
    http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om
    If you create a topic there, I'll vote for it!

  • In simple user Interface modify the sequence view to show only executing step

    I want to see only the Single executing step  in sequence view of the user interface
    are there any egs for the same!!

    This is relatively trivial to implement yourself. Handle the UIMessageEvent of the ApplicationMgr and when you get a trace UIMessage do something like the following:
    if (uiMsg.Event == UIMsg_Trace)
        int notUsed;
        String currentStepName = "";
        SequenceContext context = uiMsg.Thread.GetSequenceContext(0, out notUsed);
        if (context.NextStepIndex >= 0)
            currentStepName = context.NextStep.Name;
        /// Do something with currentStepName like update an indicator control.
    Hope this helps,
    -Doug

  • Viewing a specific sequence execution belonging to a TestStand Workspace in LabVIEW Simple UI

    Hello,
    I have a TestStand Workspace which contains 3 sequence files : one master sequence which contains PreUUt, PostUUT..And two other slave sequences that are called from the main sequence depending of a given parameter (It means that during a whole execution only one slave sequence will be called).
    Using the TestStand Simple User Interface in LabVIEW, I want to show the completed execution screen of the slave sequence file called.
    The problem that LabVIEW shows the master sequence at the end of executions which didn't give details about the slave sequence steps' status.

    Thanks for the reply,
    I found that the record result is already activated as mentionned.
    To make it simpler, supposing that we have a sequence file which contains many sequence call modules, like the example in the attachement.
    At the end of the execution, I want to be able to view the status of all steps of "Sequence_2" for example.
    Attachments:
    Capture.JPG ‏26 KB

  • 'Design Patterns' for Application User Interfaces

    I'm currently trying to unstick an architectural mess centred around a relatively simple user interface. The problem is thus:
    The application has a number of toolbar buttons and menus, some of which require a specific frame or class of frame to be enabled. Some conditions are quite simple, others more complicated.
    (Without going into any more detail, it should be possible to appreciate that this is a fairly common problem.)
    For this application, I've created a large listener that accepts events from all over the program, converting them into state changes for UI controls. It feels messy, and (although it isn't finished) I suspect it'll be rather fragile.
    JBuilder 4 does it by constant querying of application state - but this results in excessive CPU usage and apparant lag.
    TogetherJ does it for menus by checking state immediately before showing the menu. This seemed like a good plan, but it's unsuitable for the Action/Button/MenuItem lashup I like to use.
    My question is this:
    In your opinion, how should an application be structured to reliably maintain the correct UI state at all times?

    Check out the mediator pattern. It is pretty close to what you are describing, maybe the details you dig up on it will give you some new ideas?

  • Create Eye-Catching User Interfaces

    Do you try to make your front panels look professional, feel natural, and work great?
    Are you tired of your front panels looking like a windows 95 based program?
    How would you like to make Eye-Catching, Professional, and sexy front panels that impress your clients?
    Join the UI Interest Group
    You will be able to develop Eye-Catching and professional VI front panels that make you and your program look good.
    Plus you can join in developing more themes to work with. Your involvement will not only improve the programs we all write, but will be integral in shaping the coming improvements in Labview's User Interface in future versions of labview! Join us and learn how to impress your users with your VIs or show us all how its really done. 
    Talent Wanted. 
    [will work for kudos]

    I joined (I think) but found the interface over there a little bit lacking (Irony! ). Same for the the Idea Exchange, I wish the interfaces all worked the same way.
    So just for fun here's something for ya. I posted this on LAVA a few years back and they seemed to like it...
    Richard
    Attachments:
    Nixie_Fun.vi ‏56 KB

  • Develop a user interface in Lecroy1451 by Labview

    Hello everybody:
    I currently working with LabVIEW and I develop a user interface to the
    hardware.
    I have finished with most of the instruments and I now have to dialog
    with a LeCroy HV1451 High Voltage multichannel power supply.
    It has a simple dedicated language and communicates via RS232.
    For instance, if we send ‘'‘ 28 LD RUP 11 500'' to HV-Lecroy 1451, it
    will answer " 28 DMP 11 -0.1 -12.1 -20.0 488.6 488.6 -2550.0 1 ". This
    is clear and simple but there is a lot of work to extract each piece of
    information.
    I wonder if Labview could help me with a starting program using this
    device ?
    Or with general tips or general examples to disentangle all the sub chains.
    Thank you very much, any answer will be appreciated.
    Yang

    Hi Yang,
    Alan from LeCroy here..  The company Universal Voltronics purchased this product line from LeCroy ~10 years ago. You might want to contact them for support - http://www.voltronics.com.
    Regards,
    Alan
    Alan Blankman, Technical Product Marketing Manager and LabVIEW Developer
    LeCroy Corporation
    800-553-2769 x 4412
    http://www.lecroy.com
    [email protected]

  • How to get the value of the global variable of test stand in labview User interface?

    Hi.
     Can anyone Please share examples and tell me to how access the test stand global variable using labview user interface.
    Solved!
    Go to Solution.

    I'm not surprised that what you are doing doesn't work.  The Start Execution UI Message is triggered when the user clicks a button to start an execution.  Realize that most executions go through a process model.  So you could be looking at the sequence context of the process model and not your client sequence file.
    I recommend reading that link I posted above.  UI Messages are your best bet but you cannot just piggy back on an existing UI Message like this.  They may not be getting sent at the time you need them to be.  The only way to ensure you get what you want is to trigger one yourself at the right time.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to create Labview User Interface with buttons?

    Hello,
    I try to create a user interface, where the TestStand sequencies can be selected one by one not only Test UUT, Single run and run Mainsequence (about 20 buttons needed).
    I'm playing with the simple UI shipped with TS and can load the sequence file and run automatically a sequence (Main or another).
    How can I create and assign buttons to all sequence files in my TS project?
    Any help would be appreciated.
    Thanks. (TS 4.0, LV 8.0)

    I've modified my main VI with the below steps.
    I still don't know how to create and assign front panel buttons to the user interface.
    Anybody could explain to me how do I need to modify the attached part of my main vi and how to assign buttons.
    Thanks.
    Attachments:
    InteractiveArgs_2.png ‏12 KB

  • Reading the output values after each step executes in LabVIEW User Interface

    Hello all,
    Development environment: TestStand 2010 SP1 and LabVIEW 2010 SP1
    Problem: is there a way to execute the subsequent steps programatically and get the output values from each of them?
    I have already extended a little bit a Full OI interface for TestStand to load up any sequence, choose some of the steps and run them step by step (something like option to Run Selected steps). What I am trying to do is to add some actions between each step and do that in User Interface (I can't modify the sequence!), so I am starting the NewExecution with some previously configured InteractiveArgsParam and set an option breakAtFirstStep to True. Afterwards I am just doing something like Step Over when debugging the sequence and this works good, but I didn't fine a way yet to read the output values from the steps...
    Then, if I wait until the execution finishes I can read my Results by processing the ResultObject, but this works only after finalizing of the test sequence. Since I wanted to stop after each step, read the values, do some actions and continue to the next step I tried to register an event callback for Trace of Execution View Manager. I can see that after each executed step this event is triggered, but when I try to read a ResultObject returned in Event Data it is not filled with values (ResultList seems to be empty?). Is it a proper behaviour or maybe I am doing the readout in wrong way? (It is the same VI as for reading ResultObjects after sequence finishes and there it works fine for arrays, containers and other data types).
    Like I mentioned I can't modify the Test sequences, I can't add a UImessages.
    What are my options? Should the trace event returns all output values from each steps or is it just used for status checking? Or maybe there is completely different approach to that matter?
    Thanks in advance for any suggestions,
    Best Regards.
    CLA, CTD, CLED @ Test & Measurements Solutions Poland
    Solved!
    Go to Solution.

    Thanks for your replay, I have tried to build it in my LabView Block Diagramm, es seems like this image.
    But the variable GetNumSubProperties ist always 0. Why?
    PS: I need only the variable "Step.Result.PassFail" from the last step, do you know, how can I get it? I think, it is maybe easier than read all the "Result".
    Attachments:
    ReadStepResultInLabview.JPG ‏39 KB

Maybe you are looking for

  • Submit Code not working in Background processing

    Hi All, I have a requirement to create delieveries based on the Sales Order through transaction VL04 (RV50SBT1).  Essentially, the program takes selected sales orders, determines the shipping point and creates deliveries immediately.  I believe that

  • Windows error 126

    I can't seem to install iTunes properly. After unistalling and installing on several occasions , I continue to get the windows error 126 messag. Any guidance?

  • Indesign 5 - Pdf export - Changing transparency opacity

    Just installed CS5. Its my first time in Indesign for CS5. I need to make some changes on an Indesign doc I created in CS4 and save to pdf. There is a background image that I have on every page of the doc... its set to opacity of 40%. Every time I tr

  • Stopping individual services and references in composites

    Hi All, We know that we can shutdown and start up composites.Is there any way by which we people can start or stop the individual services and references in the composite.Like if there is file and db adapter in a composite and i want to stop just the

  • Terminal syntax to mount/unmount volumes

    I have four 1TB disks in my Mac Pro.  I usually eject volumes not needed to reduce wear.  But I occasionally wish to bring a disk back online, briefly, to grab or look at something; The only way, currently, know how to bring them back on line is a re