Quantcast
Channel: All NI TestStand posts
Viewing all articles
Browse latest Browse all 24577

Re: passing object reference from sequence to C#

$
0
0

 

NationalInstruments.TestStand.Interop.API.PropertyObject myArrayVariable = (NationalInstruments.TestStand.Interop.API.PropertyObject)e.uiMsg.ActiveXData;

 

You can then either use the teststand API to access the individual elements, or, if the array is an array of a basic type, you can do the following:

 

double[] myArray = (double[]) myArrayVariable.GetValVariant("", 0);

 

For more help with accessing arrays from .NET see the example: <TestStandPublic>\Examples\AccessingArraysUsingAPI\UsingDotNet\

 

-Doug


Viewing all articles
Browse latest Browse all 24577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>