01-15-2018 08:39 PM
I'm using the Continuous Measurement and Logging (DAQmx) template to create a multichannel voltage measurement system. At the moment, I'm trying to implement having a separate window appear to display the data coming in. I'm pretty new to the queued message handler design pattern, and I'm struggling somewhat. The idea is that the user will be able to click a button in the main front panel, (like "Show Graphs"), which will then open a separate window displaying the graphs, one for each enabled channel. I've tried modifying the existing waveform chart by turning it into a Type Def, and by creating a separate SubVI, but niether has worked out.
Any help on how to achieve this would be greatly appreciated.
01-15-2018 09:38 PM
This may be overly complex, but I did something like this for graphs. It could be extended for charts I’m sure.
i created a reentrant graph vi using the jki state machine as the core.
I actually use this for multiple graph types... time vs value WFM, XY, bode. The whole idea being the common behavior, command, status, and data update approach. The graphs themselves handle other things, like mouse actions (annotations, legend movement, color changes, etc..).
hope that gives you some ideas? The JKI state machine is perfect for this kind of design on both sides (main vi and the graph vi).
XL600