LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Horizontal Fill Slide question (two data points)

I am trying to do something very simple. On a "Horizontal Fill Slide" I need to use one data point that indicates the maximum range (which will change while program is running). The second data point the user will define and I need to read. All this while keeping the "Data Range" from 0 - 10. On a side question where can I read up on how to use the attribute nodes?

Thank-you for your help
0 Kudos
Message 1 of 6
(4,373 Views)
I am using Labview 5.0 on a Windows NT machine.
0 Kudos
Message 2 of 6
(4,373 Views)
"David_G" schrieb im Newsbeitrag
news:506500000008000000F33D0000-1012609683000@exchange.ni.com...
> I am trying to do something very simple. On a "Horizontal Fill Slide"
> I need to use one data point that indicates the maximum range (which
> will change while program is running). The second data point the user
> will define and I need to read. All this while keeping the "Data
> Range" from 0 - 10. On a side question where can I read up on how to
> use the attribute nodes?
>
> Thank-you for your help

Hi David,

I'm already using this way to update the sliders inside my program. In that
case you have to set two properties of the corresponding control. The first
one is 'Data range -> Maximum' - it's used to set the biggest number the
user can
type in. You also have to define the same for the axis - located
under 'Axis->Data range->Maximum' - cause if you don't set this entry, the
slider shows the wrong scale.
I hope this is working, cause i use 6i and never testet it under 5.0.
For informations about using property nodes you have to take a look into the
books shipped with LabVIEW. Otherwise you can download them from NI website.

good luck
Henrik
0 Kudos
Message 3 of 6
(4,373 Views)
Read/Write behavior is not possible with Labview, I am using CWSlide control
from Component Works - MesStudio 6.0 for this purposes, another way is to
place two different controls - one for read and other for write - use
customize control to hide unused parts.

"David_G" wrote in message
news:506500000008000000F33D0000-1012609683000@exchange.ni.com...

> I am trying to do something very simple. On a "Horizontal Fill Slide"
> I need to use one data point that indicates the maximum range (which
> will change while program is running). The second data point the user
> will define and I need to read. All this while keeping the "Data
> Range" from 0 - 10. On a side question where can I read up on how to
> use the attribute nodes?
>
> Thank-you for
your help
0 Kudos
Message 4 of 6
(4,373 Views)
> Read/Write behavior is not possible with Labview, I am using CWSlide control
> from Component Works - MesStudio 6.0 for this purposes, another way is to
> place two different controls - one for read and other for write - use
> customize control to hide unused parts.
>

You might want to look at local variables, popup on the LV control and
Create Local. These have been available since LV3 and allow for reading
and writing to the same control in multiple locations in the diagram.

Greg McKaskle
0 Kudos
Message 6 of 6
(4,373 Views)
Hi,
you have to perform the next steps:
1. Create the "Horizontal Fill Slide" with two sliders. To do it you need to right click on the control and select "Add Slider". So you will use the first slider to represent the minimum value of your range and the second one the maximum value.
2. You say that the minimum value will be defined by user and the maximum will be defined by program. So you have to READ data from this control in the case of minimum value and to WRITE data in the case of maximum value. Yuo can read and write data to controls using LOCAL VARIABLES. To create local variable of the control you have to right click on the node of this control on the diagram and select "Create local variable". Then you can change the local variable to write/read mode by rig
ht clicking on the variable.
3. When you add the slider to the control it will be represented by the cluster. So to read or write the positions of the sliders on the control you have to use cluster bundle/unbundle functions. The cluster includes two numeric items correspondin to positions of the sliders.

Good luck.

Oleg Chutko.
0 Kudos
Message 5 of 6
(4,373 Views)