LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our User Interface Code Repository Files or visit the LabVIEW Wiki User Interface Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Slider return to default when released?, car accelerator
boyracer38
post Nov 23 2004, 03:50 PM
Post #1


Active
*

Member
Posts: 20
Joined: 23-October 04
From: England
Member No.: 892
LV:7.1


Is there a way to make a slider control return to the default position when released?
The aim is to have a control which acts like the accelerator of a car.
When released, it will spring back to 0.

Thanks
Jason


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Nov 23 2004, 03:50 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
boyracer38
post Nov 23 2004, 03:53 PM
Post #2


Active
*

Member
Posts: 20
Joined: 23-October 04
From: England
Member No.: 892
LV:7.1


In conjuction with the lever mentiond on my previous post:
The harder the accelerator is pressed, the faster the car accelerates. This will be illustrated with a Tachometer (RPM). When the accelerator is released, the car will decelerate.
So a ramp up/down function is needed??
frusty.gif


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Paulo Almeida
post Nov 23 2004, 07:33 PM
Post #3


Very Active
***

Member
Posts: 55
Joined: 31-August 04
Member No.: 645
LV:7.0
Portugal


QUOTE (boyracer38 @ Nov 23 2004, 03:50 PM)
Is there a way to make a slider control return to the default position when released?
The aim is to have a control which acts like the accelerator of a car.
When released, it will spring back to 0.

Thanks
Jason
*



Hi,

If you use a Event structer associate with your slider, i think you can do that. Use the mouse up event. i hope this example can help you.

bye
Attached File(s)
Attached File  Untitled.vi ( 30.55K ) Number of downloads: 157
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
boyracer38
post Nov 24 2004, 09:39 AM
Post #4


Active
*

Member
Posts: 20
Joined: 23-October 04
From: England
Member No.: 892
LV:7.1


That really helps thanks!!!!

thumbup1.gif

Thanks
Jason


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 03:38 AM