LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structures in older versions of labview?

Solved!
Go to solution

Can anyone tell me how to create a workaround for a 'value change' event structure in an older version of labview?  I have a student  version of LabVIEW 6i and need to create a queued buffer from each value change.  Thank you.

0 Kudos
Message 1 of 18
(3,697 Views)

Ah, you're only one release away from the event structure. That's too bad.

 

You're going to have to implement a Polling loop that continuously checks the user inputs. Make sure you add a Wait function to the loop (~100ms) because that will act as your chance for the user to make changes. You can use shift register(s) to keep the previous loop's values and compare to get a bunch of Value Change booleans. If you want a specific case for the specific events, then you can group all of your Value Changes in to an array and act upon the ones that are True via a Case Structure.

 

The Event Structure only pulls a single event per loop and has a queue of events to handle for following loops. You might encounter multiple value changes in a single loop if the user clicks fast enough, or you trigger value changes. To avoid losing the trailing events, you should probably have a For loop within the Polling loop that handles all True values. Either that, or have a consumer loop that handles all of your events.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 18
(3,676 Views)
Awesome, this is a great start! Thank you!
0 Kudos
Message 3 of 18
(3,667 Views)

Good luck! FYI, I edited my post to point out an important functionality of the Event Strcture that you'll have to imitate in one way or another.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 18
(3,658 Views)
Thank you, all comments welcome!
0 Kudos
Message 5 of 18
(3,645 Views)

@James.M wrote:

Ah, you're only one release away from the event structure. That's too bad.


You should read that article more closely.  The Event Structure can out with 6.1.  However, it was only available in the Full version until a lot more recent version (2010?).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 18
(3,644 Views)

One remark:

What about the 50$ Home edition of LabVIEW (2014?) available in the US?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 18
(3,624 Views)
Great suggestions all! Thank you.
0 Kudos
Message 8 of 18
(3,606 Views)

@crossrulz wrote:

You should read that article more closely.  The Event Structure can out with 6.1.  However, it was only available in the Full version until a lot more recent version (2010?).


I'm looking through it and I don't see anything regarding it not being included in the Full version until later. All I see is "Learn more about LabVIEW 2009" in there a few times.

 


@Newton2this1 wrote:

Can anyone tell me how to create a workaround for a 'value change' event structure in an older version of labview?  I have a student  version of LabVIEW 6i and need to create a queued buffer from each value change.  Thank you.


 

Looking through the article some more, they do mention a specific example of the way the UI could be coded before the Event Structure. Maybe your student version has this example that you could follow, or you can find it elsewhere:

examples/general/ uievents.llb/User InterfaceEventExample.vi

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 9 of 18
(3,600 Views)

@James.M wrote:

@crossrulz wrote:

You should read that article more closely.  The Event Structure can out with 6.1.  However, it was only available in the Full version until a lot more recent version (2010?).


I'm looking through it and I don't see anything regarding it not being included in the Full version until later. All I see is "Learn more about LabVIEW 2009" in there a few times.


Ok, it was 2012: Include the event structure in all versions of LabVIEW


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 10 of 18
(3,518 Views)