Jump to content

Release of Serial RS232 com port


Bjarne Joergensen

Recommended Posts

Hi

I got a sequencer programmet in LV that call a VI that use COM1 to communicate to a divice with LVs serial functions.

My question is: When I use the function "close" has LV totaly released the COM port?

I ask because the sequencer call another VI that call a .net app that use the same COM port and the first time I call that VI I got an error!

Is it normal behaviour?

best regards Bjarne

Link to comment

Hi

I got a sequencer programmet in LV that call a VI that use COM1 to communicate to a divice with LVs serial functions.

My question is: When I use the function "close" has LV totaly released the COM port?

I ask because the sequencer call another VI that call a .net app that use the same COM port and the first time I call that VI I got an error!

Is it normal behaviour?

best regards Bjarne

I've never had any problem with Labview releasing a serial port. I spend a lot of time switching between LV and Hyperterminal while developing serial instrument drivers and as long as I close the connections it works great.

Get a copy of Portmon from Microsoft and use it to capture serial port events. It will tell you WAY more about serial port communicaton that you want to know. But it will tell you if the port is being used by another program and if it's getting closed correctly.

http://technet.micro...s/bb896644.aspx

Link to comment

I've never had any problem with Labview releasing a serial port. I spend a lot of time switching between LV and Hyperterminal while developing serial instrument drivers and as long as I close the connections it works great.

Get a copy of Portmon from Microsoft and use it to capture serial port events. It will tell you WAY more about serial port communicaton that you want to know. But it will tell you if the port is being used by another program and if it's getting closed correctly.

http://technet.micro...s/bb896644.aspx

Hi Eric

Thank youthumbup1.gif

I haven't got the problem either when I switch between LV and hyperterminal, but it is when I call another .exe via .not from LV that use the same COM-port at as LV just had closed.

I vill try to monitor the COM-port with Portmon.

regards Bjarne

Edited by Bjarne Joergensen
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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