10-15-2009 12:29 PM
Hi! Everyone,
Just like to share this great tool with all CVI users. DPlot is a much powerful
Data plotting tool than the native CVI graph control. It's DLL functions provide
programmers easy way to integrate beautiful and sophisticated data displaying
graphs and charts into your own code. Better yet, the free version (DPlot Jr)
is also available for all to use and distribute. For those who struggle with
complicated Excel Active control methods or are dissatisfied with CVI's graph,
this is the best alternative! Please check it out yourself: www.DPlot.com
I've been searching something like this for a long time and finally
found it. It is a shame not to share with all CVI users. Cheers!
12-22-2021 02:34 AM
Hello everyone,
Are there any examples of using this library in CVI?
12-22-2021 03:26 PM
Install DPlot or DPlot junior.
1) Look into the files in ../dplotlib/c/ under DPlot installation folder. Open the header file "DPLOT.H" and comment out the very last #else -- #endif section where it re-defines the DPlot function names. This section somehow can cause compiling errors in CVI. Save this file in your own CVI project folder. (I also rename the file to DPlotLib.h) You must include this header file in your CVI codes. The corresponding DLL file "DPLOTLIB.DLL" can be found in ../dplotlib/ under DPlot installation folder. Copy this file into your own CVI project folder. You need the DLL file to compile and execute the final program.
2) In your own CVI project folder, create a sub folder "Data" and copy the attached data files (txt format, unzip them first) into it.
3) Copy the attached c codes and uir file into your own CVI project folder and create a new project to test DPlot. Run your CVI project.
4) Click "Create One Plot" button and you'll see DPlot creates a graph from the data and save the graph automatically.
5) Click "Create Multiple Plots" button and you'll see DPlot creates multiple graphs from the data without saving the graphs.
You should be able to see how I use CVI to call DPlot and create data graphs automatically. Main section of the codes are modified from the CTEST.c provided in the original DPlot folder. Cheers!
12-23-2021 02:20 AM
Thank's for your reply.
I followed your instructions but I have errors in compiling.
For all dPlot functions I have the implicit declaration function error.
I tried to replace dPlot_xxxx with DPlot_xxxx but for the functions DPlot_AddData8, DPlot_Command and DPlot_Plot8 it returns me Undefined symbol.
Attached the CVI project, I used DPlot Jr.
12-24-2021 03:48 PM
Please use this new attached header file "DplotLib.h and try again.
My step-1 in the previous message is not completely correct.