09.01.2013 Views

CANoe DENoe - KEMT FEI TUKE

CANoe DENoe - KEMT FEI TUKE

CANoe DENoe - KEMT FEI TUKE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.12.5 Hardware API<br />

9.12.5.1 Optolyzer Operation Mode<br />

long MostSetOptoMode(long channel,long optoMode)<br />

Sets the operation mode of the Optolyzer to the specified value.<br />

optoMode = 1: Spy Mode<br />

optoMode = 4: Slave Mode<br />

optoMode = 6: Master Mode<br />

Refer to the OptoControl helpfile for further explanations of the values for optoMode.<br />

This function only works in the ‘Prestart’ section of the CAPL program.<br />

long MostGetOptoMode(long channel)<br />

Returns the operation mode of the Optolyzer connected to the given channel.<br />

Availability: Simulation Setup (only in ‘Prestart’ section)<br />

9.12.5.2 Node Mode<br />

Setting Addresses of the Optolyzer<br />

181<br />

long MostSetOwnAdr(long channel, long grpadr, long nodeadr)<br />

This function sets the node address and group address of the Optolyzer to the specified<br />

values.<br />

Availability: Simulation Setup (at any time, not in StopMeasurement)<br />

Retrieving Addresses of the Optolyzer<br />

long MostGetNodeAdr(long channel)<br />

long MostGetGroupAdr(long channel)<br />

long MostGetNodePosAdr(long channel)<br />

Return Node, Group or Node Position Address of the Optolyzer connected to the<br />

specified channel.<br />

Availability: Simulation Setup (at any time, not in StopMeasurement)<br />

Optolyzer Status<br />

long MostGetLight(long channel)<br />

long MostGetLock(long channel)<br />

long MostSetLight(long channel, long mode)<br />

Get and set the Optolyzer states.<br />

Availability: Simulation Setup (at any time, not in StopMeasurement)<br />

© Vector Informatik GmbH <strong>CANoe</strong>/<strong>DENoe</strong> Manual Version 4.1.1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!