Loading Data with a DataPlugin Within LabVIEW

Publish Date: Jul 29, 2010 | 8 Ratings | 2.00 out of 5 | Print | 9 Customer Reviews | Submit your review

Within LabVIEW 2010 you find everything you need to work with DataPlugins on the Storage/DataPlugin palette. Please follow this link: Using DataPlugins with LabVIEW

 

By using a old version of LabVIEW please follow this information:

This library contains two examples. DataPlugin Load File.vi shows how to load all channels from a DataPlugin file. If the data is stored as a waveform it is graphed vs. the waveform time values, otherwise it is graphed vs. the array index. You must select the path of the file you wish to view as well as the name of the DataPlugin to use to load that file, then run the VI.

The other example included, DataPlugin Tree View.vi, displays the hierarchy of channel groups and channels from a DataPlugin file. Properties and waveform values of the channel group or channel selected from the left hand side tree control can be viewed in the right hand side tabs. You must select the path of the file you wish to view as well as the name of the DataPlugin to use to load that file, then run the VI.

These examples will only work with DataPlugins which conform to the TDM data schema (File >> Groups >> Channels). This is true for all VBScript DataPlugins, which install with a *.URI file, and it is true of most C++ DataPlugins as well. The only DataPlugins which do not conform to the TDM data schema are DataPlugins which connect to external databases, such as the various Citadel DataPlugins or the ASAM-ODS DataPlugins. The DIAdem DataFinder also requires that the DataPlugin conforms to the TDM data schema, so any DataPlugin which works in the DIAdem DataFinder will also work with these example VIs.

The name of the DataPlugin is the same name as the title of the page you downloaded it from. For example, the MATLAB® DataPlugin can be download from http://zone.ni.com/devzone/cda/epd/p/id/4178 and the name of that DataPlugin is "MATLAB®." For VBScript DataPlugins, the name of the DataPlugin is the same name as the *.URI file that installs with it. For a full list of publically available DataPlugins, go to the DataPlugins web site (www.ni.com/dataplugins).

 

MATLAB® is a registered trademark of The MathWorks, Inc.

Back to Top

Customer Reviews
9 Reviews | Submit your review

Really Helpful, But...  - Dec 8, 2008

I agree with the comment that password protecting examples isn't the greatest thing in the world. However the plugin for the Win600 and this library is about to save me a huge amount of work.

Ask for help  - Sep 24, 2008

If you have trouble using these examples of reading data from file with DataPlugins in LabVIEW, feel free to send me an email at brad.turpin@ni.com and ask for help.

works - sort of  - Aug 22, 2008

This works. I can view the netcdf files and extract data. I agree the password protected areas would be nice to view and modify. The problem I have is that these routines seem to hold on to the file and won't let me delete them until the program is finished executing. There is an "open with root" routine that I think may be the culprit, but I can't get inside to check this.

Not helpful  - Jul 21, 2008

The example files are next to useless for developers since they are password-protected. However you can get some clues on how to read data files here: http://zone.ni.com/devzone/cda/tut/p/id/5052 You need to add a line to your Labview.ini file: unlockStorageImportObjectDefinition=True (and restart Labview) and then pop a "Open Storage" function onto your VI. It is an ExpressVI and in the dialog, choose "DYN Dynamically assign data storage format)(advanced) from the drop down and enter the name of the DataPlugin in the "Format descriptor" text box and click Ok. The DYN option is not available until you add the line to your INI file. Then create a string constant "<filename>C:/fullpath/toyour/file.dat</filename>" and wire that to the "storage location" input. Then refer to the image under the heading "Read All MeasurementQuantity Data" on the above web page to extract your data/channel info.

How is this helpful?  - May 30, 2008

Could someone at NI lease explain what use do we have from those "examples" if the VIs are password-protected and we can't even see what they do?!? Is NI in the business of selling hardware and development tools or in frustrating its users?! Of course, the example does not work for me and I have no way of knowing why...

Works as advertised  - Nov 9, 2007

Just downloaded the current version of the plugin - example vi works fine for me now, don't know what the earlier problem was.

Works Great!  - Mar 30, 2007

I had no problems running the VI's. All I needed to do was enter my dataplugin name and point to a data file and I had all thedata at my fingertips. This code will come in handy.

Terrible example, everything is locked and password protected  - Feb 12, 2007

Agree with previous comment - this is terrible. After searching and reading for almost an hour, still have no clue how to use any of these data plugins inside of labview. This particular example is password protected, so you cannot even see the diagrams!

  - Jan 16, 2007

Couldn't make the example work, error message is cryptic, and diagram is locked so there's no way to troubleshoot.

View more reviews

Bookmark & Share


Downloads

Attachments:

Load_with_DataPlugin_LV80.llb

Requirements

Load_with_dataplugin_lv85.llb

Requirements

Load_with_DataPlugin_LV71.llb

Requirements


Ratings

Rate this document

Answered Your Question?
Yes No

Submit