12-01-2022 10:14 AM
Hello,
Everytime I attempt to compile ANY FPGA .vi for any target, I get multiple "Error 6" messages and the compile fails.
Any suggestions on what to do?
12-01-2022 10:29 AM - edited 12-01-2022 10:30 AM
Your computer's NI software configuration may be corrupt. Error 6 is a file missing code, see https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P82VSAS&l=en-US
Any other info you can provide? Maybe try on another computer?
12-01-2022 03:31 PM
The error codes I receieved on one attempt:
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in niFpgaLocateAndCopyAdditionalIncludes.vi->niFpgaArbReadWriteGetInstantiation.vi->nirviGetInstantiation.vi->nirviGetInstantiation.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_IVCurve_UKfgx2aQzOE\NiFpgaArbRW.vhd
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in niFpgaLocateAndCopyAdditionalIncludes.vi->nifxpmath_Convert_Instantiation.vi->nifxpmath_Convert_Instantiation.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_IVCurve_UKfgx2aQzOE\PkgNiUtilities.vhd
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in nirioStockModGenUtils.lvlib:StockOutputVhdlAndInstantiation.vi->NiCrioStock_IO_EmitCode.vi->niFpgaEmitCode_nirviEIOImplementation.vi:6970002->niFpgaEmitCode_nirviEIOImplementation.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_IVCurve_UKfgx2aQzOE\Crio9233StartDoNode.vhd
There are many many more....it seems like there is a error reading the ".vhd" files at this directory, however, in my "C:\NIFPGA\compilation\actormeasure_904063383838_IVCurve_UKfgx2aQzOE\" directory, all of these files are located in the subfolder: "C:\NIFPGA\compilation\actormeasure_904063383838_IVCurve_UKfgx2aQzOE\source_files". Why is it pointing to the parent directory?
12-03-2022 01:10 PM
Another attempt:
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in niFpgaLocateAndCopyAdditionalIncludes.vi->nifxpmath_Div_EmitCode.vi->nifxpmath_Div_EmitCode.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_Quench_WjJ5P0p-oIA\FxpDivWrap.vhd
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in nirioStockModGenUtils.lvlib:StockOutputVhdlAndInstantiation.vi->NiCrioStock_IO_EmitCode.vi->niFpgaEmitCode_nirviEIOImplementation.vi:6970002->niFpgaEmitCode_nirviEIOImplementation.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_Quench_WjJ5P0p-oIA\Crio9233StartDoNode.vhd
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in niFpgaLocateAndCopyAdditionalIncludes.vi->niFpgaGenerateStaticInstantiationFromLVData.vi->nirviGetInstantiation.vi->nirviGetInstantiation.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_Quench_WjJ5P0p-oIA\forloop.vhd
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at Copy in nirioStockModGenUtils.lvlib:StockOutputVhdlAndInstantiation.vi->NiCrioStock_IO_EmitCode.vi->niFpgaEmitCode_nirviEIOImplementation.vi:6970002->niFpgaEmitCode_nirviEIOImplementation.vi.ProxyCaller
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_904063383838_Quench_WjJ5P0p-oIA\Crio9264IoNode.vhd
I tried compiling on another computer with a fresh install of LabVIEW, and got the same results...
12-03-2022 02:22 PM
since this is with any FPGA VI compile your configuration needs to be redone. Uninstall and reinstall (all).
nobody can debug what you are posting and it is way easier to uninstall and reinstall.
12-05-2022 04:28 PM
I have gone to another computer, with a FRESH install of LabVIEW, and compiled the attached VI for a cRIO-9034 with a NI9263 and 3x 9238 cards (its a perpetual while loop which adds two numbers together, nothing more).
I compile it one time with no errors and am able to run it.
I go into the VI, change one of the numbers to add, try to compile it, and it fails with this error:
An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error 6 occurred at an unidentified location
Possible reason(s):
LabVIEW: Generic file I/O error.
=========================
I/O operation aborted.
C:\NIFPGA\compilation\actormeasure_FPGATarget4_debugging_RRU96d4-R1Y\PkgNiUtilities.vhd
I have both Vivado 2019 & Vivado 2021 installed.
Is there any suggestions here?
Can anyone else reproduce my results? Something seems to be broken and it is unclear what the culprit is.
12-05-2022 05:04 PM
This only happens with my master project.
When I recreate the VI in a brand new project, everything works fine.
I have tried deleting a readding targets into my project, however, it doesn't work...
Is there some cache associated with my project that I can reset?
12-06-2022 05:47 AM
Could you post your project as well? The VI seems fine.
12-06-2022 12:33 PM
I have discovered what the issue was:
My .lvproj seemingly had too many cRIO targets associated with it.
In more detail, I have created two FPGA .VIs which support a multitude of different cRIOs, FPGAs, and C series cards.
You can see below the different configurations which I have in my project:
(I have blocked out the ones with IP addresses listed, the rest are "dummy" targets which I compile bitfiles for.)
Because LABVIEW doesn't support dynamically changing the cRIO and C series cards (I hope this changes), I have to manually add all targets and the unique configuration of cards that will be used with my program and compile them (I have a VI which allows mass compilation of bitfiles, thankfully.)
Recently, I went to add another configuration: 9040-9269-9252-9252-9252-9252-9252-9252-9252
The addition of this target seemingly pushed my project over the edge.
I noticed this by watching my RAM consumption when loading my project: The entire project and all cRIO targets, cards, etc. get loaded into RAM when the project is opened, however, at a certain point, my RAM consumption would no longer increase, yet, things were still "loading". (Because I am coding for cRIOs, I use 32-bit LABVIEW to make the bitfiles [ultimately I compile my Windows executable in 64-bit LABVIEW], and my project with this new target was hitting the RAM limit of 2 GB for 32-bit LABVIEW).
So, upon deleting this new configuration from my project and attempting FPGA compiling, everything works fine.
HOWEVER, I am left with the problem that I cannot add this new target which I need to compile my bitfiles for.
Apparently, NI is bringing cRIO FPGA programming to 64-bit LABVIEW, but, it isn't released yet.
Until it is, I am left with this limiation with only annoying workarounds (multiple projects).
12-06-2022 02:00 PM
Thanks for clarifying!
How about making a new project file for this target? You are not using the targets all at the same time so I do not think they need to be in the same project.