LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Value Update

I am running into a weird problem

I have 2 similar programs that control 2 difference devices. I programmed it so that the user can enter a comment before devices� operation. Once ready, the user would activate the normal duty cycle from an interlock box (linked to the PC via parallel port), the program will operate the device and upon completion, stream device settings (along with comments) to an excel sheet.

The problem arises when I enter a comment (string control) and without clinking anywhere, I operate the device via interlock box. The comment won�t save what I have typed thus far in the box. This problem is understandable: Since I have not really �updated� the string control.

Now it will be reasonable, if both of the programs that
I created have the same problem. But actually, only one of them does. The one that works the way that I want it to (and I do not even know why, nor can I make the other program �work�) actually will save whatever I typed in the string control before I operated the machine.

So, I like to ask your Labview gurus if this problems sounds familiar at all? And I guess more importantly, how can one read the changes on a string control, before it�s being updated? (Ex: The String Control�s value is 123, I change it to 345+ Carriage return+Line Feed�..before I click outside the box to update the value, is there anyway to read this new change?)

Thanks,

USCTrojan

p.s. This string control Must allow multi-line input
0 Kudos
Message 1 of 2
(2,624 Views)
I think this should solve your problem, and hopefully answer why the two programs behave differently:

Right click on the string control and select "Update Value while Typing".

I think you will find that the string control in the program that "works" is set this way.

Hope it helps,
Tim
Message 2 of 2
(2,624 Views)