LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling X axis

Hello,

 

I would like to scale my x axis in order to control the number of millisecond represented per centimeter

 

i already calculated the maximum scale of my graph, the minimum of my scale it will be the cursor position and my multiplication scale is the sampling periods.

 

My question is how i supposed to do so that i can have each milliseconds correpond to 1 cm once i will print my graph .

 

Thank you

 

 

Download All
0 Kudos
Message 1 of 4
(2,301 Views)

Hi virtman,

 

so that i can have each milliseconds correpond to 1 cm once i will print my graph .

Then you need to take the paper size into account. And the printer margins…

 

It's much easier to calculate once you know the width of the graph in number of pixels!

Best regards,
GerdW


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

the paper size would be chosen on the printer dialogue parameters lets say its  125 cm with 5 cm as printer margins

the width is 120 cm of the graph and i could have also the number of pixels by using a specified coefficient

But how  could i to have this result please !

 

0 Kudos
Message 3 of 4
(2,282 Views)

Hi virtman,

 

then you need to input those printer settings into your scaling VI to calculate with min/max of the X axis: x_min = x_max - 120cm * 1ms/1cm (with x_min/x_max in ms)…

Best regards,
GerdW


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