 | | Developing Applications with Intel® Array Visualizer |
Intel® Array Visualizer provides a set of development libraries that make it easy to add powerful visualization features to your applications.
| C and Fortran Library Routines |
These libraries provide a small set of functions and subroutines that allow Fortran or C applications to load, view, and save array data with just a few lines of code! The library routines can be used by console or graphical applications. Intel Array Viewer (via OLE automation) is used to display data and plots.
The following shows how a Fortran program would display an array using Intel Array Viewer:
integer, parameter ::numcols=40, numrows=50
! Define a 2D array of reals
real(4) :: M(numcols, numrows)
print *, "Initializing array data"
do j=1, numrows
y = (j-1.0)/(numrows-1.0)
do i=1, numcols
x = (i-1.0)/(numcols-1.0)
M(i, j) = sin(y*pi)+cos(x*pi)
end do
end do
call avStartWatch(LOC(M), 2, SHAPE(M), AV_REAL4, "M", status)
! Create a viewer instance
print *, "Starting Array Viewer"
call avNewViewer(viewerId)
! Make it visible
call avVisible(viewerId, 1, status)The Intel® Array Visualizer object model is a hierarchical class library that provides over 50 classes that represent arrays, attributes, plots, and other components. See a diagram of the object model below. The object model can be accessed by Fortran, C++, Micrsoft .Net* languages (C#. VB.Net), and script clients (VBScript and JavaScript). The object model can be used to create and access array data, create and customize plots, and create dynamic animations. The following figure shows the organization of the object model. Shaded boxes are collection classes that can contain multiple children.  Intel Array Visualizer includes a set of ActiveX* Controls that can be used to display data as a spreadsheet, graph, or as a tree. These controls can be used in any development environment that supports the ActiveX controls, such as Intel® Visual Fortran, Microsoft Visual C++, or Microsoft Visual Basic. Using these controls, developers can create applications that incorporate the functionality of Intel Array Visualizer for processing and displaying hierarchical data. Here is an example of a simple C# WinForm application using the AvGraph control to display a height plot:  | Using Intel Array Visualizer with Intel Visual Fortran |
Intel Visual Fortran users can use Intel Array Visualizer to view array data while debugging. No source changes are required. Just right click on the array variable while debugging, and select "View Array". A tool window will display the array within the IDE. Optionally, the array can be displayed using Intel Array Viewer.  |  |
|
Intel® Software Network
|  | |
| -
It’s free and easy to become a member, so join today!
| |
 |