VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use LABView FPGA in the VeriStand Scan Engine Custom Device

Solved!
Go to solution

Hello I want to use the FPGA in Veristand. I followed this link to do it :

 https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGlLCAW&l=en-US

However when I import the file LABView real-time in Veristand, It works, but I don't have the user variable that I used in LABview.

Maybe the probleme is I have Labview 32 bits 2021 and Veristand 64 bits 2021 and I found that Veristand is compatible only with labview 64 bits. But I use a compactRIO that is only compatible with Labview 32 bits? Maybe somone can help me.

 

Thank your for your answers.

Léo

0 Kudos
Message 1 of 7
(211 Views)

Hi Léo,

You should have no problem at all using LabVIEW 2021 FPGA 32-bit to make a bitfile, and then using VeriStand 2021 and the Scan Engine and EtherCAT Custom Device to interface with that, deploy to RT, and execute against this.  Including accessing those user variables. 

Can you provide more information?   i.e. When following the steps in the KB -- at what point does your experience stop working and looking like the screenshots shown there?

 

best of luck,

Darin Gillis
NI - Chief Product Owner - VeriStand
Message 2 of 7
(195 Views)

Hello,

Firstly Thank you for your answer. 

Okay I will show you how I import the Labview FPGA File. 

 

1. I add the cRIO in Labview, discover the FPGA, and put the module 9205 in it.

Grusta07_0-1655882850487.png

After I create a FPGA Targer VI. 

I did a little easy programm to see if it works.

Grusta07_1-1655883003128.png

The one thing that I'm not sure, if I have to put the while loop?

 

And the second, I use a NI-9205 without the D-sub

Grusta07_2-1655883089426.png

And in the labview FPGA it is the input of the 9205 with the sub. 

Grusta07_4-1655883222047.png

So I found this : 

Grusta07_5-1655883332983.png

And I said to do ACH0 of my 9205 I have to do :Al0 - Al8.

After this I Clicked on the run 

Grusta07_6-1655883571652.png

The compile started, and 15 m after it was done. 

 

I went on veristand in configure COntroller -> custome devices - scan engine - local chassis - user variables and I add the fille that was juste created. 

Grusta07_7-1655883723431.png

Grusta07_8-1655883796454.png

 

So that it, tank you for your help.

 

(I have another problem it's when I did this all thing, after the veristand can't anymore run 

Grusta07_9-1655883882130.png

 

Best regards

 

Léo

 

 

 

 

 

0 Kudos
Message 3 of 7
(180 Views)
Solution
Accepted by topic author Grusta07

I suggest first establishing that you have all of the Hardware set up correctly and VeriStand, Scan Engine and EtherCAT Custom Device can discover your modules -- and don't jump straight into FPGA customization on that device until you establish this is working.

Are you able to achieve and outcome like this? where you become "Connected" and can read some I/O data back from one of your C-Series modules.    [this does not require FPGA Bitfile compilation at all]

Darin_G_0-1656078381540.png

Shown here is my cRIO-9033 with an NI 9213 C-series module in Slot 2. I used NI MAX to get the cRIO configured and firmware updated and software installed.  Then I used VeriStand System Explorer to add the Custom Device and then Discover the modules.  Then deployed, went back to VeriStand and dragged one of the module channels to my screen.

Darin Gillis
NI - Chief Product Owner - VeriStand
Message 4 of 7
(154 Views)

Hello, 

 

Yes I have already done this part (veristand, scan engine...), I did a little temperature control and it works with the inputs and outputs. And so now I want to measure a speed with the same program and it's why I go to labview fpga.

0 Kudos
Message 5 of 7
(149 Views)

One thing that can cause that TCP error is related to VeriStand deployment getting hung up trying to ask for a WebDAV password on the RT target -- or at least today after setting a password on my cRIO I started occasionally seeing this user/pass prompt from VeriStand.

Try rebooting the RT target, restarting the VeriStand editor then doing a fresh deploy.  
Odds are you may find this prompt pop up,

MicrosoftTeams-image (83).png
if you do and set the user/pass correctly -- your deploy should work fine.  I've seen the TCP error when this dialog should have popped up but didn't for whatever reason (issues with local networking configuration? unclear)

This user/pass prompt has a troubled history, can read more about it here: 
https://forums.ni.com/t5/NI-VeriStand/WebDAV-Dialog-on-Deploy/m-p/3603331

Darin Gillis
NI - Chief Product Owner - VeriStand
Message 6 of 7
(108 Views)

Actually I have one other idea, perhaps more likely in your case, regarding the cause of the TCP error that may be what is going on here.

When you connect to a cRIO using LabVIEW FPGA, LabVIEW will show you a dialog that says that there's a VeriStand application running on the cRIO and it must be shut down in order to proceed with the deployment associated with the VI Run button action.  This enables LabVIEW RT/FPGA control of the cRIO, however it will cause all subsequent attempts of VeriStand to connect with that same TCP error.

To get VeriStand restarted on the cRIO and ready for VeriStand deployment, there's a handy command to restart the engine on the RT target:

Darin_G_0-1656631608028.png

once that command completes, the RT target will be VeriStand ready again, and now future deploys should work without a TCP error.

 

Darin Gillis
NI - Chief Product Owner - VeriStand
Message 7 of 7
(102 Views)