天文研究与技术-国家天文台台刊
天文研究與技術-國傢天文檯檯刊
천문연구여기술-국가천문태태간
Astronomical Research & Technology-Publications of National Astronomical Observatories of China
2015年
4期
487-494
,共8页
NVST%狭缝扫描%偏振分析%WinSock%串口通讯
NVST%狹縫掃描%偏振分析%WinSock%串口通訊
NVST%협봉소묘%편진분석%WinSock%천구통신
NVST%Slit scanning%Polarization analyzer%WinSock%Serial-port communication
利用1 m红外太阳望远镜( New Vacuum Solar Telescope, NVST)对太阳进行观测和研究,需要控制狭缝扫描系统和磁分析系统中各设备的运动以配合观测系统采集数据。针对实际观测中对设备运动控制的需求,并利用控制器对相应设备的直接控制,提出基于TCP协议及UDP协议的WinSock网络编程以及串口通信编程的设计方案,设计了一套基于Client/Server架构的控制系统软件,实现各仪器在局域网范围内的远程控制。通过对设备的运动控制测试,客户端发送控制命令给服务器端,服务器计算机解析命令并通过串口控制各仪器运行,同时采集设备的状态信息反馈给客户端,测试结果表明此系统能良好地控制各设备运行,结合网络通信及串口通信的设计为后续的观测系统功能升级打下了基础。
利用1 m紅外太暘望遠鏡( New Vacuum Solar Telescope, NVST)對太暘進行觀測和研究,需要控製狹縫掃描繫統和磁分析繫統中各設備的運動以配閤觀測繫統採集數據。針對實際觀測中對設備運動控製的需求,併利用控製器對相應設備的直接控製,提齣基于TCP協議及UDP協議的WinSock網絡編程以及串口通信編程的設計方案,設計瞭一套基于Client/Server架構的控製繫統軟件,實現各儀器在跼域網範圍內的遠程控製。通過對設備的運動控製測試,客戶耑髮送控製命令給服務器耑,服務器計算機解析命令併通過串口控製各儀器運行,同時採集設備的狀態信息反饋給客戶耑,測試結果錶明此繫統能良好地控製各設備運行,結閤網絡通信及串口通信的設計為後續的觀測繫統功能升級打下瞭基礎。
이용1 m홍외태양망원경( New Vacuum Solar Telescope, NVST)대태양진행관측화연구,수요공제협봉소묘계통화자분석계통중각설비적운동이배합관측계통채집수거。침대실제관측중대설비운동공제적수구,병이용공제기대상응설비적직접공제,제출기우TCP협의급UDP협의적WinSock망락편정이급천구통신편정적설계방안,설계료일투기우Client/Server가구적공제계통연건,실현각의기재국역망범위내적원정공제。통과대설비적운동공제측시,객호단발송공제명령급복무기단,복무기계산궤해석명령병통과천구공제각의기운행,동시채집설비적상태신식반궤급객호단,측시결과표명차계통능량호지공제각설비운행,결합망락통신급천구통신적설계위후속적관측계통공능승급타하료기출。
The NVST ( New Vacuum Solar Telescope ) of the Yunnan Observatories ( YNAO ) is for observations of fine solar structures though high-resolution imaging instruments and spectrometers in conjuncture with polarization analyzers.During observation with the NVST the slit scanning and motions of the polarization measurement instruments need to be controlled synchronously with the data-collecting systems.In this paper, we present the design and implementation of an electric control system to remotely control motions of these instruments ( including the polarization analyzers and slit-scanning devices) according to observational requirements.The remote control is achieved using a server computer from which commands are sent to control machineries associated with various separate controllers via a serial port on the computer and then a LAN network.Needed data and messages are fed back to the client through the LAN.The system is designed based on WinSock network programming and serial-port communication programming using the TCP and UDP protocols.The control system incorporates a software system for operation in the Server/Client architecture.Our experimental results show that this control system is effective in controlling the instruments on the NVST, and the design incorporating network/serial-port communications provides excellent extensibility for subsequent upgrading of the NVST to expand its functions.