January 15, 200521 yr Hi again.Would one you of guys be good enough to show me what code is required to make a hydraulics pressure gauge dependent on a hydraulics pump switch. I've developed the pressure gauge okay and a dummy hydraulic pump switch for the job, but I've got no idea how to link them up. I'm guessing that most of the code would be placed in the hydraulics pressure gauge, so I've included that below.Any ideas are appreciated.Cheers,Matthew. (A:Suction pressure,inHg)
January 15, 200521 yr Hi,You could make the needle rotation dependant of the hydraulic switch like:(L:Hydraulic Switch,bool) if{ (A:Suction pressure,inHg) }Hope it helps,Jan"Beatus Ille Procul Negotiis" Jan "Beatus ille qui procul negotiis..."
January 16, 200521 yr Hi Jan.Thanks for that. Did the trick just nicely. I've included the final code for the gauge and the switch below for anyone else who might be interested.Cheers,Matthew.(L:Hydraulic Switch,bool) if{ (A:Suction pressure,inHg) }(L:Hydraulic Switch,bool)Hydraulics Pump(L:Hydraulic Switch,bool) ! (>L:Hydraulic Switch,bool)
Create an account or sign in to comment