From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
テキストファイルの項目を直接 LabVIEW の列挙体に落とす方法はございませんが、簡単なプログラムを組んで頂くことにより可能です。手順は以下の通りです。
1) VI を開く
2) フロントパネルに列挙体ではなくリング制御器を配置する
3) リングを右クリック >> 作成 >> プロパティーノード >> 文字列[] をブロックダイアグラムに配置
4) プロパティーノードを右クリック >> 書き込みに変更
5) スプレッドシートファイルから読み取るを使用してテキストファイルからリングのプロパティーノードにリストを書き込む
6) VI を実行
7) フロントパネル上でリスト制御器に項目が追加されているのを確認
8) フロントパネル上でリスト制御器上で右クリック >> 置換 >> 列挙体
以下の簡単なサンプルをご参照下さい。
|