NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set in a Teststand ActiveX Server Step a CANoe Environment Variable Value in Variant Format for a HexEditor-Control?

Hi everybody!
 
I'm trying to set in a Teststand ActiveX Server step a CANoe Environment Variable Value in Variant Format
but I don't get yet satisfactory results.
 
The CANoe Environment Variable is used in a Panel for a HexEditor-Control.
If I write something on the control, I am able to read via ActiveX the values in a local variable of my Teststand sequence.
But I can't write values in TestStand and get the right results on the CANoe Panel.
 
The function call from Test Stand is like:
Example 1:
Set lEnvironmentVariable2.{FileGlobals.CANoe_for_STS.arrCANoe_En_Variables[0].CANoe_Handle}.Value({0,1,2,3})
The Result on the CANoe Panel shown on the HexEditor is:
00000000 00000000
00000000 0000F03F  --> corresponds to the double Value with Hi-Lo Nibble changed (Intel-Format)
00000000 00000040  -->  "
00000000 00000840  -->  "
 
Example 2:
Set lEnvironmentVariable2.{FileGlobals.CANoe_for_STS.arrCANoe_En_Variables[0].CANoe_Handle}.Value({255,256,511,512})
00000000 00E06F40
00000000 00007040
00000000 00F07F40
00000000 00008040
 
The Environment Variable is defined in CANoe as:
Value-Type: Data,
Access: unlimited
Length: 100
 
Any advice?   Thank you..
0 Kudos
Message 1 of 1
(3,425 Views)