05-23-2008 08:17 PM
05-24-2008 03:05 PM
It is easy to create sub vis. Just select the code you want and select "Create sub vi" from the "Edit" menu.
You can use references to handle your controls of GUI, inside sub vi's.
With the above method, references are auto created
05-27-2008 11:13 AM
05-27-2008 11:26 AM
Good question.. This is not the official answer.. Just "hear-say".. 😉
Having the button inside or outside the Event Structure does not affect the operation of the structure. It is a recommended approach to keep the code tidy (clean), to make sure that the button is not used elsewhere (event handled by the Event Structure), and that if you need it's value, you can wire directly (although there is another way of doing that).
As a coding practice, I always add the button within the Event case that handles it.
Anyone with a more formal answer?
RayR
05-27-2008 11:45 AM
05-27-2008 11:51 AM