Reputation: 517
Is it possible to receive data from a serial port in Labview using an event callback? Similar to DataReceived event callback in .NET serial port class? If yes, I would appreciate a link to an example VI. All the examples I have seen use the synchronous send/receive approach. I would assume that the callback event, if possible, must happen in a separate thread.
My device streams (ASCII) data out very fast, about 1000 data points per sec
Upvotes: 4
Views: 2472
Reputation: 3105
You could poll the serial port and if the number of bytes exceeds a threashold (I used samples of 4 bytes), read that data and generate a user event. In another thread you could handle the events like normal events:
Upvotes: 3