06-28-2011 04:07 AM
Hi evryone,
Context :
I actually use the software TestStand from NI.
I use it to sequence the execution of binary files on remote machines. eg :
begin
step 1 : init.exe (param01, param02, param03) on MACHINE_A
step 2 : action1.exe (param04) on MACHINE_B
step 3 : action2.exe (param05, param06) on MACHINE_A
end
Problematic :
So, I would like to pass any type of parameters in order to correctly call my binary files.
Eg, I would like to pass Array and Structure parameters to my binary files.
I know it is possible to create Array and Structure in TestStand environment.
However, it is impossible to send in parameters Array and Structure variables to binary files.
Because binary files only accept in native Strings and Integer variables.
My need :
So I would like to call the function Str() from TestStand, in order to parse Structure/Array to Strings.
but I don't Know how to use this function to achieve my objective.
Is there someone who can help me about it ?
Thank you in advance.
Solved! Go to Solution.
06-28-2011 04:33 AM
06-28-2011 08:52 AM
That is exactly what I want to implement.
For the moment, I can not pass Array and Structure variables in parameters.
But I wish find an internal function available in TestStand environment in order to parse Array/Structure to Strings.
06-28-2011 09:45 AM
Try:
Engine.SerializeObjects() --- the options parameter can specify whether you want to serialize as binary (fastest), xml, or ini. In all three cases the end result is a string you can then use with Engine.UnserializeEx().
Or
PropertyObject.Serialize() -- This only supports ini format and serializes the object you call it on. Use PropertyObject.UnserializeEx() to convert it back.
Hope this helps,
-Doug