HP Drive Bedienungsanleitung Seite 81

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 114
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 80
Using IVI with PAWS
81
hr = pDMMData->Initiate();
if (FAILED(hr))
{
Display("\033[30;41m Bad return from Initiate()
method\033[m\n");
}
10 To set the reading timeout to 1 second, select the DMM.cpp file from the PAWS
Project window.
11 In the DMM_Fetch() interface function, insert the following code below the line
Please insert your CEM driver code here:
double Data = 0;
DATUM *fdat;
hr = pDMMData->Fetch(1000, &Data);
if (FAILED(hr))
{
Display("\033[30;41m Bad return from Fetch(1000,
&Data) method\033[m\n");
}
fdat = FthDat();
DECDatVal(fdat, 0) = Data;
FthCnt(1);
Note:
The first argument in the
Fetch
method specifies how long to wait in the
Fetch
operation since it is possible that no data is available or the trigger event did
not occur. The second parameter contains the actual reading or a value indicating
that an over-range condition occurred.
12 To conserve resources, you should close the driver session. From the PAWS
Project window, select the ctrl.cpp file.
13 In the doUnload() interface function, insert the following code below the line //
Please insert your CEM driver code here:
hr = driver->Close();
if (FAILED(hr))
{
Display("\033[30;41m Bad return from Close()
method\033[m\n");
Seitenansicht 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 113 114

Kommentare zu diesen Handbüchern

Keine Kommentare