Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/04/2012 in all areas

  1. We only have four devices connected to the bus which are involved in continuous data exchange, and an optional fifth device which is for the most part silent. Over the last few days I've deployed the Win32 solution into my main application and it works beautifully. For what it's worth, I'll attach the library I made as a wrapper to the Win32 API. Consider it public domain, anyone can do what they will with it. LabVIEW.Win32Serial LV11SP1.zip Caveats to those who are downloading it: It does exactly what I need it to do, it might not do what you need it to do. That is it's by no means complete. It operates synchronously. It's set up so read operations operate by reading a "line" at a time. That is waiting for a line termination sequence. If you want to use other read modes, you'll need to modify the library. Behavior is undefined if you do not set a timeout. Timeouts don't quite work the same as they do in LabVIEW. As-is, if you use the Set Timeout method, it will configure the port such that Read Line will timeout if no data is received for the specified duration. That is Read Line can block indefinitely if data slowly trickles in at a rate that's faster than the specified timeout... Have fun with it if you'd like. -m
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.