07-14-2008 09:09 AM
My main VI is based on a producer consumer pattern. In the main program I have the option on calling another VI that was created using the producer consumer pattern as well. I have a case structure with a Boolean switch on the front panel that selects the sub VI.
When it is selected, it start running the sub VI but it waits for and event queue from the sub VI front panel before it actually executes.
How can I have this start automatically, programmatically?
07-14-2008 09:12 AM
07-14-2008 09:14 AM
Hi AAronJHan...,
can you please explain what you make or upload your vi or a picture of it? I don´t fully understand what you try.
Mike
07-14-2008 09:16 AM
07-14-2008 09:47 AM
07-14-2008 09:59 AM
07-14-2008 10:07 AM
I decided to make 1 big program. Instead of calling the sub vi, I just wrote it in to the main VI.
So thanks for all the help.
Aaron
07-14-2008 10:29 AM
You should have posted all the vi's..
Wow.. you appear to love using those Local Variables. You (or someone) will have fun debugging the code in the future.
Combining more code to your main one would not be recommended as it will make it more difficult to read the code.
Typical code size should not be bigger than one single screen.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
R
07-14-2008 11:12 AM
07-14-2008 01:03 PM
Configure the front panel to fit on the screens of most users.Block DiagramDetails
Front panels need to fit on a monitor that is the standard resolution for most intended users. Make the window as small as possible without crowding controls or sacrificing a clear layout. If the VIs are for in-house use and everyone is using high-resolution display settings, you can design large front panels. If you are doing commercial development, keep in mind that some displays have a limited resolution, especially LCD displays and touchscreens.
Front panels should open in the upper-left corner of the screen for the convenience of users with small screens. Place sets of VIs that are often opened together so the user can see at least a small part of each. Place front panels that open automatically in the center of the screen. Centering the front panels makes the VI easier to read for users on monitors of various sizes. Use the VI Properties dialog box to customize the window appearance and size.
Avoid creating extremely large block diagrams. Limit the scrolling necessary to see the entire block diagram to one direction.Details
The size of the block diagram window can affect how readable LabVIEW code is to others. Make the block diagram window no larger than the screen size. Code that is larger than the window is hard to read because it forces users to scroll through the window. If the code is too large to fit on one screen, make sure the user has to scroll only in one direction to view the rest of the code. If the block diagram requires scrolling, consider using subVIs.