User Tools

Site Tools


seb2

SEB2 Library

Overview

The DriveTest SEB2 Library is a LabVIEW 2014 library which provides functionality to access the DriveTest SEB2 Electronic Box for Pinch Force Measurement Systems.

The library is in lvlibp format (compiled LabVIEW library) and is optimized for use with National Instruments TestStand. The NI LabVIEW 2014, 2015 or 2016 Runtime Environment has to be installed.

License

A 14-day-trial license will be installed with this library. Please refer to the DriveTest Licensing manual for more information and contact DriveTest for a perpetual license.

System Requirements

  • The library only works with its respective Labview Version
  • NI LabVIEW 2014, 2015 or 2016
  • NI VISA drivers
  • The library is not allowed to run in a virtual machine
  • DriveTest COM Library (COM.lvlibp) needs to be located in the same folder
  • The SEB2 Library License Installer has to be executed before working with the library

Public VIs for communication with SEB2

The following VI's can be used to control the SEB2.

create.vi

creates a SEB2 reference and opens the COM port

SEB2.lvlib_SEB2.lvclass_create.vi Connector Pane

Inputs

port

Data Type Image The data type of this connection is “Refnum”. Wiring this connection is required. Selects an available COM port of the PC.

Outputs

SEB2

Data Type Image The data type of this connection is “LabVIEW Class Instance”. This reference has to be wired to all following VIs which communicate with the SEB2. It has to be destroyed with “done.vi”.

done.vi

Destroys SEB2 reference

SEB2.lvlib_SEB2.lvclass_done.vi Connector Pane

Inputs

SEB2

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

reset error memory.vi

Resets all 4 slots from error memory of the SEB2.

SEB2.lvlib_SEB2.lvclass_reset error memory.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

connect.vi

Establishes a connection with SEB2. Gets version information if successful.

Telegram version (major.minor) Software version (major.minor.revision (build)) Box-ID Index Life Cycle Serial Number

SEB2.lvlib_SEB2.lvclass_connect.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

box ID

Data Type Image The data type of this connection is “String”.

index

Data Type Image The data type of this connection is “String”.

life cycle

Data Type Image The data type of this connection is “String”.

serial number

Data Type Image The data type of this connection is “String”.

software version

Data Type Image The data type of this connection is “String”. major.minor.revision (build)

telegram version

Data Type Image The data type of this connection is “String”. major.minor

disconnect.vi

disconnects SEB2

SEB2.lvlib_SEB2.lvclass_disconnect.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

start.vi

Start a new measurement.

SEB2.lvlib_SEB2.lvclass_start.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

stop.vi

Stops a running measurement and collects the force value

SEB2.lvlib_SEB2.lvclass_stop.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

data available

Data Type Image The data type of this connection is “Boolean”. TRUE if a measurement did happen

force value

Data Type Image The data type of this connection is “Double Float With Unit”. force value in Newton

abort.vi

Aborts a running measurement. Can be useful if SEB2 sends error. “wrong mode”

SEB2.lvlib_SEB2.lvclass_abort.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

progression.vi

Gets the force progression of the last measurement.

SEB2.lvlib_SEB2.lvclass_progression.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type ImageThe data type of this connection is “LabVIEW Class Instance”.

data

Data Type Image The data type of this connection is “Array”. force progression values

read sampling rate.vi

Reads the sampling rate from the SEB2 configuration in Hz.

10.03.2017, DT (FIS)

SEB2.lvlib_SEB2.lvclass_read sampling rate.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

sampling rate (Hz)

Data Type Image The data type of this connection is “I32”.

read error memory.vi

Reads all 4 slots from error memory of the SEB2.

SEB2.lvlib_SEB2.lvclass_read error memory.vi Connector Pane

Inputs

SEB2 in

Data Type Image The data type of this connection is “LabVIEW Class Instance”. Wiring this connection is required.

Outputs

SEB2 out

Data Type Image The data type of this connection is “LabVIEW Class Instance”.

error memory

Data Type Image The data type of this connection is “Array”. Code (HEX): 0..FF Count (DEC): 0..255 Info (HEX): 0..FFFF

Please refer to documentation for list of possible errors.

Error messages

The error is visible on the SEB2's display.

Error Comment
0X Protocol error
1X Serial interface error (x: Bit0=Parity, Bit1=Framing, Bit2=Overfow)
18 Baudrate error
20 Sensor connector change
30 Sensor supply error
31 Missing measure data (Time Out)
40 LCD - test error
42 SRAM memory fast test error
43 EEPROM test error
44 EEPROM system parameter initialization error
45 EEPROM test erro sensor data
46 EEPOROM initialization error sensor data
47 A/D-converter does not react
48 Real Time Clock does not react
50 Message Queue overflow
51 Queue for schedule data overflow
52 Queue for long term messages overflow
53 System died (Watchdog)
54 Stack overflow
55 Serial transmit data overflow
60 Bus arbitration error
70 Overlow force measure data
71 Overflow position measure data
80 Access violation SRAM
81 Access violation at EEPROM
88 EEPROM does not react (not busy)
89 EEPROM does not react no longer (constantly busy)
FF Error cause unknown

Contact

Drive Test GmbH - Antriebsprüfung und Schließkraftmessung
CEO: Thomas Berger

Adi-Maislinger-Str.9
D - 81373 München
Tel: + 49 (0) 89 - 743 40 94 0
Fax: + 49 (0) 89 - 743 40 94 9

info@drivetest.de
www.drivetest.de

seb2.txt · Last modified: 2017/10/16 15:10 by dennis