11-12-2026 10:51 AM
I am trying to use the FLIR camera .NET API in LabVIEW. I am having an issue with respect to one of the .NET calls.
The .NET function returns the next image as a .NET object that is a pointer to the image data. I am a bit perplexed about how to convert this to a pointer that LabVIEW can use.
Should I typecast the .NET object to a U64 integer and try to use the MoveBlock functions? (I am using a 64 bit system.)
Thanks
Solved! Go to Solution.
11-12-2026 11:36 AM
What's the actual data type of the reference returned by GetNextImage? That should have its own available property and invoke nodes that you can use to dig out the underlying data. vi.lib\Platform\dotnet.llb\.NET Object to Variant.vi will also work to turn certain data types to LabVIEW variants.
11-12-2026 11:54 AM
I assume it is a pointer to the image. The documentation is below, which is sparse. I am going to see what I can do with it when I have access to the camera.
11-12-2026 12:09 PM
Looks like there should be a lot of properties including a byte array "ManagedData" that might be the raw data and .NET bitmap "bitmap" property which itself has a "Save" method to save to disk or stream object, the stream would be usable to get the raw data.
11-12-2026 02:47 PM
That seems to work thanks.
Not sure why I thought it was a pointer, I think the AI response led me down the wrong path