LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Compiler Bug

While developing a driver for the NI-9853 CAN module I noticed that an indicator was written with an unexpected value. The TRUE case was executed but output "CAN Err Byte" was set to 0:

LucianM_0-1744634117075.png

Code was executed on a cRIO-9035 using LabVIEW 2020SP1. Code is attached in zip file:

 

Lucian
CLA
0 Kudos
Message 1 of 5
(170 Views)

Hello LucianM,

Have you tried adding a small delay before "updating" the indicator? I recall indicators being unreliable sometimes. 

I'll try to replicate this soon.

Messenger2_1-1744736096485.png

 

 

 

Messenger2

If someone's answer helped you find a solution or provided insight into an issue, the best way to show your appreciation and acknowledgement is by giving them a kudo or marking their reply as a solution.
0 Kudos
Message 2 of 5
(97 Views)

@Messenger2 wrote:

 I recall indicators being unreliable sometimes. 

 


I never heard about this and never had this issue but I tried with 1000us and 100ms delay and saw no changes. Indicator is still written with 0 instead of 1.

Thank you for looking into this!

Lucian
CLA
0 Kudos
Message 3 of 5
(78 Views)

I don't have FPGA, so I can't test, but it seems like a bug to me too.

Just an idea for a workaround: What happens if you insert a "Always Copy Function" after the constant?

0 Kudos
Message 4 of 5
(74 Views)

There is no "Always Copy" in FPGA module:)

Lucian
CLA
0 Kudos
Message 5 of 5
(70 Views)