开云体育

just checking... are there any direct ways to set internal SensorB value to physical SensorA? #logixng


 

I know of the cumbersome IF-THEN-ELSE solution, but was wondering if there was something simpler, like some way to perform "SensorB = SensorA"??
?
--
Jim Moomaw
Portland, OR
- Willamette Model Railroad Club (WMRC)
- NMRA, Pacific NW


 

Jim,

?????? 1:? LogixNG: IQ:AUTO:0001
?????? 2:????? ConditionalNG: IQC:AUTO:0001 ::: Startup
?????? 3:????????? ! A
?????? 4:????????????? Digital Formula: setSensorState("IS101", getSensorState("ISCLOCKRUNNING"))
?????? 5:????????????????? ?* E1
?????? 6:??????????????????????

Dave Sand


----- Original message -----
From: "Jim Moomaw - PDX via groups.io" <JMOOMAW_COM=[email protected]>
Subject: [jmriusers] just checking... are there any direct ways to set internal SensorB value to physical SensorA?
Date: Wednesday, February 26, 2025 2:43 PM

I know of the cumbersome IF-THEN-ELSE solution, but was wondering if there was something simpler, like some way to perform "SensorB = SensorA"??
?
--
Jim Moomaw
Portland, OR
- Willamette Model Railroad Club (WMRC)
- NMRA, Pacific NW


 

Works like a champ.? Perfect.? Digital Formula... good for a million tricks.?
?
Now that I know what to search for, I see you've answered this one before... /g/jmriusers/message/223894 .? Although in Robin's and my defense, a search on these functions at JMRI site shows no helpful results, and the Chpt9 discussion doesn't show how to format the action as you have... and not what I would consider obvious, so your help is invaluable here.?
?
Tx.
--
Jim Moomaw
Portland, OR
- Willamette Model Railroad Club (WMRC)
- NMRA, Pacific NW