06-09-2012 06:13 PM
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.
06-09-2012 08:56 PM
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?
06-10-2012 09:27 AM
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
06-10-2012 11:05 AM
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?
06-10-2012 11:07 AM
When you compose a message, there is an attachment section below. Compose your message, click "choose file" and navigate to your VI. Press "post".
06-12-2012 12:21 PM
A college try.
06-12-2012 12:23 PM
While we're at this, how do I modify my histogram for 200 bins?
06-12-2012 12:31 PM
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.
06-12-2012 12:36 PM
@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.
06-13-2012 11:23 AM
"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