NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Read/Write Windows registry binary value using C# adapter

Hi

I am trying to read (and write) windows registry using the C# adapter in TestStand. I am little bit stuck. The parameters are handled as objects and I am not quit sure how to convert to/from correct type. Someone who knows how to?

WindowsRegistry BinaryValue.png

vrv_0-1699267587985.png

 

0 Kudos
Message 1 of 2
(1,115 Views)

You are getting back an array of byte and TestStand only has the memory reference to that array.  I think you need to write your own support code module method with a return type of array of unsigned ints. 

eejallen_0-1700164008194.png

 

Pass the object reference of the byte array to method.  Then inside your code you can access the array and store back into an array of unsigned ints.  Pass that array of unsigned ints back to TestStand.

0 Kudos
Message 2 of 2
(1,055 Views)