Quantcast
Viewing all articles
Browse latest Browse all 69077

Preallocated clone subvi appears to be intermittently nonresponsive. What's wrong?

Rather than look long and hard for what would be an elegant vi I made my own. I don't understand why it's periodically not working:

 

I have a situation where I want to delay the change of an integer value by a specific time. This is within a deterministic loop and cannot be blocking. OK, so I made the attached "Delay Integer Change" vi, which worked great at first.

 

After other code changes and multiple deployments to a crio 9068, this VI suddently became nonresponsive. While running interactively, the owning VI appears to work fine, debug indicators on wires leading to this vi display correct data, but this VI does not update its FP to correspond with the values wired to its terminals. If I run it by itself on the target and play with the front panel it works as expected/designed.

 

I am of the impression that I can use a while loop and shift registers and NOT have it behave as a FGV (i.e. can be used in different places for unrelated purposes) as long as it's reentrant. This problem occured while configured for preallocated clone reentrance.

 

What am I doing wrong? I'm hoping that this will be part of a reliable embedded application and would love to learn from a mistake within.... I will humbly accept any and all suggestions on how to do this better/smarter/easier.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 69077

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>