LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmically entering event structure

Hi-
I want to use an event stucture to calcuate some things when values on the front panel are changed.  It works well and as expected.

How do I force the calculation to occur when the vi is first run?  I've tried initally setting a value to try and force a change of value, but I can't seem to make it work.
Attached is a very simple example.

Thanks,
Randy
0 Kudos
Message 1 of 5
(2,763 Views)
Use the 'value signalling' property.
This will force the event to react as it would be on a 'value change'

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(2,760 Views)
Value signalling is incompatible with the latching action of the boolean. To use TonP's suggestion you will need to go back to the standard switch action for the calculate button. If you want to emulate the latching action you could use a local variable to set the value back to false after it was read.

Lynn
0 Kudos
Message 3 of 5
(2,755 Views)
Ah, value signaling property.  I didn't know what that property was before, now I do.
Thanks.
0 Kudos
Message 4 of 5
(2,749 Views)
Lynn is right


@johnsold wrote:
Value signalling is incompatible with the latching action of the boolean. To use TonP's suggestion you will need to go back to the standard switch action for the calculate button. If you want to emulate the latching action you could use a local variable to set the value back to false after it was read.

Lynn


To my defense, I didn't open the code because I had the feeling Randy was looking for the Value signaling property.

Ton

On a side node, why a property and not a method?
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 5
(2,744 Views)