NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

sequence list

Hi all,
 
I am not new to labview but I am very new to teststand. I am using the full featured UI with teststand 4.0 and LV. What I would like to do is this.
 
  1. Programatically add sequence files to the file list but take away the option for the user to add or remove files from the list but still be able to select the test and run it.
  2. I would also like to be able to detect which test has been selected whether or not the user is going to run the test, so that I can display the correct options for the test.

Does anyone out there no of a good way to do this. I have tried but have failed miserably because it is hard for me to get my head around the fact that teststand is not actually acting as a part of LV but as a seperate entity.

Are there any draw backs to doing things this way or more clever ways to acheive what I want?

 

Thanks in advance,




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 1 of 7
(3,729 Views)


@Jhoskins wrote:
  1. Programatically add sequence files to the file list but take away the option for the user to add or remove files from the list but still be able to select the test and run it.
  2. I would also like to be able to detect which test has been selected whether or not the user is going to run the test, so that I can display the correct options for the test.

1. Try an invoke node on the Application Manager reference and select the method OpenSequenceFile.  Not sure yet how to disable a user from selecting sequence files but I sure it can be done, still looking...

2. Try modifiying the DisplaySequenceFile Event callback.  It is set in Full OI - Configure Event Callbacks.vi.  Check out the help for this callback too.

Hope this helps,

0 Kudos
Message 2 of 7
(3,723 Views)

I think there are two places that you would have to go to disable the user from opening a sequence file.  Edit the runtime menu and also edit the callback that allow a user the right click on the listbar control to open the sequence.  The callback for the right click seems to be "Full OI - ListBar CreateContextMenu Event Callback.vi"

Also, I am not using Teststand 4.0 but 3.0.  I am assuming that they are similar with respect to you question but I may be wrong.

 

0 Kudos
Message 3 of 7
(3,717 Views)
I was incorrect in my answer for number two. This will update the sequence when the file is open or an execution is paused, it will not update the sequence view when the list bar selection changes.  You want to use the callback for CurPageChanged Event.  One already exists.  It is called "Full OI - CurPageChanged Event Callback.vi" and is configured in the same "Full OI - Configure Event Callbacks.vi".
Message 4 of 7
(3,713 Views)

Thanks for all of your help. Your suggestions worked great. 5 stars to you.

Are there any good books for learning teststand or do you know of any good resources for learning it?

 

Thanks again,




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 7
(3,698 Views)
All of my teststand knowledge comes from hands on experience/trial and error.  I did reference the teststand manuals a lot and anything I could find online from NI (especially this forum).  So, I can't refer you to any good books.
 
The thing I noticed about the new teststand OI (compared to the legacy TS 1.0) is that it is event driven and almost all code is in callbacks.  It makes for nice and clean code but it doesn't follow a dataflow like I was used to seeing in regular labview VI's.  To get a good understanding of teststand, I found that understanding the process models and the OI were great help.
 
 
0 Kudos
Message 6 of 7
(3,695 Views)
Yes, the event driven architecture is what i am having trouble learning. I am starting to get a grasp on it. thanks again for all the help.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 7 of 7
(3,687 Views)