03-07-2006 07:10 AM - edited 03-07-2006 07:10 AM
Message Edited by SercoSteve on 03-07-2006 07:11 AM
03-08-2006 03:19 AM - edited 03-08-2006 03:19 AM
Hi Steve,
best example is actually the login logout section of the TestStand 2.0 style interface.
Teststand - Login.vi from the simple OI TestStand 2.0 style directory creates a new property object, and then adds in a couple of Booleans to that property object.
The next step would be to do an SetValVariant with the appropriate lookup and the InsertIfMissing option to pass it in one go.
Hope that helps
Sacha Emery National Instruments (UK)
Message Edited by SachaE on 03-08-2006 09:20 AM
03-08-2006 03:30 AM
Ooops - forgot - there's no InsertIfMissing option on the SetValVariant.
Back in a minute with something that'll work!!
Sacha
03-08-2006 03:35 AM - edited 03-08-2006 03:35 AM
Hiya - said I'd only be a minute....
SetPropertyObject works fine.
Code attached
Hope that helps
Sacha Emery National Instruments (UK)
Message Edited by SachaE on 03-08-2006 09:36 AM
03-08-2006 03:38 AM
Hi Sacha
That's full on, dude.
Cheers
Steve
07-16-2008 09:28 AM
07-17-2008 03:30 AM
07-31-2012 10:36 AM
Juergen:
Your technique is very useful; thank you for the example. But one thing I'm struggling with in trying to implement this technique it in my project: One of my station globals uses several containers within a top level container. I'm able to create single container with sub entries per your example, but am struggling with how to programmatically create/insert a container within a container?
-John M.
08-01-2012 01:56 AM
08-03-2012 02:50 PM
Thank you, Juergen. With the benefit of having your original post to study, I managed to bang my head against the wall for long enough (before receiving your reply) to eventually sort out the correct logic/syntax. I won't bother to post, as it's essentially identical to your response. Both your reply and original post are very much appreciated.
Sincerely,
-John