SESTILIO  3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
Control Functions

Functions

CTYPE int DLL SE_Open (char sestilioId, int usbDevice)
 Open the connection with SESTILIO. More...
 
CTYPE int DLL SE_Close (int usbDevice)
 Close the connection with SESTILIO. This procedure must be execute at the end of your program. More...
 
CTYPE unsigned DLL SE_NumOfDevices ()
 How many SESTILIO are connected?. More...
 
CTYPE int DLL SE_Status (int usbDevice)
 Return the status of the last execute operation. More...
 
CTYPE int DLL SE_SetID (char sestilioId, int usbDevice)
 Set a new ID for connected SESTILIO. As factory setting the ID is set to '0'. More...
 
CTYPE int DLL SE_FirmwareRev (int usbDevice)
 Check Sestilio firmware revision number. More...
 
CTYPE int DLL SE_CPUtemperature (int usbDevice)
 Read Sestilio CPU temperature. More...
 
CTYPE unsigned DLL SE_Counts (int usbDevice)
 Some procedures are long task, with this command is possible to check a countdown to the end of task. More...
 
CTYPE int DLL SE_ClrCounts (int usbDevice)
 Clear the countdown. More...
 
CTYPE int DLL SE_WatchDog (int timeout, int usbDevice)
 Set watchdog. More...
 
CTYPE long DLL SE_DebugData (int dataId, int param0, int param1, int usbDevice)
 

Detailed Description

Collection of functions for the primary controls of the USB connection and SESTILIO initialization.

Function Documentation

◆ SE_Close()

int SE_Close ( int  usbDevice)

Close the connection with SESTILIO. This procedure must be execute at the end of your program.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_Open.
Returns
Operation status Operation Status
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
// Your code
// ...
}

Definition at line 38 of file sestilio.cpp.

◆ SE_ClrCounts()

int SE_ClrCounts ( int  usbDevice)

Clear the countdown.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_Counts.
Returns
Operation status. Operation Status

Definition at line 322 of file sestilio.cpp.

◆ SE_Counts()

unsigned SE_Counts ( int  usbDevice)

Some procedures are long task, with this command is possible to check a countdown to the end of task.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_FastReadAnalog, SE_FastWriteAnalog, SE_TransientResponse, SE_MotorPositioning, SE_MotorCalibrate.
Returns
countdown.

Definition at line 317 of file sestilio.cpp.

◆ SE_CPUtemperature()

int SE_CPUtemperature ( int  usbDevice)

Read Sestilio CPU temperature.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_Open.
Returns
CPU temperature in Kelvin.
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
printf("CPU Temperature: %dK\n", SE_CPUtemperature(0));
// Your code
// ...
}

Definition at line 332 of file sestilio.cpp.

◆ SE_FirmwareRev()

int SE_FirmwareRev ( int  usbDevice)

Check Sestilio firmware revision number.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_Open.
Returns
Firmware revision number.
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
printf("SESTILIO Rev: %.2lf\n", (double) SE_FirmwareRev(0) / 100.0);
// Your code
// ...
}

Definition at line 327 of file sestilio.cpp.

◆ SE_NumOfDevices()

unsigned SE_NumOfDevices ( )

How many SESTILIO are connected?.

See also
SE_Open.
Returns
The number of connected device.
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
printf("Connected SESTILIO: %d\n", SE_NumOfDevices());
// Your code
// ...
}

Definition at line 48 of file sestilio.cpp.

◆ SE_Open()

int SE_Open ( char  sestilioId,
int  usbDevice 
)

Open the connection with SESTILIO.

Parameters
sestilioIdSpecify the SESTILIO identifier. This is a character used to control several SESTILIOs on the same serial port. As factory settings this value is always set to '0'.
usbDeviceSpecify a SESTILIO USB identifier. Is possible to connect up to 128 SESTILIO on the USB. If only one SESTILIO is present on the USB this parameter is set to 0.
See also
SE_Close.
Returns
Operation status Operation Status
#include "sest.h"
if(SE_Open('0', 0) == SE_S_SUCCESS)
{
// Your code
// ...
}

Definition at line 14 of file sestilio.cpp.

◆ SE_SetID()

int SE_SetID ( char  sestilioId,
int  usbDevice 
)

Set a new ID for connected SESTILIO. As factory setting the ID is set to '0'.

Parameters
sestilioIdSpecify the SESTILIO identifier.
usbDeviceSpecify a SESTILIO USB identifier.
See also
SE_Close.
Returns
Operation status. Operation Status

Definition at line 194 of file sestilio.cpp.

◆ SE_Status()

int SE_Status ( int  usbDevice)

Return the status of the last execute operation.

Parameters
usbDeviceSpecify a SESTILIO USB identifier.
Returns
Operation status. Operation Status
See also
SE_Open.

Definition at line 53 of file sestilio.cpp.

◆ SE_WatchDog()

int SE_WatchDog ( int  timeout,
int  usbDevice 
)

Set watchdog.

Parameters
timeoutLoop counter.
usbDeviceSpecify a SESTILIO USB identifier.
Returns
Operation status. Operation Status

Definition at line 867 of file sestilio.cpp.