Experimental Physics and
| |||||||||||||||
|
Hi everyone, I want to add 10 or more serial ports in a single IOC. All the serial ports have the same configuration besides the serial port name. The single port configuration is like this: drvAsynSerialPortConfigure ("PS1","/dev/ttyS1") asynSetOption ("PS1", 0, "baud", "9600") asynSetOption ("PS1", 0, "bits", "8") asynSetOption ("PS1", 0, "parity", "none") asynSetOption ("PS1", 0, "stop", "1") asynSetOption ("PS1", 0, "clocal", "Y") asynSetOption ("PS1", 0, "crtscts", "N") if I want to add 10 serial ports, should I add them one by one and repeat the above statements 10 times? Is there any simple method? Can I add the serial ports as a group,which has the same configuration? I didn't find any document about this. Thank you very much for your help. Best Regards Chunxia Yin
2020-3-17 yincx at ihep.ac.cn
| ||||||||||||||
ANJ, 17 Mar 2020 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |