09-21-2010 09:07 AM
To Whom It May Concern:
I am trying to capture the data from a graph using a sub VI. When the sub VI is open, it works fine. On the other hand, when the sub VI is closed I can not capture/save the graph picture to the folder that I have specified.
Can someone please give me some advice?
Appreciate it a lot. I have attached the sub VI and the main VI graph I am trying to capture.
Also I am using LabVIEW 8.0. Please consider this when helping me.
09-21-2010 09:36 AM - edited 09-21-2010 09:45 AM
The Export Graph will only work if the graph is actually drawn. On a subVI if the front panel is not visible then there is no visual graph to draw (though the data will still be available), hence the Export Graph will not work.
Alternatives:
Other comments:
09-21-2010 09:41 AM
Hmmm, using a graph as a control - it took me a little while to wrap my brain around that one. I think your problem might lie somewhere with that server reference - couldn't you just create a plain old INode from the graph? (see attachment)
Are MainGraph and CaptureGraph going to be doing more than what's in them right now? Their functionality seems simple enough to put in the same VI.
Andrew
09-21-2010 10:07 AM
Sir Knight of NI,
Thanks!!! I was not aware that the graph had to be drawn to be saved. I was trying to clean up code, so I wanted to do the saving of the graph using sub VI. Main code has a ton more going on than what I sent you. Rest of the code was not pertaining to capturing the graph.
Other comments:
09-21-2010 10:12 AM
Andrew,
No, it will not be doing much more than what I have it doing now.
Can you save your example to version 8. I can not view it now because you are using newer version than me..
Thanks,
sticyfinger