Distributed Control & Automation Framework (DCAF)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with FPGA configuration in DCAF

Solved!
Go to solution

Now I am getting a different error:

 

Error 538354 occured at error generator.vi

Possible Reasons:
Type mismatch detected. Named fpga resource does not exist in running lvbitxfile: SGL Control.

 

In my FPGA, I have eight variable that are basically a duplicate of the example found in the DCAF FPGA module:

SGL Control, SGL Indicator, I32 Control, I32 Indicator, FXP Control, FXP Indicator, Boolean Control, Boolean Indicator

 

I don't understand the error. The FPGA vi runs fine on its own, and it compiles correctly.

0 Kudos
Message 11 of 21
(2,997 Views)

I corrected the RIO FPGA value, but now I have a different error:

 

Error 538354 occurred at error generator.vi

Possible reasons(s):

Type mismatch detected

Named fpga resource does not exist in running lvbitx file:

SGL control.

 

In my FPGA, I have 8 variables that are a copy of the example found in the DCAF FPGA Module. It compiles and runs fine. The tags are all defined in the DCAF editor.

FPGA.PNGFPGA Module Config.PNG

0 Kudos
Message 12 of 21
(2,995 Views)

Sorry for the double post. I thought it didn't post correctly because I didn't see a Page 2 from the first page. I didn't realize the link to Page 2 was positioned below my first post.

0 Kudos
Message 13 of 21
(2,990 Views)

So are there going to be screenshots of your working configuration? I would also like to know how the FPGA was setup, any LabVIEW object classes, other modules/VIs you used besides the FPGA.

0 Kudos
Message 14 of 21
(2,971 Views)

For my test I just used the basic template and deployed that VI under my cRIO 9030. The .pcfg is attached but you'll have to change the extension back (last I remembered ni forums blocked .pcfg files from being attached). My FPGA VI is pretty simple.

 

FPGA.png

 

Based on the error you are receiving I would be interested in checking the .lvbitx that is configured under your cRIO target to see if it does have the necessary controls. If you open up the lvbitx file in a text editor the top is just xml which should tell you the available registers.

Matt J | National Instruments | CLA
0 Kudos
Message 15 of 21
(2,963 Views)

I created a similar VI using your example, and I still get a mismatch error:
Mismatch.PNG

 

I checked the bitfile, and it has all the registers: I16_In, I16_Out, Boolean_In, Boolean_Out. Do you have any thoughts on what is happening?

0 Kudos
Message 16 of 21
(2,958 Views)

My best guess is that either the lvbitx that is configured to run under the target is not the correct bitfile or that you haven't redeployed the bitfile so it is referencing an older version of the bitfile which does not have those registers.

 

If you attach your project and the configuration I can take a look.

Matt J | National Instruments | CLA
0 Kudos
Message 17 of 21
(2,951 Views)

Here is a zip file with the labview project and configuration file.

0 Kudos
Message 18 of 21
(2,946 Views)

I don't know if this is related, but I also tried creating an FPGA with functions bound to shared variables, and using the Shared Library Module instead of the FPGA module. When I use the Deploy Tool, I always get this error:

Shared Variable Error.PNG

I checked the library file, and it has the Check Errors.vi in it, so I don't understand why I'm seeing this error. It's not as important as the DCAF FPGA module, but I do need a module I can use that can interface with the FPGA.

0 Kudos
Message 19 of 21
(2,935 Views)
Solution
Accepted by ilnus

Thank you Jacobson for your help. Now it works.

I learned we have to:

  1. set under the cRIO Configuration: "home:\lvuser\main.lvbitx" (even if it doesn't look correct)
  2. set under the cRIO Configuration: "RIO0FPGA Module.png

     

  3. Not sure if it is necessary, but I've also used RIO0 instead of "rio://10.0.0.99/RIO0" under FPGA Module Configuration->Rio Device:FPGA Module.png

     

 

 

Message 20 of 21
(2,895 Views)