LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to Graph help

Hi Gerdw,

 

How can I get that position value and pass it into index array. I have gotten the cursor position to show in front panel.

0 Kudos
Message 21 of 37
(833 Views)

Hi Learner,

 

so you already got the Cursor Position with it's X and Y value?

When you don't use scaling of the X/Y-axes you can just use the cursor position values to index your data array...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 22 of 37
(830 Views)

Hi Gerdw,

 

Yes, I already got the Cursor Position with it's X and Y value at the front panel.

123.png

I want to get this value to connect to index array automatically.

I do not undestand what you mean"When you don't use scaling of the X/Y-axes you can just use the cursor position values to index your data array...".

 

0 Kudos
Message 23 of 37
(824 Views)

Hi Learner,

 

I already told you to use property nodes... Did you try this?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 24 of 37
(820 Views)

Hi Gerdw,

 

Sorry I misinterpreted your post.

122222.png

 

0 Kudos
Message 25 of 37
(817 Views)

Hi Learner,

 

as long as you don't apply scaling to the axis values it's ok...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 26 of 37
(813 Views)

Hi Gerdw,

 

Scaling is a properties option?

0 Kudos
Message 27 of 37
(811 Views)

Hi Learner,

 

yes, you can scale the axis values.

Either right-click your graph and open the properties dialog (look for "offset" and "multiplier") or by proeprty nodes...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 28 of 37
(809 Views)

Hi Gerdw,

 

This is the setting for intensity graph.

 

12322.png

May I know the purpose why there is a need not to apply scaling to the axis values?

0 Kudos
Message 29 of 37
(806 Views)

Hi Learner,

 

right now the scaling is off (multiplier=1, offset=0). So the cursor position is equal to the index of the array element.

 

When you apply some other scaling you will also get scaled cursor positions. Then you have to calc from cursor position back to element index...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 30 of 37
(800 Views)