08-04-2022 08:13 AM
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
08-04-2022 10:31 AM
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.