06-20-2024 12:51 PM - edited 06-20-2024 01:07 PM
Hi,
I have created simple server and client VIs using .NET 4.0 to test out named pipes. @wiebe@CARYA suggested that I try out ReadAsync. It seems that it works; the IsCompleted flag gets set for the task, but I can't seem to get the data. It seems like it really wants a pointer to the output array. If anyone can give me a hint on how to proceed, I would greatly appreciate it. Test VIs are attached.
07-22-2024 05:32 AM
Hi, did you find a solution to this? I have basically the same issue where the ReadAsync buffer is returning zero. I think it is because the buffer is being returned before the task is complete, i.e. at almost the same moment the method is called, the buffer is returned before the task is able to fill the buffer. I cannot find a way around this in LabVIEW and I suspect I will need a wrapper library that deals with the Async task and returns the buffer by firing an event once the task is complete.
07-30-2024 12:24 PM
No, never found a solution. I came to the same conclusion; the function returns before the buffer is filled. Sorry.
John