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

cancel
Showing results for 
Search instead for 
Did you mean: 

ホストPC(デスクトップPC)からRTターゲット(PXIe)に.scrなどのファイルをプログラム的に転送する方法について

キャプチャ.PNG

labview初心者です。

ホストPC(デスクトップPC)からRTターゲット(PXIe)に.scrなどのファイルをプログラム的に転送する方法について知りたいです。

 

目的:ホストPC側にあるスクリプトファイル(C:/user/program/script/xxxx.scr)をターゲット側の(C:/ni-rt/以下)にコピーしたい

 

プロジェクト内のマイコンピュータ側でcopy.viを実行したとき

①コピー元として、ソースパス(C:/user/program/script/xxxx.scr)を指定する。

②コピー先にターゲットパス(C:/ni-rt/scripts)を指定する。←ここで恐らくホスト側のパスを参照してしまっておりnot open file errorが出現します。

 

プロジェクト内のターゲット側でコピー.viを実行すると、①の段階で、コピーしたいパスにあるファイルが見つからない(ホスト側のパスとして処理されない為ファイルが見つからないエラーが発生する)

 

ここでプログラム的にファイルを転送したい場合、良い方法はありますでしょうか。

宜しくお願いします。

0 Kudos
Message 1 of 3
(792 Views)

Hi sakag,

 


@sakag wrote:

I would like to know how to programmatically transfer files such as .scr from my host PC (desktop PC) to my RT target (PXIe).

If I want to transfer files programmatically here, is there a better way?


Explore the example projects found in the example finder and in the "New projects" dialog! There are several examples explaining how to exchange data between host and RT target…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(735 Views)