From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fill slide combination with chart

Hello,

I have a fill slide bar for my chart.

I have variable graph on my chart and X-axis and fill slide show the way. 

What I want is, when I get slide bar to previous/next position, I get chart to the same previous/next position.
How could I do that?

 


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 1 of 9
(2,705 Views)

Hi,

I'm a little confused about what you want here. Are you using the slide bar as a control that the user can interact with? Are you wanting the user to select a position on the slide to represent an x-axis location and in some way update the charts? A little more detail on your expectations if you could be so kind Smiley Happy

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 9
(2,695 Views)

Yes thats what I want. I want to control x-axis using slide bar.
When user change the slide to the previous position I want to update the charts x-axis. 


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 3 of 9
(2,693 Views)

Then you need to take the slider reading, interpret it as you require, and use it to alter the x-axis range in your graphs. I guess the actual behaviour depends on what it is you wish to see. Are you showing a subsection of your data in the plots and wish to use the slider to allow the user to move this 'preview' along the full scale? If so there is an excellent example here

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 9
(2,687 Views)

No it doesn't work for me. It only finds the place where the mouse is. But I want to move the values previous or next when change the slide bar.


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 5 of 9
(2,674 Views)

No_RegreTs,

 

Are you looking for something along these lines?

 

If not, can you please elaborate on what you would like to do?

 

Thanks,

 

Lisa

Applications Engineer
National Instruments
0 Kudos
Message 6 of 9
(2,660 Views)

I'm using Labview 2009.. Could you please change the version of this vi.


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 7 of 9
(2,641 Views)

😕 Is there anyone could help?


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 8 of 9
(2,615 Views)

I downconverted Lisa's example to LV2009 for you:

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 9 of 9
(2,607 Views)