Redirect Serial data from a COM port to a VISA instrument connected via TCP-IP ?

조회 수: 3 (최근 30일)
Hi, I am trying to figure out a way to send some HEX data from a modem to a VISA instrument i.e. Signal Generator. The best way I could achieve this was by connecting the modem to my PC i.e say at COM port 24 (RSRC name: ASRL24::INSTR) and the VISA instrument is connected to the address say (TCPIP0::192.165.0.3::inst0::INSTR) All I need to do is redirect data from the COM 24 to this address. I looked at VISA- NI MAX but it does not help. I guess I need to write a program in MATLAB or LABVIEW. Please comment if you could help.
Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 2일
Everything they have there is the same for serial ports except for the device setup, and you might even be able to use visa for that (you could try). If not then see http://www.mathworks.com/help/matlab/ref/serial.html
v = serial('COM24', 'BaudRate', 19200);

카테고리

Help CenterFile Exchange에서 Interface-Based Instrument Communication에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by