05-15-2014 01:46 AM
Hi friends,
I have a problem with reading the string values inside the event structure. Actually I should select the operation using combo box and then the Ok button has to press. If I select the operation and press the Ok button, It will ready the string control instantly and do further process. This results unexpected output and this shouldn't happen. There should be some delay to read the string values. During the delay time, user can enter the input they want. Can anyone solve or comment me some good idea ?????
Thanks in Advance
Note: I am using LV 8.2. So plz reply accordingly
05-15-2014 02:04 AM - edited 05-15-2014 02:05 AM
Learn about dataflow. Learn how to correctly use an event structure. You know, just because you place stuff to the left of your while loop doesn't mean it will execute first.
I suggest going here to learn about dataflow.
Read the Caveats and Recommendations when Using Events in LabVIEW (this is also in the LabVIEW help).
05-15-2014 02:14 AM
Also try to figure out what the "<button value> OR TRUE" function does that you use all the time. Seems the button value is irrelevant, right?
You forgot to attach your subVIs.
05-15-2014 02:21 AM
05-15-2014 02:49 AM - edited 05-15-2014 02:58 AM
@altenbach wrote:
Also try to figure out what the "<button value> OR TRUE" function does that you use all the time. Seems the button value is irrelevant, right?
You forgot to attach your subVIs.
Thanks for your Quick reply sir. Actually I placed Value signal Property node to activative the appropriate event. I jus noted that TRUE constant for all cases were not needed and I removed that. But still I m having the same problem. Herewith I attached the Subvi's. Please find it below.
05-15-2014 02:54 AM - edited 05-15-2014 02:56 AM
@srikrishnaNF wrote:
HI Vij@y,
What is the unexpected output are you getting?
Regards,
SrikrishnaNF
'Unexpected output' in a sense, Even though if I give the correct input data to the subvi, It's not returning the exact output. It showing error as always... Hope u can get this !!!!
05-15-2014 04:55 AM
Hi Vij@y,
Have you gone through the post of billko
---------------------------------------------------------------------------------------------------------------
Learn about dataflow. Learn how to correctly use an event structure. You know, just because you place stuff to the left of your while loop doesn't mean it will execute first.
I suggest going here to learn about dataflow.
------------------------------------------------------------------------------------------------------------------.
You have place tab control outside of while loop .For suppose i have selected 'Insert' option in combo box and pressed ok,then tab control will show the 1 tab control where insert string control is placed.So whetever you enter on insert control will not reflect inside the while loop which may lead to unexpected outputs.
Also right click on combo box and uncheck "Allow undefined strings" so that the combo box will always give proper values.
Regards,
SrikrishnaNF
05-15-2014 10:59 PM
@srikrishnaNF wrote:
Hi Vij@y,
Have you gone through the post of billko
---------------------------------------------------------------------------------------------------------------
Learn about dataflow. Learn how to correctly use an event structure. You know, just because you place stuff to the left of your while loop doesn't mean it will execute first.
I suggest going here to learn about dataflow.
------------------------------------------------------------------------------------------------------------------.
You have place tab control outside of while loop .For suppose i have selected 'Insert' option in combo box and pressed ok,then tab control will show the 1 tab control where insert string control is placed.So whetever you enter on insert control will not reflect inside the while loop which may lead to unexpected outputs.
Also right click on combo box and uncheck "Allow undefined strings" so that the combo box will always give proper values.
Regards,
SrikrishnaNF
HI srikrishnaNF,
I made all the changes what u had told and I realize that while loop will not reflect those control values. Then I changed from Event to case structure. Now my concept is working !!! Thanks for your suggestions....
05-16-2014 01:08 AM
Vij@y wrote:
@srikrishnaNF wrote:
Hi Vij@y,
Have you gone through the post of billko
---------------------------------------------------------------------------------------------------------------
Learn about dataflow. Learn how to correctly use an event structure. You know, just because you place stuff to the left of your while loop doesn't mean it will execute first.
I suggest going here to learn about dataflow.
------------------------------------------------------------------------------------------------------------------.
You have place tab control outside of while loop .For suppose i have selected 'Insert' option in combo box and pressed ok,then tab control will show the 1 tab control where insert string control is placed.So whetever you enter on insert control will not reflect inside the while loop which may lead to unexpected outputs.
Also right click on combo box and uncheck "Allow undefined strings" so that the combo box will always give proper values.
Regards,
SrikrishnaNF
HI srikrishnaNF,
I made all the changes what u had told and I realize that while loop will not reflect those control values. Then I changed from Event to case structure. Now my concept is working !!! Thanks for your suggestions....
I have no idea what you just said, but it doesn't sound like a reason to change from an event structure to a case structure. So what are you doing now? Polling the buttons in a loop?
05-16-2014 01:35 AM
Hi Bill,
Kindly look up the attached VI below. It might get clear you !