LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RTEXEにすると.vIが壊れる

開発環境でFPGA .viをコンパイルし、cRIOのRT.viの方で【FPGAリファレンスを開く】を用いたプログラムを作成しました。 

開発環境では問題なく動作するのですが、いざコンパイルしスタートアップに設定実行するとうまく動作しません。 

デバッグモードで確認すると【FPGAリファレンスを開く】が半透明になっており、左上の実行ボタンが壊れていました。 画像参照

 

対策・理由等ありましたら、ご教授願います。

ちなみにプロジェクト内の変数等は全部アルファベットor数字で名前つけており日本語は無いように製作しております。

 

0 Kudos
Message 1 of 3
(736 Views)

@morichan wrote:

I compiled FPGA .vi in the development environment and created a program using [Open FPGA Reference] in cRIO's RT.vi.

It works fine in the development environment, but when I compile it and set it to startup, it doesn't work.

When I checked in debug mode, [Open FPGA Reference] was translucent and the upper left run button was broken. image reference

 

If you have any countermeasures, reasons, etc., please let me know.

By the way, all variables in the project are named with alphabets or numbers, and we are making it so that there is no Japanese.

 


Is There a Difference in How I Reference My FPGA Target?

Try not to include the IP Address in the Resource Name input of Open FPGA VI Reference

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 3
(683 Views)

I have a myRIO Project that uses FPGA.  I opened the Project, opened the "Target" part (that runs on the myRIO), and opened the VI that I called "Start FPGA".  I deleted the first function (Open FPGA VI Reference), then recreated the steps I used to add it back in.

  1. Insert a "blank" Open FPGA VI Reference just to the left of the "Reset" Method.  [I have an "Error In" as the input to Open FPGA VI Ref, which you are missing, otherwise I would say to insert just after "Error In"].When I do this, it says "No Target".
  2. Right-click, and choose "Configure Open FPGA VI Reference".   I chose "VI", and then found the FPGA VI that I was using.  Click OK.  This should fill in the Icon for the FPGA VI (if you made one), and should fill in the box below with the (FPGA) Target.
  3. Click the "Resource Name" input (upper left) and Create Constant.  Right-click the little selector triangle and choose a Target.  I chose the first (generic) target, "RIO0".
  4. You should see everything looking OK.  See if it runs.  [It worked for me].

 

Bob Schor

0 Kudos
Message 3 of 3
(666 Views)