LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicator and Control in one

I am trying to construct an numeric control which will specify the width of the image a camera has to obtain.
However, when I read out the current settings, I want the current number to also appear in the same numeric control, so it needs to act like an Indicator.

How can I do this in Labview?
I've tried with a local variable, but that didn't work. (maybe I did it wrong?)

I use matlab 7.1
0 Kudos
Message 1 of 8
(3,604 Views)
You may use a "property node - value" to read or write values to an indicator or control.
That's all.

JFT
0 Kudos
Message 2 of 8
(3,601 Views)
A local or property node will work the same way so there must be something in your code. Maybe you have a race condition. Can you post your code for people to look at?
0 Kudos
Message 3 of 8
(3,601 Views)
A local variable should work just fine for this so something is wrong in your code. Please post a simplified version of your VI.

I don't think matlab 7.1 exists, are you talking about LabVIEW 7.1?
0 Kudos
Message 4 of 8
(3,601 Views)
Yes labview 7.1, for some reason I keep saying matlab because I used to work with it.

I'll post my program a bit later.
I'll try getting my local variable to work once more.
0 Kudos
Message 5 of 8
(3,601 Views)
Okay, here is my code.

When the user presses "SET", the user specified input is used and when the user presses "Auto Exposure" the changed variables appear on the screen, after running my auto exposure routine (which works).

Tha autoexposure routine just needs the interface name and then changes the black and white voltages to optimal levels.
0 Kudos
Message 6 of 8
(3,601 Views)

Hi Arend,

The example missed a autoexposurearend.vi. Could you please upload it. Thank you!

Ancle 

0 Kudos
Message 7 of 8
(3,416 Views)
Arend,

I couldn't find any local variable or Property value node in your main VI block diagram.
Did you create a copy of your controls in a subVI and used a local variable in the subVI? If I'm right, it won't work. The controls in the main VI and in the subVI are not the same.
You can "return" the value from the subVI and use a local variable in the main VI with this value or, if you need to update the values during the subVI execution, you can pass a  reference of this control to the subVI and use a property node in the subVI.
Rasputin
LV7.1 <> W2K
Download All
0 Kudos
Message 8 of 8
(3,395 Views)