LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialisation of input elements

I'm currently working on a small program to aquire spectras from a spectrometer.
I want to set parameters like the integration time at the program start to some standard
values. The integration time can also be changed while the program is running, so i created a
numerical variable and configured it as data input and not as indicator. This conflicts with my wish to
give the input node a init value. Does anyone know a workaround on this?
 
Sneff
 
0 Kudos
Message 1 of 3
(2,418 Views)

Two Options

1.Pass the desired value to the Local Variable of the control before you perform any other operation. Using sequence structures available in the functions palette are an easy approach.

2.Enter(Type) the desired value in Numeric Control on the front panel, Right click and set current values as default.

0 Kudos
Message 2 of 3
(2,414 Views)

Thank you, i have found a better way now using property knots. This way i can additionally create a change of value event

without any further efford.

Now i even do not need to distinguish between initialization of the values and the change at runtime.

Thats elegant.

 

0 Kudos
Message 3 of 3
(2,392 Views)