11-29-2012 07:53 PM
Hi there, I'm trying to implement a VI to apply a voltage ramp signal to a transistor gate and measure the resulting current from source to drain. It is required that the data is graphed in real-time as it is acquired. I've managed to do this using the XY Chart Buffer from one of the LabView examples (see attached file, it does make use of 3rd party functions from Keithley Instruments so let me know if it's not readable).
I'm now attempting to recreate this VI in a more modular/maintainable structure. I'd really like to have a SubVI that "streams" data to the main VI where it is dynamically displayed on a graph, but I am unsure how to achieve this. I tried placing an XY Chart Buffer on the output of the SubVI, but this didn't seem to work. I'm now wondering if something like this producer/consumer pattern would work well. Does anyone have any simpler/better suggestions?
Solved! Go to Solution.
11-29-2012 09:38 PM - edited 11-29-2012 09:39 PM
One method I've used successfully is to pass a reference to your XY "chart" to the subVI. Use the graph "Value" property node inside your subVI to display the data on your graph in the main VI. In my case the "subVI" was a background thread.
11-29-2012 09:43 PM - edited 11-29-2012 09:54 PM
Ah, that's a good solution, I'll give it a try and report back!
edit: Worked fine! Much simpler and probably faster than screwing around with queues!