NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

share the customed data types between sequence files

Is there any way to share the customed data type , ex. containter, between the sequence files?

I created some containters, ex, datatype1 in the File1.seq. The other file File2.seq calls a subsequence which pass the datatype1 as parameter. But now I have to copy the datatype1in the custom data type section in the File2.seq. I didn't find the way in the teststand , when I want to insert a container which is from another file.
The disdavantage of this way is , if the data type is changed, you have to change the data type in both files.



Thanks
Sundog
0 Kudos
Message 1 of 6
(3,759 Views)

You can add the data type to the station globals.  Then they would be updated for each sequence that uses them.

Open the stations globals and change the view to Global Types.  Add your type there.

Message Edited by paulmw on 01-10-2007 01:01 PM

* I noticed that I can't find the type when tring to create a local varable using the above steps, so it looks like this won't exactly work. Smiley Sad

Message Edited by paulmw on 01-10-2007 01:06 PM

0 Kudos
Message 2 of 6
(3,756 Views)

Ok, I was in the wrong place.  Go to the type palate and add a custom data type to "My Types.ini"

The type palette is not the same as the sequence file type.  You can get to it under the view menu or use the short cut button.

Message Edited by paulmw on 01-10-2007 01:10 PM

0 Kudos
Message 3 of 6
(3,749 Views)
Thanks for replying quickly.
I tried to declare a data type in the station globals' data type. But when I go back to my sequence to insert a local variable as container, I can't select the station globals data type I created. The pull down menu has no selection to go the station global data types.

I don't want to decare station globals in my application. Because it already gets too huge.
Is there other way? I think it should have such a funciton to include the data type declared in any sequence, similar to C files. I am surprised the teststand doesn't have it.
Thanks
Sundog
0 Kudos
Message 4 of 6
(3,746 Views)
MyType.ini works.
Thanks lot Paul!
Sundog
Message 5 of 6
(3,742 Views)
Sorry, I rushed my first post, see my second post.  As it says, you want to use the My Types.ini in the Types Palette.
0 Kudos
Message 6 of 6
(3,740 Views)