Tutorial > Programming with PV-WAVE > Getting Information on the PV-WAVE Session
  

Getting Information on the PV-WAVE Session
The INFO procedure gives information about the PV-WAVE session.
Getting Information About the Session
Typing INFO, with no additional parameters, displays an overview of the current session, including one-line descriptions of all variables and the names of all compiled procedures and functions.
*To obtain general information about the session, enter:
INFO
PV-WAVE returns information about variables, saved procedures and functions, area used for code and data, etc.
Getting Information on Specific Variables
To display information about a variable’s type and structure, add a comma (,) and the name of the variable. This makes the variable an argument to the INFO command, as is demonstrated next.
1. Define a 6-element array named vector to use as an example:
vector = [1, 2, 3, 4, 5, 6]
2. Display information on vector. Enter:
INFO, vector
PV-WAVE returns:
VECTOR      INT      = Array(6)
indicating vector is a 6-element integer array.
3. View both vector and the tripled value of each element, type:
PRINT, vector, 3*vector
PV-WAVE returns:
1 2 3  4  5  6
3 6 9 12 15 18
Information About System Variables
You can rapidly determine the settings of your system variables.
1. To print the values of system variables, type:
INFO, /System_Variables
The values of the system variables are returned to the screen.
2. To print the value of a single variable, you can use the PRINT command. To print the value of the !Pi system variable, type:
PRINT, !Pi
Looking at PV-WAVE Source Files
The following directories contain many examples of programs and applications written in the PV-WAVE command language (where <RW_DIR> is the name of the main product directory):
*<RW_DIR>\docs\tutorial\code
*<RW_DIR>\wave\lib\std
*<RW_DIR>\wave\lib\user
As you begin to develop your own applications, you are free to examine these files and whenever possible use the code in your programs.

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.