SETCOMMAND function does not seem to respond properly

5 years 4 months ago #29530220 by TechSupport
You can try setting up the serial as first priority and analog as 2nd priority.

When you run the script, it should in a sense allow the serial commands to take priority, while your analog should still work. You can always mute the serial in the "Run" tab by clicking on "Mute" next left of the slider.

Or perhaps you could try some loops in the script that would tell the controller to switch between the analog and the serial.

You could in a sense use a var variable. There are 16 total. Since you can be connected to the serial, you would just make adjustments as needed.

if var 1 = 1 then
goto serial
else
goto analog

Serial:
'disable analog inputs

if var 1 = 1 then
goto serial
else
goto analog
wait(1)
end if

analog:
'place all analog stuff here along with the enable for the actual inputs.

if var 1 = 1 then
goto serial
else
goto analog
wait(1)
end if

So based on what you assign as var 1, could tell the controller where it needs to go.

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds