
82
Chapter 8
•
•
•
•
•
•
}
driver.Release();
pDMMData.Release();
pDMMTrig.Release();
pDMMDCVolt.Release();
Note:
The function doUnload gets called only once, when the Paws project is
unloaded from the run-time system.
Build the Project
1 From the Main Menu, select Options and click on CEM. The WCEM dialog
appears.
2 Select the Files tab and enter C:\Program Files\IVI\Include in the Include Path
field. Click Apply.
Note:
The path includes the Visacom_i.c file from the DMM.h header.
3 From the Main Menu, select Build and click on Rebuild All. The Output area
appears with a message that indicates the project was successfully built.
Note:
Most of the IVI-COM driver methods return HRESULT value, which is used
in this example across the entire driver implementation for error handling. Error
handling code is recommended as you develop a PAWs application. In our
example, the error handling code begins with if (FAILED(hr)) and ends with the }
after the Display line for most of the methods.
Prepare the Run-Time System Environment
1 In the Project Workspace area, double-click on the Busconfi. The DMM name
in a Busconfi file corresponds to the name defined in the dmm.ddb file following
the begin dev statement.
2 Set the Listen Address MLA and Talk Address MTA to the device address of
23.
3 The Bus number must correspond to the Channel number.
The Busconfi code should appear as below:
; IEEE-488 Bus Configuration File -
"Channel" 1
DMM BUS 1 MLA 23 MTA 23