I’ve tried to use the new electrical system relays but I was not able to find the corresponding event for driving a relay coil.
Am I missing something?
I’ve tried to use the new electrical system relays but I was not able to find the corresponding event for driving a relay coil.
Am I missing something?
The relay event is power in the line. You decide if you want the relay circuit to open or close when power is supplied.
I found that trying to set this up today I am getting an error. I and calling to a valid line and also tried lot of other lines and this message still appear. Is this broken Asobo?
I don’t think so, it’s used by some of our aircraft like the AT802.
What does your line and relay config look like?
Regards,
Sylvain
Mines are working fine in 2024 too…
R.
relay.1 = Name:LINE_LGEN #ManagedLine:LINE_LGEN_to_PRIINV #Resistance:0.1 #TensionThreshold:0.1 #DisconnectWhenPowered:1
line.28 = Name:LINE_LGEN_to_PRIINV #Connection:CON_L_INV_FEED(L_GEN_BUS,PRIMARY_INVERTER)
connection.10 = Name:CON_L_INV_FEED #Components:BRK_L_INV_FEED,XFMR_PRI_INV
breaker.10 = Name:BRK_L_INV_FEED #RatedCurrent:60 #TripCurveType:IEEE_Vinv
transformer.3 = Name:XFMR_PRI_INV #TargetVoltage:115
major=2
The left Gen to the primary inverter uses a transformer to convert to VAC115. So maybe because the connection feed CON_L_INV_FEED has a breaker and a transformer?
I have even tried just adding a relay to a simple line but no dice it always shows this error.
Besides that, I am just calling the managed line for the relay.
And your logs tab shows no red messages?
don’t think so, will check tonight
I just tried a simple working line that has not connections just to see if it throws an error.
relay.1 = Name:LINE_LGEN #ManagedLine:LINE_LGEN_to_LSTART #Resistance:0.1 #TensionThreshold:0.1 #DisconnectWhenPowered:1
line.8 = Name:LINE_LGEN_to_LSTART #Connection:L_GEN_BUS,L_STARTER_BUS
it looks like you are forgetting that the relay needs a line going to it for example
relay.1 = Name:LINE_LGEN #ManagedLine:LINE_LGEN_to_LSTART #Resistance:0.1 #TensionThreshold:0.1 #DisconnectWhenPowered:1
line.8 = Name:LINE_LGEN_to_LSTART #Connection:L_GEN_BUS,L_STARTER_BUS
line.9 = Name:LINE_LGEN_RELAY #Connection:L_GEN_BUS,LINE_LGEN
Just like real life, the relay needs its own power source. Then, to control the relay, you control the line going to it with ELECTRICAL_LINE_CONNECTION_TOGGLE or ELECTRICAL_LINE_CONNECTION_SET
Edit: I should say signal source, in this case, the signal source is another line
@Flysimware this!
Your relay requires a line being connected to it.
Regards,
Sylvain
I have no errors on my log, and yes the issue is your setting connecting the relay. Basically, the Relay controls a line, but it also needs a line that provides power to it.
R.
Was not forgetting as the SDK to me was not clear with example. We already had the dual lines but was using breakers for both lines and was thinking the relay was just another managed connection on the high power line.
What I am seeing in your example is that you create the low power line to the relay. Which in our case is the 2A L_PWR_BUS breaker. Then the high power 60A L_GEN_BUS line is the managed line. This is very real world setup.
Thanks for sharing this info. And thanks for sharing an example. Wish the SDK had example shared like you shared. ![]()
I didn’t actually look at your diagram when I gave the example. But looking at your second edit I think you’ve got it. the earlier ones still sounded a bit lost. but yes it just doing the same thing as a real relay. Using a low current line to switch a high current line. So you dont light your panel on fire every time you want to turn on the landing lights, or in this case, the starter?
Out of curiosity, does the aircraft you are working on have DC generators?
They are DC.
be careful and set your relays resistance properly, otherwise they will consume an incredible amount of energy, don’t ask me how I find out lamao..
R.