09-22-2016 07:04 PM
@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.)
09-24-2016 08:24 AM
Hi Jeff,
I couldn't find I32 variable that you mentioned. There is no I32 except # of iteration for For Loop.
Thanks,
Emre
09-24-2016 04:51 PM
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.