Solved

Apps Won't release serial Port

Posted on 1997-08-12
10
376 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
  • 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Although the iPhone has become an incredibly popular device in the cellular industry, the complex technology and software coordination required between Apple and the wireless carriers have seemed to leave many iPhone owners with technical issues. …
The purpose of this Apple-hardware based article is to provide helpful information about an important component required of all Apple portable notebooks (Apple does not call them "Laptops" because they are too hot to sit on your lap), but is not o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now