Lakeshore 331 Temperature Controller Remote Communication with MATLAB

4 ビュー (過去 30 日間)
Mistro116
Mistro116 2015 年 7 月 4 日
コメント済み: khaled omar 2019 年 6 月 6 日
I am trying to communicate with a Lakeshore 331 Temperature Controller via RS-232 serial interface. I would like to query the instrument's identification information and current temperature reading. I am using the following code, but the output comes back jarbled:
lakeshore331 = visa('ni','ASRL3::INSTR');
set(lakeshore331,'InputBufferSize',3000000,'Timeout',5.0);
fopen(lakeshore331);
iden = query(lakeshore331,'*IDN?')
temp = query(lakeshore331,'KRDG?')
fclose(lakeshore331);
delete(lakeshore331);
clear('lakeshore331');
Here's the output that results:
iden =
LÓCI,ÍOÄEL³³1E,³°¶°¶1,°³2³°1
Š
temp =
«7¹®¹¹8
Š
Do you have any suggestions for how to clean up the output?

回答 (1 件)

Pascal.Gehring
Pascal.Gehring 2018 年 4 月 3 日
Probably 3 years too late, but....
lakeshore331.DataBits = 7
lakeshore331.Parity = 'odd'
  1 件のコメント
khaled omar
khaled omar 2019 年 6 月 6 日
It worked with me while using RS232 serial communication Visual Basic .NET .
Thank You very much

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInstrument Control Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by