0
Answered

Local Variables

Joe 5 years ago in IQANdesign updated by Gustav Widén (System support) 5 years ago 2

Can't find this in the literature: 

Are local variables always the same variable type as the channel.  In other words, are local variables within an IMAC, integer values; local variables within a MAC - reals?

Hello Joe.

No, you use real values inside the channel and then the result is rounded to the closest integer value.

Answered

A clarification; you may use any of the value types Boolean, Real or Integer as Qcode local variables within the channel. 
The assignment of the local variable will determine its value type. 

If Result is a different value type than the channel, the value will be cast to the value type of the channel, as Thomas explained.