LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TypeCasting a .NET array to LabVIEW array

Hi,

I need to process a .NET System.Array object, which elements are Bytes (U8).

The only solution I found to transfer my data to LabVIEW type is :
- unstack the array
- typecast each element to the System.Byte .NET structure
- apply the .ToString method
- typecast to U8

This is very time consuming (all the more than this array is a 2D array) and doesn't fit my real-time requirements.

So, I would like if there is a solution to typecast this .NET System.Array object directly into a LabVIEW array. I had a first disappointment when I understood that typecasting to a 2D array is forbidden, but even with a 1D array I am unable to perform this operation ...

Anybody has an idea ?

Thanks a lot,
Alexis
0 Kudos
Message 1 of 1
(2,715 Views)