ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

取消
显示结果 
搜索替代 
您的意思是: 

fixing one scroll bar using Vi properties

Hi Everybody,
 
I have made a cluster of five elements. After that i made the array of the cluster. Now in my program i don't want to show the index of that array. Size of array is variable. Sometimes it goes out of screen size. So, can i add a scroll bar to that array using some function.
Is there any way using that i can set the horizontal and vertical scroll bar separately in VI properties. I want to fix the horizontal bar but want to show the vertical bar in my front panel.
 
ranjeeta
0 项奖励
1 条消息(共 12 条)
4,576 次查看
Hi ranjeeta

On your block diagram, right click on the array indicator select  create >> property node. In the bottom section of the list you'll find property nodes for making both horizontal and verticle scrollbars visible. The default status of any property node you place will be a read node. Right click on it and select change all to write. If you then wire a true constant to the node, your scrollbar will become visible. Explore what you can do with all the property nodes because they are great for making your front panel that little bit more profesional.

Hope this helps
0 项奖励
2 条消息(共 12 条)
4,561 次查看

Hi Rich ,

I have tried, what you have suggested. I didn't get any option regarding scroll bar. That option comes in property node, if you have taken a table or list box control. Please suggest me some other solution.

Message Edited by Ranjeeta on 09-06-2007 03:17 AM

0 项奖励
3 条消息(共 12 条)
4,533 次查看
Sorry my instructions completely missed the fact the array was in a cluster. You can still create the property nodes for the individual elements within a cluster by right clicking on them on the front panel. So on the front panel, right click the array you want the scroll bar on and as before go to create property node. Hope this helps
0 项奖励
4 条消息(共 12 条)
4,530 次查看
Can you interactively create scroll bars on your array?  This feature is relatively new, so may not be in your version of LabVIEW.  If this is the problem, there are workarounds.  Let us know.
5 条消息(共 12 条)
4,519 次查看

hi Rich,

I don't want to give the scroll bar to the individual element. i want to give the scroll bar to the whole array. so, that without the index array user can see the last element of array using scrll bar.

Message Edited by Ranjeeta on 09-10-2007 03:43 AM

0 项奖励
6 条消息(共 12 条)
4,491 次查看
No, i can't create scroll bars on my array . i want to create the scroll bar.... if you have any information regarding this plz tell me that.
0 项奖励
7 条消息(共 12 条)
4,485 次查看
To create a scrollbar for an array

LabVIEW 8.0 and higher
Interactively, right-click the array and select the scrollbar you want from the Visible Items list.  Programatically, use the Horizontal/Vertical Scroll Bar Visible property in the VI server property node to turn the scroll bars on and off.  The property is near the bottom of the list, so you will probably need to scroll the list to find it.

LabVIEW 6.1 - LabVIEW 7.1
There is not native scroll bar, so you have to make one from a listbox.  Drop a normal Listbox and customize it.  You will want to color the background transparent and the change the border to a transparent flat rectangle.  This has the effect of leaving a floating scroll bar.  Fill the item names with an array of about as many items as you want for maximum output.  For the output, create an event structure.  On a mouse down event on the listbox, set a boolean flag to enable tracking of the mouse (store it in a shift register).  On the VI front panel mouse move event, check the Top Row property value for the listbox to get the "scrollbar" position if the boolean flag is set.  On mouse up event on the listbox, turn the flag off.  The mouse move event on the listbox does not fire when the mouse move over the listbox scrollbar, so this roundabout method is necessary.

I do not have an earlier version of LabVIEW on my system, but you should be able to use a similar method by polling a Listbox at 50ms to 200ms intervals (no event structure in LabVIEW 6.0 and earlier).

Good luck.  Let us know if you need more help.
8 条消息(共 12 条)
4,476 次查看
hey thank a lot.
0 项奖励
9 条消息(共 12 条)
4,454 次查看

Hi Ranjeeta,

Please tell the LV version you re using at the time of posting your first query itself.

You would ve got the answer much earlier if you had done so...

 

- Partha ( CLD until Oct 2027 🙂 )
0 项奖励
10 条消息(共 12 条)
4,442 次查看