LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange Behaviour of Wait VI in FPGA


@etuzuner wrote:

I already did what you're suggesting but there is a huge number (I guess it is max. of U32 can get) and it does not change later.

 

I guess I have to think more about the part you pointed. There may be a problem during compilation, not a fatal error, just a logic error about the rollover situation.

 

Thanks,

Emr

 

Exactly,  These types of things can happen when a I32 is subtracted from a U32.  That I32 MUST be limited to no less than 0!  otherwise you risk getting an answer out of your subtraction that is potentially HUGE making it look like the VI hangs ( its not hung, its just waiting a really, really long time.)  


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 13
(1,426 Views)

Hi Jeff, 

 

I couldn't find I32 variable that you mentioned. There is no I32 except # of iteration for For Loop. 

 

Thanks,

Emre

Actor Framework rocks!
Emre TUZUNER
0 Kudos
Message 12 of 13
(1,397 Views)

Wrapping is not limited to a certain type, it happens with all integers.

A U32 5 minus a U32 6 will wrap to U32_max.

So will a U32 5 minus a I32 6, since the result is an U32.

 

0 Kudos
Message 13 of 13
(1,388 Views)