LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use a slider input

I am attempting to use a slider input to control the magnitude of a signal generator.  I have the slider in view on Front Page but I am unable to adjust the slider.  When I place my cursor on the slider and attempt to move it, the entire icon is highlighted and the entire icon moves instead of the slider. 

0 Kudos
Message 1 of 12
(4,442 Views)

Is the VI actually running?

If you change it in edit mode, do you have tool autoselection enabled? (if not, make sure to select the finger tool)

 

There are typically no icons on the front panel, so your question is not entirely clear. Can you show us your code?

0 Kudos
Message 2 of 12
(4,429 Views)

You're probably stuck in edit mode, or you pressed run and ran a single run. Almost always you want a loop to iterate until you stop your program as attachment.

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 12
(4,408 Views)

Interesting question.  How do you post a GUI?  There does not seem to be an attachment option nor am I able to post the .vi file.

 

How can I post the code?

0 Kudos
Message 4 of 12
(4,399 Views)

When you compose a message, there is an attachment section below. Compose your message, click "choose file" and navigate to your VI. Press "post".

0 Kudos
Message 5 of 12
(4,397 Views)

A college try.

0 Kudos
Message 6 of 12
(4,364 Views)

While we're at this, how do I modify my histogram for 200 bins?

0 Kudos
Message 7 of 12
(4,360 Views)

Well, your code does not have a while loop, so you must be using either "run continuously" or press the run button manually.

 

A toplevel VI needs a while loop (also containing a small wait) around the bulk of the code. If you are tring to change the slider in edit mode, AND you don't have tool autoselection enabled, you will need to manually select the right tool:

 

ctrl+right-click brings up the tools palette:

The select (arrow) cursor allows you to move the controls arround

The operate (finger) cursor alows you to operate the control

 

 If the VI is actually running, the operate tool is the default.

 

I recommend to enable autoselection (turn on the green LED on top of the tools palette). This way the cursor will automatically change when moving over the slider.

0 Kudos
Message 8 of 12
(4,357 Views)

@carrabelle wrote:

While we're at this, how do I modify my histogram for 200 bins?


You are using the simple histogram, but I think setting the intervals to 200 will do what you want.

 

You can also use the general histogram which gives you more control over the details.

0 Kudos
Message 9 of 12
(4,353 Views)

"high light" your slider and goto the "reorder" tab and "lock" it. regardless if the vi is running or in edit mode...it's not moving or resizing. undo by high lighting it again and unlock Smiley Wink

Message 10 of 12
(4,336 Views)