NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Quering parameters of function calls using the TS ActiveX engine

Hi,
phew - glad that worked. It was a bit of a last ditch midnight brain drain.

Care to explain a bit more on the %LO: Parms?
What's this in reference to? Are you trying to get the bounds of the array of Parms?

Thanks

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 11 of 15
(1,174 Views)
Ya, its good to read all the data...not too little and not too much, else other problems creep up, like 'no data available'. The seq file contains blocks such as:

[SF.Seq[0].Main[0].TS.SData.Call]
LibPath = ""
Func = ""
%LO: Parms = [0]
%HI: Parms = [4]

Now, I can read Func well enough, but chokes if I pass "%LO: Parms" any sort of way to it. I'm assume that %LO and %HI are replacable tokens. What to replace them with I do not know.
0 Kudos
Message 12 of 15
(1,174 Views)
Hiya,
sorry, I meant to reply to this last night, but my PC died on the way out of work and I sort of forgot.

You can use the GetArrayBounds on the SF.Seq[0].Main[0].TS.SData.Call.Parms object, which returns a couple of strings which you'll need to parse to get the values out of.

GetArrayBounds(array, lowerBounds, upperBounds)
This function retrieves the upper and lower bounds of an array. It returns the array bounds as strings with the syntax "[x][y][z]", where x, y, and z are integer constants.
Parameter 1: The array to examine.
Parameter 2: A string in which the function returns the array's lower bound.
Parameter 3: A string in which the function returns the array's upper bound.
R
eturns: The function always returns 0.

Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 13 of 15
(1,174 Views)
This seems to work a bit better as I can't seem to find any reference to "GetArrayBounds":

object.GetDimensions "ts.sdata.call.parms", 0, lo, hi, num, valuetype

From here, I think I can do what I need. Thank you all for your help.
0 Kudos
Message 14 of 15
(1,174 Views)
Hi,
no problem - we got there in the end - now atleast I know there's a difference in the API call names for TS and VBA.

Good Luck
S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 15 of 15
(1,174 Views)