LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw graph using mouse and compare with xy graphs

Hi, I'm trying to design an application for the following two tasks:
(1) Draw a trace using mouse
(2) Run DAQ devices, generate an xy graph, and compare the xy graph with the trace drawn in the 1st step.
 
I have found a good example "draw graph with events.vi" for the 1st task, and also built my own vi for the 2nd task. Both of them work well separately. However the problem is how to combine them together? I want to draw both of the two graphs in one xy graph, and keep the trace of the 1st step while performing the 2nd step.
 
I tried the sequence structure, but it seems it doesn't work. Would anyone please help me? Thanks a lot.
 
Regards,
Yang
0 Kudos
Message 1 of 2
(3,578 Views)

Hello,

 

I’m not too sure what the exact problem you are encountering is, and I see a sequence structure but I don’t see how it comes in to play here.  If your question is about how to add multiple plots to an XY graph, I would take a look at the context help window which gives good indication about how to add plots to the graph.  Each plot consists of a “bundle” of arrays where each element in the bundle is an array of data values.  To add plots to the graph, wire each ‘bundled’ plot to the “build array” VI.  Make sure to expand the plot legend in the graph to account for the multiple plots that will be displayed.

 

Before troubleshooting the XY graph, I would make sure that you are getting the appropriate data from your Data Acquisition device.  Are you certain that you have set up your DAQ portion of code correctly, and that the data coming from the device is in the proper format?

 

Thanks for posting to the forms, please let us know if you have any additional information or questions on this.  Have a great weekend!

Message Edited by Travis M. on 07-21-2006 03:46 PM

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 2
(3,556 Views)