• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Adding Data Strings Together; question

Messages
10,163
Country
us-arizona
Hey all,

How would one add together data strings that would also require a ++ or & ?

Example;

Code:
(A:ELECTRICAL GENALT1 BUS AMPS,Amp) 100 * (A:ELECTRICAL GENALT1 BUS VOLTAGE, Volt) 100 * +

(A:ELECTRICAL GENALT1 BUS AMPS,Amp) 100 * (A:ELECTRICAL GENALT1 BUS VOLTAGE, Volt) 100 * + <--This requires a plus symbol to add the two lines together, but also would need a 100 *. How would you work this? If I add the + on the back, the gauge stops working.
 
Hi
Bil no Idea why you want to add amps and voltage together :)
but as you are using the same multiplier (X100) think this would work
(A:ELECTRICAL GENALT1 BUS AMPS,Amp) (A:ELECTRICAL GENALT1 BUS VOLTAGE, Volt) + 100 *
so the sum of amps + volts *100
if you want different multiplier it might look like this
((A:ELECTRICAL GENALT1 BUS AMPS,Amp) 100 * ) ((A:ELECTRICAL GENALT1 BUS VOLTAGE, Volt) 50 * ) +
Im not sure if the 2nd syntax is right (actually Im sure its not;) ), but it should end up with the sum of ampsX100 + voltsX50
It may need some { instead, I never got into the grouped equations so its all an uneducated guess :)
 
I've used code similar to yours without problems, but the form (A:ELECTRICAL GENALT1 BUS AMPS,Amp) (A:ELECTRICAL GENALT1 BUS VOLTAGE, Volt) + 100 * is the same, so check if you can use that instead. I'm guessing there is a different problem?
 
Thanks Tom. I'll try that.

Mav, Its a 'Battery Temp Gauge' for both left and right batteries. I was throwing together a few items that would effect battery heat; volts, amps, ambient temp, and it had a requirement, battery master on. Getting them to work in a large stack wasn't working. Found that if I put a space between ++ then they worked. + + But I still couldn't get 3 to work, only 2.
 
Ahh Ok ...hmm problem I see is amps puts out (I think) -60 to +60 amps or whatever is setup as max amps...so you will get a cooler temp(by adding the amp output to amb temp) when the battery is discharging, when in fact the more a battery is discharged or charged the temp will get slightly hotter....also what is the measurements on the gauge? I know that lead acid batts will freeze at something like -70f when fully charged, but at -10f when only 50% charged (no idea what temp gel cells ect do)
 
Hey Mav,

No measurements on the gauges. They were blank from what I could see, tall rectangle thin white readouts, no visible numbers.

I didn't know that about Amps. I want this thing to heat up when it starts a turbine. Its a vintage Lear 24B, so antique batteries.

Well, that makes things difficult.
 
From the electro technical point of view you can't add Amps and Volt!! You can multiply them and then you get elctrical performance in Watt.

For ex. AC Bus 115 V
Fuelpump 5 Ampere
This gives 115 * 5 = 575 Watt

But of course in the world of the FS you can do everything and maybe it will work.


Edi
 
No measurements on the gauges. They were blank from what I could see, tall rectangle thin white readouts, no visible numbers.

Did you find this info already? I'm sure you probably did, and if so, please disregard all the rest ...

This is from a LJ31 Pilots Manual found online:

BATTERY OVERHEAT WARNING SYSTEM
On aircraft equipped with nickel-cadmium batteries, a battery overheat warning system is installed to warn the operator of an impending battery overheat condition. The system consists of two thermoswitches installed in each battery, a temperature sensor in each battery, two overheat warning lights, a temperature indicator, and associated aircraft wiring.

BAT 140 AND BAT 160 LIGHTS
The red BAT 140 and BAT 160 warning lights on the glareshield annunciator panel are installed to warn the pilot that a battery is overheating. ... The BAT 140 light will illuminate in the event either battery reaches a temperature of 140°F (60°C). The BAT 160 light will illuminate in the event either battery reaches a temperature of 160°F (71°C).

BAT TEMP INDICATOR
The BAT TEMP indicator is a dual-reading, vertical-scale instrument and is usually located in the copilot's instrument panel. The indicator face consists of a center scale marked from 50°F to 200°F in 25°F increments and two pointers on opposite margins of the scale.

The pic attached below is from a LJ31 and you can make out how the BAT TEMP gauge measurements look.

The reference and pic are LJ31. However, there is a LJ24/25 Cockpit Reference Handbook from CAE SimuFlight that can be found online that shows a LJ24 DC Electrical System Schematic on page 4B-7. I note that it also includes the Battery Temperature gauge plus the BAT140 and BAT160 Warning Lights, and the note that the warning lights are functional only when NiCads are installed. Sounds like the 31, so it's my presumption that the LJ24 BAT TEMP gauge also is not functional with lead-acids, and that it might actually look identical to the LJ31. Just a guess.


To make a long story short, what about just assuming your LJ has lead-acid rather than NiCad batteries, at least for now? The battery temp gauge work will be much easier, right? :)

Again, apologies if you have already found all these documents ... and much more.


Bob

upload_2014-1-29_16-33-17.jpeg
 

Attachments

  • upload_2014-1-29_16-29-16.png
    upload_2014-1-29_16-29-16.png
    175.1 KB · Views: 475
Last edited:
From the electro technical point of view you can't add Amps and Volt!! You can multiply them and then you get elctrical performance in Watt.

For ex. AC Bus 115 V
Fuelpump 5 Ampere
This gives 115 * 5 = 575 Watt

But of course in the world of the FS you can do everything and maybe it will work.


Edi

Hello Edi,

(I was breaking the rules, working outside the laws of the (this) Universe). ;)

Seriously though, I was coming up with a fake gauge (looks real, but uses fake data to actuate the gauge) to move needles and replicate a battery that heats up. Actual data was not needed since actual code strings do not exist for BATT temps. I just needed some digits.
 
Last edited:
Did you find this info already? I'm sure you probably did, and if so, please disregard all the rest ...

This is from a LJ31 Pilots Manual found online:

BATTERY OVERHEAT WARNING SYSTEM
On aircraft equipped with nickel-cadmium batteries, a battery overheat warning system is installed to warn the operator of an impending battery overheat condition. The system consists of two thermoswitches installed in each battery, a temperature sensor in each battery, two overheat warning lights, a temperature indicator, and associated aircraft wiring.

BAT 140 AND BAT 160 LIGHTS
The red BAT 140 and BAT 160 warning lights on the glareshield annunciator panel are installed to warn the pilot that a battery is overheating. ... The BAT 140 light will illuminate in the event either battery reaches a temperature of 140°F (60°C). The BAT 160 light will illuminate in the event either battery reaches a temperature of 160°F (71°C).

BAT TEMP INDICATOR
The BAT TEMP indicator is a dual-reading, vertical-scale instrument and is usually located in the copilot's instrument panel. The indicator face consists of a center scale marked from 50°F to 200°F in 25°F increments and two pointers on opposite margins of the scale.

The pic attached below is from a LJ31 and you can make out how the BAT TEMP gauge measurements look.

The reference and pic are LJ31. However, there is a LJ24/25 Cockpit Reference Handbook from CAE SimuFlight that can be found online that shows a LJ24 DC Electrical System Schematic on page 4B-7. I note that it also includes the Battery Temperature gauge plus the BAT140 and BAT160 Warning Lights, and the note that the warning lights are functional only when NiCads are installed. Sounds like the 31, so it's my presumption that the LJ24 BAT TEMP gauge also is not functional with lead-acids, and that it might actually look identical to the LJ31. Just a guess.


To make a long story short, what about just assuming your LJ has lead-acid rather than NiCad batteries, at least for now? The battery temp gauge work will be much easier, right? :)

Again, apologies if you have already found all these documents ... and much more.


Bob

View attachment 16722


Nice find Bob! The version I found was for the LJ25 panel, must taller then that gauge, mounted on the upper area of the right side of the panel. They look like something from an old U-Boot. I hadn't been able to find a photo of an actual one, but have the version copied out of the manual that I made the gauge by.

Interesting though. Man, I find all these dang snags in planes, lol... I have already burned the Ambient Occlusion shadings on the panel. I would hate to have to take it back out. I really like how it looks.
 
Hi Bill
you should by now know when you jump down the rabbit hole you can end up is some strange places :)
actually Edi hit the nail on the head Ohms law could be used here and an output as wattage, you will have to tone down the numbers maybe by division with say 10(depends on what scale of change your looking for)
so 24v X 10a = 240w devide the number by 10 or 100 then add it to amb temp :)
 
OK LH first as above you need to find the watts i.e. voltage x amps. Then from the watts you can calculate temperature which is
1 watt = 1 joule/sec
But it doesn't stop there because you then have to find the specific heat of the material being heated. Water for example is
4.187 kJ/kgK
So the calculation would be similar as follows: for 1800watts,
Energy = 1800*60sec = 108000Ws = 108kJoules
The rise in temp will be = 108kJ/4.187kJ/KgK = 25Kelvin, for 1 kg of water.
Bear in mind that if you are not using a lead acid battery then your specific heat calculation is for a solid.
Your battery should read a negative amp load if being discharged under load and a positive when being discharged so the aim is to have
the ammeter more or less at zero while in use and being simultaneously charged.
The closer to zero the less heat is being produced.
Except in the case of a B787 your battery heat output would fluctuate up and down. So add a fan with an output that
can compensate for a maximum load situation.

vololiberista
 
Last edited:
Nice find Bob! The version I found was for the LJ25 panel, must taller then that gauge, mounted on the upper area of the right side of the panel.
Interesting, Bill.

I imagine every LJ24 out there, today, has different instrumentation. Of the ones I can see online, most don't have a BAT TEMP indicator but in my opinion, the few that do certainly look a lot like the pic I posted above. Here are a couple of aircraft. The Battery Temp gauge is on the CoPilot side, lower right in each case:

1976 LJ24F
CoPilot side, lower right.

LJ24D
CoPilot side, lower right. Note the black embossed label "LEAD ACID BATTERIES INSTALLED" and the copper colored foil that covers the battery temp indicator.

At any rate, maybe, probably, the LJ24 temperature indicator scale is the same as in the LJ31: 50 to 200 F. My unsolicited advice is to assume lead-acid, shelve the need of an operational battery temp indicator, and certainly not go down the rabbit hole of trying to extrapolate ohms law into a model of what a temp sensor attached to an old aircraft battery would realistically read.

They look like something from an old U-Boot..
Indeed. Especially the 1960's Nav/Comms and radar, huh? Only 20 years advanced from WWII !

Bob
 
Last edited:
Ohh,
i'm so sorry...
But of course if you only want to make a fake gauge there is absolutly no need to use Amps, Voltages, Watts, Ohms and so one.

Edi
 
Bill,

I looked back at all the pictures I have to see if I had a better (or any) picture of the Batt temp gauge, and I can't find any more than what I have already sent you.

That link that Bob has to the Airliners picture above is one of the better ones that I have seen as well.

Greg
 
Indeed. Especially the 1960's Nav/Comms and radar, huh? Only 20 years advanced from WWII !

Bob

LOL... Roger that. I didn't realize it was only 20 years later. Amazing advances for so short a period of time.


Edi, no worries.


Thanks Greg and thanks for those photos. I use them so much you would be amazed. They are golden info concerning this plane.
 
From the renders I have seen so far, I can tell they have been very useful! Nice work.

On the off chance that i would run into another one in the near future, is there anything that you are still lacking as far as reference shots?

Greg
 
Greg, yes. The area behind the front seats, the cockpit back area and around the floor and sides by the pilots legs. Finding details around there is hard, especially around the seats. I still haven't found any good pilots seats photos for a 20 series.

I wonder if they have some around Gila Bend in Arizona? I live about an hour from there. If I could get access to one, I could photograph it.
 
LOL... Roger that. I didn't realize it was only 20 years later. Amazing advances for so short a period of time.

The exterior of the Learjet 23 & 24 still looks futuristic (and very fast) 50 years after first flight, doesn't it? But the original instrumentation gives away the age and era, and the contrast between the two is magnificent.

I hope your bird goes with all the original gauges. It will be fun to see and fly. โชคดี, Bob
 
Back
Top