Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple ports

Status
Not open for further replies.

Evansbee

Programmer
Dec 10, 2003
3
US
Hey guys, i'm new with procomm and i'm trying to interface with multiple com ports in one script file...how on earth do i do this? Thanks so much!

-evan
 
If you are trying to monitor multiple ports at the same time, then you will most likely need to run a separate script (each watching a certain port) in separate Procomm windows.


aspect@aspectscripting.com
 
no, i want to send to information out to several processors at the same time or at least sequentially all from the same script.
 
If you want to do this sequentially, then you could have a procedure that your main script calls which does the work that is common to all connections. You would then use the set modem connection command in your main procedure to change the connection to a different port before calling the procedure to send the information. If you want to do this all at the same time, you would need multiple windows of Procomm open, each window talking to a different connection.


aspect@aspectscripting.com
 
how would i go about doing it all at once. If i try to execute other files it waits for the first to return before it moves tot eh second, is there any way around this?
 
If you want to connect to all ports at once, you'll first want to have the proper number of Procomm windows open and set to the right connection. You could run the same script at the same time in all windows, as long as the information sent to each connection will be the same. In other words, the script should not be setting the connection, you should do that manually before running the script.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top