[comp.os.vms] Thoughts On Using Alternate Terminals For Input/Output...

CLAYTON@XRT.UPENN.EDU ("Clayton, Paul D.") (07/04/88)

Michael McCrory has asked the following question.

>   I would like to test a motor controller,before its sent out for installation
> it can be treated as a terminal so basically what I need to know is how to :
>   Sit at one terminal inputting commands to and receiving information from a
> fortran program running on a microvax (VMS 4.6) while it sends/receives
> numerical strings to/from another terminal.

This is not a major problem and can be done using logical names and standard 
FORTRAN open, read and write commands. There is one small trick to this 
however.

The trick to make it VERY easy, is to have the system manager set the temrinal 
port you are going to use for connecting the motor to have wide open device 
protections. By this I mean do the following command.
	$SET DEVICE/PROT=(SY:RWLP,OW:RWLP,GR:RWLP,WO:RWLP) TXyy:
This will essentially enable ANYONE to get to the devcice and claim it for 
their use. It will also allow you to ass ifn a logical name to it and then 
perform I/O on it.

There is nothing wrong in doing the $ASSIGN calls and what not or let FORTRAN 
do it for you. Either way, it should work. The only other item, may be to have 
LOG_IO and/or PHY_IO privledge for your username depending on just what I/O 
functions you are doing.

Hope this helps.

pdc

Paul D. Clayton 
Address - CLAYTON%XRT@CIS.UPENN.EDU

Disclaimer:  All thoughts and statements here are my own and NOT those of my 
employer, and are also not based on, or contain, restricted information.