LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Null bytes in .NET callback binary data

Hi all,

 

Interfacing to a .NET library that uses a callback to send binary data. That works, except when there are null bytes in the data, which LabVIEW is interpreting as terminating characters.

 

I've tried to replace the string with a byte array, and also with a reference to an instance of System.String, but in both cases it's rejected as the callback VI doesn't match the required type.

 

Has anyone managed to come up with a solution to this problem? It doesn't seem like a problem that would be that uncommon, but I've not been able to find anything else online referencing it.

 

Regards,

 

Matt

0 Kudos
Message 1 of 2
(810 Views)

In the interest of expediency, I decompiled the supplied .NET dll, rewrote the event to use byte[], and recompiled. Fortunately that worked and I had the various tools necessary.

0 Kudos
Message 2 of 2
(780 Views)