01-31-2018 01:02 AM
I am using sequence structure. In first sequence with in a while loop I am plotting the xy graph with indexing means it shows all the past and present values. When I stop this I go to second sequence where i want to export this xy plot in to the word file. So, my question is how i will do this.
There are two possible ways but i didn't know how to proceed.
1. I will create an image of the graph and append image to the report. How?
2. Through word insert graph. What are the inputs that I have to insert and how...?
Solved! Go to Solution.
01-31-2018 01:04 AM
I am using sequence structure. In first sequence with in a while loop I am plotting the xy graph with indexing means it shows all the past and present values. When I stop this I go to second sequence where i want to export this xy plot in to the word file. So, my question is how i will do this.
There are two possible ways but i didn't know how to proceed.
1. I will create an image of the graph and append image to the report. How?
2. Through word insert graph. What are the inputs that I have to insert and how...?
01-31-2018 06:15 AM
@kashifsherwani wrote:
I am using sequence structure.
Why? Refactor using error wires. You do not need and should not use a sequence structure.
kashifsherwani wrote:1. I will create an image of the graph and append image to the report. How?
Create a "Get Image" method by right clicking the graph. This will get you a pixmap. You'l have to use "Write JPEG File.vi" (or png or bmp) to create a file from that pixmap. Then wire the file path to the "Append Image To Report.vi". Since this will require file administration (create and delete) it's not recommended.
@kashifsherwani wrote:
2. Through word insert graph. What are the inputs that I have to insert and how...?
Create a graph reference by right clicking the graph. Wire that to "ctrl reference" of "Append Control Image To Report.vi" .
01-31-2018 06:39 AM
Why? Refactor using error wires. You do not need and should not use a sequence structure.
To answer I am going to generate the word report after performing certain experiment. I believe for that sequence structure is used. I will be grateful if you suggest some better alternative...
01-31-2018 06:46 AM - edited 01-31-2018 06:46 AM
the advice was already given, but to elaborate a little:
the data-flow paradigm in labview is best served with having wires between things.
most of the standard VIs have an error-in and error-out terminal.
to define the execution order, you take the error-out of the first step in your algorithm and connect it to the error-in of the next step.
best practice is to only use the sequence structure, if you have no other way of guaranteeing the execution order (e.g. use of the "wait (ms)" vi for example)
hope that clarifies it
:cheers:
01-31-2018 06:50 AM
Thanks... I got your point....