0

Integer Math confusion

Forrest 4 years ago in IQANdesign updated by Thomas Moberg (System support) 4 years ago 3

I am using 4.07.

I have an integer Match channel converting a Vin from an optional lever to a -100 0 100 output. This results in a -100 when the optional input isn't present. I put a dual object under the limiting column with a 100/0 and set it to Multiply[%] in an attempt to output 0 when the dual channel shuts it down. This has no impact on the output. 
Its got to be something simple here, but I am stumped.

Hi Forrest,

Have you tried a dual object in the controlling side ? this is an object code example but I could make a Qcode example too if that helps.  The function parameter enables the Joystick signal.

that should work. thanks. 

+1

Hello Forrest.

Sounds as if you have the error value on the VIN set to -100.

Set the error value to 0 instead and it should fix the issue.

It is also possible to check the status of channels and use that in the logic.

So you could check if the status of the VIN is = to OK.

If it is not you set the value to 0.