width, height
If width and height are not set, then WRAPPER_TEST_EXECUTE does not display a plot, even if the JWAVE wrapper returns a graphic. If width and height are set, a PV-WAVE window appears even if the JWAVE wrapper does not return any graphics.
testplot.pro
. You can find this wrapper in:
VNI_DIR/jwave-3_0/lib/user
VNI_DIR\jwave-3_0\lib\user
VNI_DIR
is the main Visual Numerics installation directory.
WAVEWRAPPER_TEST_INIT, 'TESTPLOT', 400, 300 WAVE
WRAPPER_TEST_SETCOLOR, 'BACKGROUND', '919191'xL WAVE
WRAPPER_TEST_SETCOLOR, 'LINE', 'ff0000'xL WAVE
WRAPPER_TEST_SETCOLOR, 'SYMBOLS', $ ['ff00ff'xL, '00ffff'xL, 'ffff00'xL], /Color_Set WAVE
WRAPPER_TEST_SETPARAM, 'DATA', HANNING(20) WAVE
WRAPPER_TEST_SETPARAM, 'SYMBOL', 1 WAVE
WRAPPER_TEST_EXECUTE
WAVEWRAPPER_TEST_RETURN_INFO DATA INT = 0
simple.pro
wrapper is used. This wrapper returns the square root of the input parameter. You can find this procedure in the same directory as testplot.pro
, described previously. This wrapper only returns a numerical result and not graphics.
WAVEWRAPPER_TEST_INIT, 'SIMPLE' WAVE
WRAPPER_TEST_SETPARAM, 'NUMBER', 2 WAVE
WRAPPER_TEST_EXECUTE WAVE
PRINT, WRAPPER_TEST_GETRETURN('DATA') 1.41421 WAVE
WRAPPER_TEST_RETURN_INFO DATA FLOAT = 1.41421