LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Activating loops through events

Solved!
Go to solution

@Rob_Ward wrote:

Mark,

 

I saved it in versions 11 and 10, so I hope this works for you now.

 

Regards,


I wanted to see the code because yenkip's post regarding 28 locals concerned me. While locals are necessary at times when dealing with UI stuff I would be leary of posting code with such a high number of them. The code can certainly be modified using either a QSM or user events to minimize how many places local variables would be needed. I know the code you posted is just abasic example but another issue is that needs to be mentioned is that the sequence frame inside the event structure will prevent any events from being processed until it completes. Generally you don't want to put code inside an event structure, at least event structures that are handling UI events, that takes more than a few hundred milliseconds. Code that takes several seconds will make teh UI event processing very sluggish and this can be a major annoyance to the user.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 11 of 13
(421 Views)

Hey guys.

I had to spend yesterday reviewing the answers you provided, thank you so much. The QSM is definitely the way to go for the application i have in mind. I might have sligth issues with the putting it together but thats what debugging is for rigth? 

Thank you for all the inputs.

Kind regards 
Atamsih 

0 Kudos
Message 12 of 13
(388 Views)

Atamsih,

 

I am glad you have found a sloution.  One thing to bear in mind with the QSM when in debug mode is that queues are like notifiers and break LabVIEW's `data flow' mechanism that you may have gotten accustomed to thus far.  This took me a while to get my head around because with highlight execution on it was not obvious as to how the data was passed between the queue and dequeue elements.  It's not a problem, just something to bear in mind when in debug mode.

 

All the best with the rest of the project.


Regards,

Robert Ward
Applications Engineer, NI
0 Kudos
Message 13 of 13
(386 Views)