Hi, I've been watching over these forums for a little while now and have managed to figure out answers to most of my questions from the help on here and my own tinkerings. My latest problem however has me baffled. I am trying to script some custom dataref sources for the implementation of a nav radio that provides a bearing output for the standby frequency. My thinking rightly or wrongly is that I should be able to briefly swap the main and standby nav frequencies in code grab the relative_bearing_deg dataref based on the now swapped frequency info and store in a new custom dataref before reverting the frequencies back to original. what i'm finding is that although a snap shot of the frequencies shows they are swapped at that point in the code, the relative_bearing_deg dataref at the same point in code still reports the bearing for the original main frequency and not the frequency that is now swapped into the main location. What am I missing here? The code at the point of setting the standby bearing dataref is shown below. Before and after this code (not shown) are functions to swap the main and standby frequencies. The functions are independently called in order directly from main. local test_relative_bearing_deg = xp.getDataref("sim/cockpit2/radios/indicators/nav1_relative_bearing_deg") local test_stby_bearing = xp.getFloat(test_relative_bearing_deg) xp.setFloat(test4, test_stby_bearing) I'm new to gizmo and x-plane so hopefully its just something basic that i'm overlooking.