08-05-2015 04:58 AM
Hi. I'm using a xy-graph to plot the values I get from a multiplier (y-axis) when a magnet is scanning over some isotopes in a mass spectrometer. The x-values are DAC register values which are linked to magnet current. I have determined the relationship between the DAC and the AMU values (masses) so I would like to have the AMU values on a second x-axis. So I created a second x-axis by duplicating the existing scale but I struggle with how to calculate and update the second axis. The DAC starts at a given value and is continously updated. The way I'm doing it now is that I choose the active scale and I set XScale.Minimum to the first calculated AMU (from DAC value) that comes in, then I use XScale.Maximum as new values come in. Do you see a better way? I guess the second scale is not really linked to the y-values in this way...?
Optimsitic regards
Morgan
08-05-2015 05:34 AM
08-05-2015 07:30 AM
Hi GerdW. Thanks for your help. No, I haven't. I have a subVI that calculates the AMU values. I will see what I can do with your suggestion.
Best regards
Morgan