18.11.2012 Aufrufe

USBOPTO/REL 64/32/16/8 - QUANCOM Informationssysteme GmbH

USBOPTO/REL 64/32/16/8 - QUANCOM Informationssysteme GmbH

USBOPTO/REL 64/32/16/8 - QUANCOM Informationssysteme GmbH

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

var handle: longint;<br />

status: longint;<br />

lines: longint;<br />

s: string;<br />

i: integer;<br />

j: integer;<br />

Label lab1, lab2;<br />

begin<br />

{*<br />

//<br />

// Open the USB Module<br />

//<br />

*}<br />

handle := QAPIExtOpenCard(<strong>USBOPTO</strong><strong>REL</strong><strong>16</strong>,0);<br />

if ( handle = 0 ) then<br />

begin<br />

handle := QAPIExtOpenCard(<strong>USBOPTO</strong><strong>16</strong>IO,0);<br />

end;<br />

{*<br />

// The handle is NULL if there is a USB Module installed<br />

*}<br />

if ( handle = 0 ) then<br />

begin<br />

s := 'No <strong>QUANCOM</strong> USB Module found!';<br />

writeln(s);<br />

halt(0);<br />

end;<br />

{*<br />

// Ok, we found a <strong>QUANCOM</strong> USB Module<br />

// ------------------------------------------------------------------------<br />

// PART 1: Setting the outputs<br />

//<br />

// The following constants can be used to program the outputs:<br />

// ------------------------------------------------------------------------<br />

*}<br />

{*<br />

//<br />

// Reset all lines to "Low"<br />

//<br />

*}<br />

lines := 0;<br />

writeln('Reset all lines to Low ( Press return to continue ):');<br />

QAPIExtWriteDO<strong>16</strong>(handle, 0, lines, 0);<br />

Readln;<br />

{*<br />

//<br />

// Set the outputs OUT4,OUT10 and OUT15 to "High" ( <strong>16</strong>-Bit )<br />

//<br />

*}<br />

writeln('Set OUT4,OUT10 and OUT15 to High ( Press return to continue ):');<br />

lines := OUT4 + OUT10 + OUT15;<br />

QAPIExtWriteDO<strong>16</strong>(handle, 0, lines, 0);<br />

Readln;<br />

{*<br />

//<br />

// Set the output OUT1, OUT4,OUT10 and OUT15 to "High" ( <strong>16</strong>-Bit )<br />

//<br />

*}<br />

© <strong>QUANCOM</strong> <strong>Informationssysteme</strong> <strong>GmbH</strong> 56

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!