Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Visibility

Featured Replies

I am programming a FIP that display an image when the temperature of the cabin is an specific range. I can program the image to be visible when the temp is higher than a value and also when is lower than another value, but i cannot do both at the same time. I can do this:

 <Visible> (L: CabinTemp, celsius) 27.5 &gt;= </Visible>

Or this:

<Visible> (L: CabinTemp, celsius) 35 &lt; </Visible>

 

But the programme does not work if I try

 

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  AND (L: CabinTemp, celsius) 35 &lt;</Visible>

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  (L: CabinTemp, celsius) 35 &lt; AND</Visible>

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  AND 35 &lt;</Visible>

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  35 &lt; AND</Visible>

 

I tryed all those posibilities and none works. As soon as i try any of those lines, the image is there all the time, without restrictions. What amd I doing wrong?

Edited by Ala13_Kokakolo

Is the use of different variables (CabinTempPAST vs CabinTemp) intentional?

Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

Sys1 (MSFS20+24/XPlane12+11): AMD 9800X3D, water 2x240mm, MSI MPG X670E Carbon, 64GB GSkill 6000/30, nVidia RTX4090FE
Alienware AW3821DW 38" 21:9 GSync, 2x4TB Crucial T705 PCIe5 + 2x2TB Samsung 990 SSD, EVGA 1000P2 PSU, 12.9" iPad Pro
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, Twin TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Sys2 (P3Dv5/v4): i9-13900KS, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@60Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys3 (DCS/P3Dv4/ATS/ETS): AMD 7800X3D, MSI MPG X870E Carbon, Noctua NH-D15S, 64GB GSkill 6000/30, EVGA RTX3090
Alienware AW3420DW 34" 21:9 GSync, Corsair HX1000i PSU, 4TB Crucial T705 PCIe5 + 2TB Samsung 970Evo Plus,
TM TCA Officer Pack
, Saitek combat pedals, TM Warthog, TM RS300 FF wheel/pedals, Coolermaster HAF XB case

  • Author
5 minutes ago, Bob Scott said:

Is the use of different variables (CabinTempPAST vs CabinTemp) intentional?

It was a typo when I was copy pasting from original into the post. That is not the issue. Both vars are the same. One reads the value one second before the other, so it knows if the temp is going up or down, but it does not matter wich of the two I use. When I was copy pasting the code to post it here I took it from two diferent files, but it is the same. I have just corrected it the original post so is clear.

Edited by Ala13_Kokakolo

  • Commercial Member
1 hour ago, Ala13_Kokakolo said:

I am programming a FIP that display an image when the temperature of the cabin is an specific range. I can program the image to be visible when the temp is higher than a value and also when is lower than another value, but i cannot do both at the same time. I can do this:

 <Visible> (L: CabinTemp, celsius) 27.5 &gt;= </Visible>

Or this:

<Visible> (L: CabinTemp, celsius) 35 &lt; </Visible>

 

But the programme does not work if I try

 

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  AND (L: CabinTemp, celsius) 35 &lt;</Visible>

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  (L: CabinTemp, celsius) 35 &lt; AND</Visible>

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  AND 35 &lt;</Visible>

<Visible> (L: CabinTemp, celsius) 27.5 &gt;=  35 &lt; AND</Visible>

 

I tryed all those posibilities and none works. As soon as i try any of those lines, the image is there all the time, without restrictions. What amd I doing wrong?

RPN uses Postfix notation, the operator comes after the operands, not between them - and all RPN operators are lower case in AAO - please check the tables in the AAO manual. All commands and operators must be written exactly as they are printed there, including upper/lower case characters.

<Visible>(L:CabinTemp, celsius) 27.5 &gt;=  (L:CabinTemp, celsius) 35 &lt; and</Visible>

Take special care with the space characters, they are among the most critical thing that can go wrong. There is no space between L: and the variable name, but there is one after the comma. And there must be exactly one between all operands, operators and commands.

I would suggest that you try the code in the RPN Editor in AAO first, with the debug window open. Then, copy and paste the code from the LOWER textbox, the grey one, where you can see the compiled code - this removes the "dots" and replaces them with spaces.

Edited by Lorby_SI

LORBY-SI

  • Author
16 hours ago, Lorby_SI said:

RPN uses Postfix notation, the operator comes after the operands, not between them - and all RPN operators are lower case in AAO - please check the tables in the AAO manual. All commands and operators must be written exactly as they are printed there, including upper/lower case characters.

<Visible>(L:CabinTemp, celsius) 27.5 &gt;=  (L:CabinTemp, celsius) 35 &lt; and</Visible>

Take special care with the space characters, they are among the most critical thing that can go wrong. There is no space between L: and the variable name, but there is one after the comma. And there must be exactly one between all operands, operators and commands.

I would suggest that you try the code in the RPN Editor in AAO first, with the debug window open. Then, copy and paste the code from the LOWER textbox, the grey one, where you can see the compiled code - this removes the "dots" and replaces them with spaces.

Thak you for the response. I think the problem is the case of the operator. i was aware operators come after the operands, but tt was a bit of despertion. Thanks also for the suggestion of using the RPN edittor in AAO, i do not know how does it work, but I will give it a try. All these is very new to me and i have very basic notions in programming (a bit of actionscript 2 and some java for beginners, that's all) Thanks again.

 

IT WORKED!!! It was the lower/upper case thing. Also, thanks to checking the documentation i have managed to find out it is possible to align text left or right with with <HorizontalAlign>right</HorizontalAlign/>. Very useful. Thanks.

PS. I cannot work out how can I use the RPN editor to text my code. I will keep trying and reading.

Edited by Ala13_Kokakolo

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.