LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A second dynamically calculated x-axis

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

0 Kudos
Message 1 of 3
(3,006 Views)

Hi Morgan,

 

you can apply a multiplier and an offset to each scale in a graph.

 

Have you tried this to convert your DAC readings to AMU values?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,987 Views)

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

0 Kudos
Message 3 of 3
(2,938 Views)