03-08-2017 11:49 AM
I have been away for a year and I need to make a report from data collected in Measurement Studio. I believe I can easily work with image files like JPG and possibly others.
In Labview in the past I used:
Plot.Waveform.VI
Picture to Pixmap VI
Write JPEG File VI
to create an image that I could insert into a document file.
I am collecting the data into an array of AnalogWaveform<double> and saving it into a TDMS file if that makes a difference.
Also, second question, I cannot seem to find complete object reference documentation for Measurement Studio. If I have an object like NationalInstruments.Controls.Graph, where do I go to get a complete Reference Documentation of all of the properties I can access and methods I can call, and what objects are available in the same namespace or assembly.
Solved! Go to Solution.
03-09-2017 03:57 PM
Can you clarify what your first question is? Are you looking for information on graphing in Measurement Studio? Or storing data in TDMS files?
For your second question, the Measurement Studio help documents are pretty good, like the following page on Windows Forms Graph .NET controls.
http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/usingninetgraphwinforms/
03-10-2017 09:48 AM
Thank you for your interest Maggie,
I have a graph (WPF) on the screen and Daq-MX functions collecting the data properly. I am trying to get the graphs into an image file like a JPG to use the report system I already use in that environment so I can get that graph inserted into a word like doccument (ODT) file. Otherwise I would like to be pointed to any strategy within measurement studio to get graphs to a paper report
Since my post I found in the help the following:
Measurement Studio Function Reference
Measurement Studio provides the following .NET libraries:
In This Section
Analysis
NationalInstruments
NetworkVariable
NI4882
DAQmx
VisaNS
Tdms
WindowsForms
WebForms
It gives me the type of information I am looking for: Full class reference. I am just unsure weather the Graph object I found under WindowsForms is the same as the one for the WPF controls, or the VS2010 help file was incomplete.
If you have any links to give me the same info online and Updated for complete class references of measurement studio classes, or Alternate strategies for reports that include graphs, I would be interested.
I hope that clarified my question.
Rich.
03-13-2017 06:04 PM
Regarding saving a WPF graph to an image, I would suggest looking at the answers to wpf graph export to image.
Regarding the help, the installation should include all Measurement Studio help, including both WPF and Windows Forms controls. If you search for TemplateValuePresenter
(a type that is unique to WPF), does that produce results in your local help?
03-15-2017 03:19 PM
Thank you. I have not tried it yet, but it definitely answered my question.