Solved

Apps Won't release serial Port

Posted on 1997-08-12
10
382 Views
Last Modified: 2013-12-27
 I have the following problem with a PowerBook 5300c computer. The
Powerbook 5300 is hooked up to a BIOPAC Systems MP100 data acquistion
system. BIOPAC gave me software (Acknowledge 3.2) to communicate with
the MP100 data acquistion system. The I/O for the MP100 system goes thru
the PowerBook's single serial port. The MP100 needs the serial port for
data transfer and setup.
   Another system, an ATI Force/Torque gauge (F/T gauge), also needs the
serial port for setup and checkout. I am communicating with the F/T
gauge via Versaterm Pro Version 5.0.6. The reason for this is the (F/T
gauge) needs to to zeroed and set up prior to use.
   Currently I am using a manual switchbox to change between the F/T
gauge and the MP100 data acquistion system. I do the following:

    (1) Turn everything on,
    (2) Launch Versaterm Pro,
    (3) Set the manual switchbox to talk to the F/T gauge,
    (4) Send the commands to the F/T gauge with Versaterm Pro,
    (5) Quit Versaterm Pro,
    (6) Set the manual switchbox to talk to the MP100 data acquistion
system,
    (7) Launch Acknowledge 3.2,
    (8) Collect data with the MP100 data acquistion system

   Unfortunately the F/T gauge requires constant zeroing and other
operations. So I do this:

    (1) Leave Acknowledge 3.2 active (i.e. don't quite Acknowledge 3.2),
    (2) Set the manual switchbox to talk to the F/T gauge,
    (3) Launch Versaterm Pro,
    (4) Send the commands to the F/T gauge with VersaTerm Pro.

   When I try (4) above, I get an error dialog stating that the serial
port is in use by another application. In order to proceed, I have to
quit Acknowledge 3.2. After that, I can talk to the F/T gauge.
   The Acknowledge 3.2 documentation contains nothing on how to make
Acknowledge 3.2 release the serial port.

How do I solve this prob?
0
Comment
Question by:OTO356
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 3

Expert Comment

by:rickyr
ID: 1542245
Hello...
The serial port will not be released unless you quit. Think of it this way,  When you launch an app that uses the serial port, it first tries to initialise it, where would we be if our serial port connections were dropped just because an app is made inactive. Could you not use two cables, one to your printer port as a serial link to MP100 and the modem port linking to the F/T guage.
byeeee.
0
 

Author Comment

by:OTO356
ID: 1542246
The PowerBook 5300 has only one serial port. I think a Mac expert should know this.

Quitting the Acknowledge application constantly is a pain in @#$!*. That's why I have a prob. I want to release the serial port w/o quitting any apps at all.
0
 
LVL 3

Expert Comment

by:rickyr
ID: 1542247
If I ever meet a mac expert I'll pass on your advice.
maybe someday I will be able to call MYself a mac expert.
untill then...
happy answer hunting.

0
Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

 
LVL 3

Expert Comment

by:rickyr
ID: 1542248
Hello OTO356....
I've just had a thought, Most serial comm softwares allow you to do a disconnect or close connection, you could try this if you haven't already done so.
I hope that this works.
ricky.
0
 
LVL 1

Accepted Solution

by:
karl_s earned 100 total points
ID: 1542249
Quite simply - It can't be done. (unless you install another serial port!)
0
 
LVL 3

Expert Comment

by:rickyr
ID: 1542250
Hiya
I think I may have a work around that will solve your problem. Let Applescript automate your serial sessions. If you need more info on exactly how, then let me know
ricky...
0
 
LVL 1

Expert Comment

by:karl_s
ID: 1542251
A possibility - try using software that emulates several serial ports on your mac.. It's a long shot...
0
 

Author Comment

by:OTO356
ID: 1542252
Thank you Karl. I'll look into it. I found a shareware app called CommCloser that closes serial ports. But the software author advises against closing a serial opened by application while that app is running.
0
 

Author Comment

by:OTO356
ID: 1542253
I found a shareware app called CommCloser that closes serial ports. But the software author advises against closing a serial opened by application while that app is running.

Any thoughts on this?
0
 
LVL 1

Expert Comment

by:karl_s
ID: 1542254
generally, applications that have their ports closed when they are meant to be open get stuck in infinite loops in attempts to re-open the driver...
CommCloser is designed for maverick apps that forget to close the ports after use..
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Thanks to luck and dedication (hitting refresh every 5 seconds when the pre-orders were going live at midnight on April 10th) I managed to actually receive an Apple Watch on release day, April 24th. Which means I’ve been using it daily for just ov…
A professional opinion on which Apple product to buy, and a tidbit about the WWDC.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question