DeviceExecute[device,"command"]
デバイス上で,指定されたコマンドを実行する.
DeviceExecute[device,"command",params]
パラメータ params でコマンドを実行する.
DeviceExecute
DeviceExecute[device,"command"]
デバイス上で,指定されたコマンドを実行する.
DeviceExecute[device,"command",params]
パラメータ params でコマンドを実行する.
詳細
- デバイスは,DeviceObjectによって,あるいはデバイスクラスを表す文字列によって指定することができる.
- DeviceExecuteは,呼ばれるとデバイスと交信し必要なデータが集まるまでは戻らないブロック関数である.
- パラメータ params は,未加工パラメータのリストとして,あるいはパラメータの名前と値を与える連想または規則のリストとして与えることができる.
- DeviceExecuteは,デバイス上で指定されたコマンドを実行し,結果をWolfram言語形式で与える.
例題
すべて開く すべて閉じるアプリケーション (2)
weather stationを開き,そのLCDスクリーンに文字列を書く:
DeviceExecuteを使ってスクリーンをクリアする:
Spheroのシリアルデバイスにバイト文字列を書き,DeviceExecuteを使って応答が得られるかどうかチェックする:
テクニカルノート
関連するガイド
-
▪
- 接続デバイスの使用 ▪
- バックグラウンドタスクとスケジュールされたタスク ▪
- Arduino ▪
- Raspberry Pi ▪
- 外部操作
テキスト
Wolfram Research (2014), DeviceExecute, Wolfram言語関数, https://reference.wolfram.com/language/ref/DeviceExecute.html.
CMS
Wolfram Language. 2014. "DeviceExecute." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceExecute.html.
APA
Wolfram Language. (2014). DeviceExecute. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceExecute.html
BibTeX
@misc{reference.wolfram_2025_deviceexecute, author="Wolfram Research", title="{DeviceExecute}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceExecute.html}", note=[Accessed: 15-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_deviceexecute, organization={Wolfram Research}, title={DeviceExecute}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceExecute.html}, note=[Accessed: 15-April-2026]}