06-16-2016 01:43 PM
When I put a Select inside a For Loop inside a Single-Cycle Timed Loop in LabVIEW FPGA, I get the following error when I try to compile:
"An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
Error -61003 occurred at
Possible reason(s):
LabVIEW FPGA: You cannot include this function in a For Loop when the For Loop is inside a single-cycle Timed Loop."
I haven't seen anything documented that says this isn't allowed; is this a bug, or did I miss some documentation?
The code that causes this error looks like this, inside a SCTL (ignore the stray boolean wire behind the for loop)
I've come up with the code below instead, which does compile in a Single-Cycle Timed Loop, but it looks a bit ugly. Does anyone have a better suggestion?
Solved! Go to Solution.
06-16-2016 05:49 PM
Actually, the documentation for SCTLs seems to mention, rather specifically, that what you are doing should be working.
https://zone.ni.com/reference/en-XX/help/371599L-01/lvfpga/fpga_timed_loop/
I would would think bug but would want to hear what other people think.
06-16-2016 05:57 PM
Can you use Swap instead of Select?
06-16-2016 06:00 PM
@Darin.K wrote:Can you use Swap instead of Select?
No, but thanks for the idea. Swap isn't available on the FPGA palettes.
06-17-2016 10:36 AM
Tried it myself and I received the same error. Interestingly enough, if you use a Case Structure instead of Select everything will work fine.
It might be easier to follow, but no where near as fun or clever as your own solution above.
06-28-2016 05:01 PM
Since there seems to be agreement that this is a bug, can we get a CAR assigned to it?
06-29-2016 11:58 AM
This issue is currently being tracked under CAR# 592391. Please keep an eye on our patches and new releases as normal!
08-01-2018 12:08 AM
I still have the same issue with LabVIEW 2017 Version 17.0f2
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019OLtSAM
08-01-2018 03:50 PM
Hey Marcus,
The CAR submitted for this issue appears to still be in progress. You can work around this issue by using a case structure instead of a Select VI. Thanks!