June 8, 20223 yr (A:AP_PANEL_HEADING_HOLD,·Number)·1·==·if{·1·(>MIDI:6:NoteOn:6:8)·}·els{·0·(>MIDI:6:NoteOn:6:8)·} I am troubleshooting getting xtouch LEDs to work with the G1000nXi in msfs and having some trouble. Hoping someone can point out what I'm doing wrong. I think I am using the wrong variable type, what I want to get is the state of the setting from the sim and reflect that in the LED, but after reading the documentation I'm still a little lost. I tried copying from a working template I found for a different aircraft (using L: vars) and then converted them to the read variables I have for the streamdeck profile...but haven't had any luck. Any assistance is appreciated.This is my MIDI Device list I also tried this with no luck (different variable but trying all LEDs): (A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:8)·}·els{·0·(>MIDI:6:NoteOn:6:8)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:9)·}·els{·0·(>MIDI:6:NoteOn:6:9)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:10)·}·els{·0·(>MIDI:6:NoteOn:6:10)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:11)·}·els{·0·(>MIDI:6:NoteOn:6:11)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:12)·}·els{·0·(>MIDI:6:NoteOn:6:12)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:13)·}·els{·0·(>MIDI:6:NoteOn:6:13)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:14)·}·els{·0·(>MIDI:6:NoteOn:6:14)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:15)·}·els{·0·(>MIDI:6:NoteOn:6:15)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:16)·}·els{·0·(>MIDI:6:NoteOn:6:16)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:17)·}·els{·0·(>MIDI:6:NoteOn:6:17)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:18)·}·els{·0·(>MIDI:6:NoteOn:6:18)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:19)·}·els{·0·(>MIDI:6:NoteOn:6:19)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:20)·}·els{·0·(>MIDI:6:NoteOn:6:20)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:21)·}·els{·0·(>MIDI:6:NoteOn:6:21)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:22)·}·els{·0·(>MIDI:6:NoteOn:6:22)·}··(A:AUTOPILOT·MASTER,·Bool)·1·==·if{·1·(>MIDI:6:NoteOn:6:23)·}·els{·0·(>MIDI:6:NoteOn:6:23)·} Clearly I'm doing something wrong. edit: nevermind...I accidentally replaced "NoteOn:11:" with "NoteOn:6:" which was the wrong address...fixed Edited June 8, 20223 yr by jstnj
June 11, 20223 yr Commercial Member 2 hours ago, MaDDogz said: Did the forum add all those dots to that code? The dots are a visual cue in the RPN Editor of AAO. If you copy&paste from the editor window, you copy them too. Copy&pasting it back will work, since the editor can handle them. Pasting the code anywhere else (other app, StreamDeck, Scriptfiles etc) will fail. But my advice would be to always copy the compiled code from the lower textbox - dots are removed when you do that. Edited June 11, 20223 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.