09-07-2007 01:02 AM
@elo85 wrote:
how do I save the graph?
What do you mean? e.g.
09-07-2007 01:05 AM
09-07-2007 06:26 AM
You can save both the data and the graph.
Depending on the LV version that you are using, you can use the write to file functions (ex: text, spreadsheet, measurement) by wiring the data to the write to file vi (located in the File I/O of the Functions Palette). The graph can be saved as an image file, for example using write to jpeg file.
I'll post an image...
09-07-2007 06:30 AM - edited 09-07-2007 06:30 AM
Here's an example of saving the array data to a text file and the graph image (same as your front panel) to a jpeg file:
In this example, the same name (leading name) is given to both the text and jpeg files. The example can be further simplified by simply wiring a file path control to the write file vi's..
The waveform graph property node is obtained by right clicking on the waveform graph indicator (on block diagram) and selecting create property node..
Message Edited by JoeLabView on 09-07-2007 07:34 AM
09-07-2007 06:55 AM
09-07-2007 01:59 PM
@JoeLabView wrote:
The waveform graph
property nodeis obtained by right clicking on the waveform graph indicator (on block diagram) and selecting create property node..
My mistake.. I'm reducing my daily dose of cafeine, and it's affecting me 😉
You need to use an invoke node. I'll prepare a code template in LV7.0 for you..
09-07-2007 02:10 PM
See the attached example. I created a small template in LV7.0, but saved as a vi.
You'll need to provide data (numeric array) which is wired to both the graph and to the "array to spreadsheet string" in order to convert it to string before saving it to a text file. The example won't run as it is.. Also, you'll need to fill in the paths for both the graph image (saved as jpeg in the example) and the text file.
Sorry, I had to do this quickly.. It should get you going.. 🙂
09-07-2007 08:26 PM
09-07-2007 11:03 PM - edited 09-07-2007 11:03 PM
Message Edited by Bill@NGC on 09-07-2007 09:04 PM
09-07-2007 11:19 PM - edited 09-07-2007 11:19 PM
Message Edited by Bill@NGC on 09-07-2007 09:20 PM