11-05-2007 09:37 AM
11-05-2007 10:42 PM
hi Allen P,
Thanks for reply. I tried with your code but still problem persists. Please find attachment of code and kindly correct the wrong things.
regards
RKK
11-06-2007 11:48 AM
11-11-2007 11:34 PM
11-12-2007 10:55 AM
11-12-2007 10:25 PM
11-13-2007 06:41 AM
Hi,
I forget to add one more problem.
How to assign the function return value(of dll) to local variable?
Thank you,
Regards
RKK
11-13-2007 08:56 AM
11-13-2007 09:06 AM
rkk,
The return function of your assembly (.dll) is the first parameter in the parameters list. If you would like to get that return value and assign it to a variable, simply use the lookup string of the variable you would like to assign as Allen mentioned.
If you would like to pass an object reference into your assembly and operate on it there, you should create a parameter of the type 'NationalInstruments.TestStand.Interop.API.PropertyObject'. This parameter will allow you to pass the object reference into your code.
If you just need the value of a property object, you can create a parameter of the correct type, and assign a lookup string to that parameter.
For example, a function of the prototype:
int foo(NationalInstruments.TestStand.Interop.API.PropertyObject myProperty)
could have the parameter list:
DotNetModule.Parameters[0].ValueExpr = "locals.X"; //Assigning the return value of the function to locals.X
DotNetModule.Parameters[1].ValueExpr = "locals.Y"; //Passing the locals.Y object reference into your code
11-13-2007 11:53 AM
Hi Josh W,
Thanks for reply. Actually I want to know how to use passed object reference into dll function?. My actual scenario is like :
1. Pass step variable to TestStand 4.0 and execute, store them into local variable.
2. dll function may have variable and return type value. The return type value should be stored into local variables.
Please answer to above 2 points with examples.
Thank you,
Regards
RKK