NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

NI Stats VI Utility

VERSION 30 Published

Created on: Jan 18, 2008 1:17 PM by Mark.Ridgley - Last Modified:  Aug 2, 2008 10:17 AM by Mark.Ridgley


REQUIREMENTS:
Application Software: LabVIEW Full Development System

The NI Stats VI Utility enables you to easily monitor key statistics for items posted on the NI Community web site - without using a web browser! Monitor and update the statistics manually or based on a configurable time interval. Run the NI Stats VI Utility to see how you can use it to monitor items that you or others have posted on the NI Community web site.

 

Readme file for NI Stats VI Utility

 

 

Description

 

The NI Stats VI Utility enables you to easily monitor key statistics for items posted on the NI Community web site - without using a web browser!

 

Use the NI Stats VI Utility to see how you can use it to monitor items that you or others have posted on the NI Community web site.

 

 

Application Software

 

LabVIEW 7.x

 

 

Driver Software

 

None.

 

 

Concepts Illustrated

 

The NI Stats VI Utility illustrates the following concepts:

  • State machine architecture

  • Using DataSocket to read the web page source for items on the NI Community web site

  • Using the SnapToPanel VI to position a sub-panel relativeto the main window (Download the Snap To Panel VI)

  • Using the Busy Indicator VI to provide an indication to the user that the system is busy. (Download the Show Busy Indicator VI)

  • Using the numdays.vi by BetterVIEW consulting to calculate the number of days between two dates (Download the numdays VI at: http://www.bettervi.com/Media/NUMDAYS.ZIP)

 

 

Description of Operation

 

The NI Stats VI Utility enables the user to easily check the status of files posted on the NI Community web site.

 

The user can select files to monitor and update the statistics for those files manually or based on a configurable time interval.

 

To easily add files to the list of files to monitor, copy the URL string from your web browser and paste it into the URL String column of the table shown in the Select Files to Monitor window.

 

The NI Stats VI Utility stores the list of files to monitor at the following path:

NIStats\Data\ FilesToMonitor.txt

 

The NI Stats VI Utility stores a log file at the following path:

NIStats\Data\ Community Stats Log.txt

 

The Community Stats Log.txt file is updated once per day that the NI Stats VI Utility runs.

 

The Community Stats Log.txt file is formatted so that you can import the data into a spreadsheet program if you want to perform a more detailed analysis of the data.

 

 

Extracting the files

 

The NI Stats VI Utility is supplied as a zip archive containing all required items. The zip archive contains full path information.

 

When extracting the items, set the path to C:\. Since the zip archive includes full path information, the included items will be extracted to the following path:

C:\Program Files\NIStats

 

 

Additional Information

 

Additional information related to the use and operation of the NI Stats VI Utility may be accessed via:

  • The block diagrams of all included VIs

  • The documentation within all included VIs

 

 

Developed by

 

Mark Ridgley

mark.ridgley@logicpd.com

 

 

Change Control:

 

07-29-2008: Modified the NI Stats - Update Stats.vi to parse the Title immediately after reading the page source. This accounts for the change to the NI Community web page structure that no longer includes the title of submitted items in the URL.

07-29-2008: Modified the NI Stats - Parse Title From Community Page Source.vi to account for the change to the NI Community web page title record so that "NI Communities: " is not displayed in the File Name field of the main interface VI.

07-29-2008: Modified the first search string in the NI Stats - Parse Download Count From Community Page Source.vi to reflect the new tag used in the page source.

Updated links to other example code to account for the change to NI Community URL formatting for submitted items.

 

Downloads:
Average User Rating
(1 rating)




Aug 14, 2008 5:49 PM Click to view sshearman's profile sshearman says:

Hi Mark,

This is a very nice utility! Useful as both a tool and as an example of clean LabVIEW coding. I'm not sure if the number of views is available through the ni.com/community, but that would also be a nice stat to track.

 

--Sam

More Like This

  • Retrieving data ...