MATLAB ヘルプ センター
Read line of ASCII string data from VISA resource
Since R2021a
data = readline(v)
data = readline(v) reads ASCII data from the VISA resource v until the first occurrence of the terminator and returns data as a string without the terminator. The function suspends MATLAB® execution until it reaches a terminator or a timeout occurs.
data
v
example
collapse all
Create a connection to a VISA resource. This example shows a connection to a device with the alias COM4 using the VISA-Serial interface.
COM4
v = visadev("COM4");
Set the terminator to "CR/LF".
"CR/LF"
configureTerminator(v,"CR/LF")
Read a string of ASCII data from the VISA resource v. The readline function returns data until it reaches a terminator.
readline
data = readline(v);
visadev
VISA resource, specified as a visadev object.
Example: readline(v) reads ASCII data from the VISA resource v.
readline(v)
Introduced in R2021a
visadev | read | configureTerminator | writeline
read
configureTerminator
writeline
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ