01-14-2010 02:55 PM
The Existing User Interface GUI written is C# is great; however I would like to add a tab to the main tab control, and add a picture box.
Using a sequence state ment I would like to manipulate this picture box control.
I know that there is a way to reference the picture box control object in the user interface but how do I refrence this type of object? How do I refrence an object in my application that is utalizing the test stand API?
01-15-2010 01:30 PM
Hey Robichka,
Could you give us some more clarification on your overall project? The adding of a new tab is quite simple as you are really just modifying a Windows Form in C#. Just right-click on one of the existing tabs and select New Tab and then drop down your PictureBox control. What picture are you planning on displaying on the control and when do you want this to happen during your execution? You will most likely want to use a UIMessage to send data from your executing sequence to your control but I want to be sure I know what your are trying to accomplish before I recommend a particular architecture.
Lars
01-15-2010 01:58 PM
If I'm understanding your question right, you are using the existing C# example user interface for TestStand but want to add a Non TestStand object (your picture control) to the form, and then control that object from within your test sequence?
This is a pretty common thing to do. I.e. while testing a UUT I want to display images related to the test details etc.
You'll definitely need to look into "TestStand UIMessages" in the help files and the UIMessage class in the API if you haven't already.
http://forums.ni.com/ni/board/message?board.id=330&message.id=24890&query.id=613413#M24890
seems to have a demo already made up that might help.
if you have a a specific question maybe we can give a more detailed answer?
--Elaine R.