Mansour Posted December 20, 2010 Report Share Posted December 20, 2010 Hi everyone,, I am reading serial port from " Basic Serial Write and Read.vi " example. I need to read 2 bytes on this port and then convert from ascii to its equivalent hexadecimal or binary. What should I change in the above example in order to get 2 bytes from serial port? Thanks Quote Link to comment
SuperS_5 Posted December 20, 2010 Report Share Posted December 20, 2010 Hi, The LabVIEW Help file does tell you exactly how to do that. In any case, here is a sniplet if I understand what you have requested: Quote Link to comment
Roderic Posted December 20, 2010 Report Share Posted December 20, 2010 IMO, it's best to open the visa session, then close it at the end of your program.... Quote Link to comment
asbo Posted December 20, 2010 Report Share Posted December 20, 2010 IMO, it's best to open the visa session, then close it at the end of your program.... Agreed. The existence of the 'Automatically Close VISA Sessions' setting in the IDE has always irked me. Quote Link to comment
SuperS_5 Posted December 22, 2010 Report Share Posted December 22, 2010 IMO, it's best to open the visa session, then close it at the end of your program.... Agreed. The existence of the 'Automatically Close VISA Sessions' setting in the IDE has always irked me. Thanks for reminding me. I totally agree, but just wanted to quickly spit out an example. (I was rushed, you know how regular work can suck up all of your time) Quote Link to comment
Mansour Posted February 6, 2011 Author Report Share Posted February 6, 2011 Thank u all ( SuperS-5, Roderic, Asbo) for helping me Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.