04-12-2015 08:52 AM
So I'm trying to make a small VI to incorporate into a larger project
I have a custom runtime menu, options menu with sub catorgries of 1 and 2, when pressed these options are checked, when the user presses the run button depending on which options are checked it will generate some data for 1 or 2 or both and plot this data after this is done in the garph menu the user will be able to look at the plotted data for either plot or both together, if only one option is picked I would like the graph option plot 1 and 2 to not be visible
however when an option is checked the program stalls and you cant pick the next option or press the buttons and I have absolutely no idea why, this is my first attempt at using menus and event sturctures hence Im not 100% sure of the possible issues here, thinking maybe it might have to do with the timeout of the event sturctures maybe not
if anyone could give me some pointers on what Im doing wrong here it would be very much appreciated
04-12-2015 09:08 AM
Also whe i try to take both arrays from one and 2 using a build array to plot both plots on the waveform graph i get a bad wired error which states the graph is 1D and im trying add 2D which is annoying because i know you can plot 2 plots of data to a graph using the build array. If I use a seperate graph I can plot both, so im thinking it has something to do with the waveform graph local variable ive used
also for the not being able to see the polt both option if both 1 and 2 are not checked i can use a delete menu item tool
04-12-2015 10:32 AM
A couple of things.
I decided that I need to add 1000 words to this post, so here is a "Picture", a Snippet of an example Event Loop + Queued Message Handler. Your code should fit easily into this structure (if you don't know about Queues, feel free to ask, or go on the Web and search ...).
Bob Schor
04-12-2015 07:55 PM
Thanks for the advice, after much comtemplation and study I got it to work