LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA 8.0 Compliation Failure-- Error Code 6

I've recently begun having some issues with compilation failures, resulting in an error code 6. Unfortunately, suggestions on this topic in other posts have not fixed the problem.

I'm trying to compile code for a 9505 Servo Drive Module onto a cRIO-9103 FPGA (there is also a cRIO-9004 attached). To test the error, I put together a very simple VI that just sets the drive direction and offers control of the motor. I've attached a screenshot of the VI as well as the actual VI at the end of this message for anyone who may have a similar setup and who can test the code. The code was written in LV 8.0.1, using LV FPGA 8.0. I have NI-RIO 2.0.1 installed on my computer.

Here's a copy of the last few lines of the compile report, which includes the error code (the whole compile report is included as an attachment):

Entity <XNode_h14268238_n3a4_000007e8> compiled.
ERROR:HDLParsers:837 - "C:/NIFPGA80/srvrTmp/LOCALH~1/CRIODE~1/XNode_h14268238_n3a4_000007e8.vhd" Line 106. Index size for dimension 1 of s000059e4 is not 8.
-->

Total memory usage is 87596 kilobytes

Number of errors   :    1 (   0 filtered)
Number of warnings :    1 (   0 filtered)
Number of infos    :    0 (   0 filtered)

ERROR:Xflow - Program xst returned error code 6. Aborting flow execution...




I have been able to compile code that utilizes these functions for the 9505 in the past without any errors. I started seeing this error after accidentally saving the Drive Direction typedef in LV 8.2 in order to debug some supporting code... I couldn't save the typedef back to LV 8.0.1, so I went through and uninstalled FPGA 8.0 and reinstalled it. I came across the same error again, so I created a new VI (the one included below) in a new project and tried another compile but came across the same error.

Has anyone had problems with this in the past? More importantly, does anyone have suggestions on how to fix it? I think I might try to uninstall both NI-RIO and FPGA 8.0 and start fresh from there, but I'm not sure if this will fix things. I'm also a little confused as to what is actually causing the error-- is it the change to the typedef that triggered it, or is there something else under the hood that is causing the compiler to fail? It might be a good sanity check to see if anyone else has problems with the VI that I've included, but please be careful not to corrupt your own development environment with the file I've provided in case there is something wrong with the file.

Thanks for your help...
Mountain Goat


0 Kudos
Message 1 of 4
(3,585 Views)
I should also note that I haven't had problems compiling other VIs that don't use the Drive Direction typedef in the same development environment, so the error seems to be stemming from something in the motor drive/drive direction code.


0 Kudos
Message 2 of 4
(3,582 Views)
Mountain Goat,

I added your VI to a project on my computer and was able to compile it successfully.

It certainly sounds like the problem stems from the '_nicrio_cRIO_9505_DriveDirection.ctl' file you mentioned.  If it is doable I think starting with fresh copies of both NI-RIO and LabVIEW FPGA may be the easiest way to resolve this issue and prevent future problems.

Let us know how that turns out.

Regards,

Simon H
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,542 Views)
Hi Simon,

Thanks for running that check for me, I really appreciate it. Since I posted, I have decided to go through with a fresh install-- from LV on down-- as uninstalling/reinstalling LV FPGA and NI-RIO didn't work. I'll post again when I get things up and get a result.

Mountain Goat
0 Kudos
Message 4 of 4
(3,537 Views)