Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otDAQ Class Reference
[DAQ - Smart debug system, DAQ - Smart debug system]

Class for smart debug system.

#include <otDAQ.h>


Public Types

enum  DataType {
  DT_U8, DT_S8, DT_U16, DT_S16,
  DT_U32, DT_S32
}

Public Member Functions

 otDAQ ()
bool init (otUSB *usb)
void imageCreate (otImage &image, bool wtb=false)
void imageShow (otImage &image, bool dataAlign=false)
void imageTimings (U32 etUs, U32 timeBase=1000)
void plotOpen (const char *plotTitle, const char *leftLegend, const char *rightLegend)
void plotCurve (U16 id, const char *dataName, U32 num, S16 *data)
void plotUpdate (U16 id, U32 num, S16 *data)
void showArray (void *data, U8 dataType, U16 columns, U16 rows=1)
void saveData (const char *filePathName, const void *data, U32 num)
void pause (bool wait=true)
void messageBox (const char *text, bool wait=true)
bool isDialogClose ()
bool lastProcessComplete ()
U32 freeUsbCommandIndex ()


Member Enumeration Documentation

enum otDAQ::DataType
 

Enumeration values:
DT_U8  Byte.
DT_S8  Byte with sign.
DT_U16  Word.
DT_S16  Word with sign.
DT_U32  Double word.
DT_S32  Double word with sign.


Constructor & Destructor Documentation

otDAQ.otDAQ (   ) 
 

Create the class


Member Function Documentation

U32 otDAQ.freeUsbCommandIndex (   ) 
 

This class adds commands to the USB manager, any commands that need to be added to the manager by the user must have an index starting from the value returned by this function.

Returns:
Available index value

void otDAQ.imageCreate (  otImage &  image,
bool  wtb = false
) 
 

Create an image on the remote desktop

Parameters:
image Specifies the type, number, and size of the image
wtb If active it specifies that a 16bit image on the embedded system will be transferred to desktop at 8bit

void otDAQ.imageShow (  otImage &  image,
bool  dataAlign = false
) 
 

Refresh the image on the desktop

Parameters:
image The image that will be displayed
dataAlign TIZIANO camera require data alignment (for PYTHON1300 intrinsic operations) when true operation will be performed on desktop (more efficent)

void otDAQ.imageTimings (  U32  etUs,
U32  timeBase = 1000
) 
 

Specifies the image capture interval for the desktop image.

Parameters:
etUs Elapsed time in micro second
timeBase Time base to be used on desktop image

bool otDAQ.init (  otUSB *  usb  ) 
 

Init the class

Parameters:
usb Pointer to USB handler
Returns:
True on success

bool otDAQ.isDialogClose (   ) 
 

Check if a dialog box is closed or not.

Returns:
True when a dialog has been closed

bool otDAQ.lastProcessComplete (   ) 
 

Check if a last process is completed or not.

Returns:
True when process is completed

void otDAQ.messageBox (  const char *  text,
bool  wait = true
) 
 

Create a custom MessageBox but has the same functionality as the "pause" method

Parameters:
text Text to be displayed
wait If true wait until MessageBox on desktop will be closed

void otDAQ.pause (  bool  wait = true  ) 
 

It blocks the progress of the embedded program and waits for the MessageBox to be closed from the desktop

Parameters:
wait If true wait until MessageBox on desktop will be closed

void otDAQ.plotCurve (  U16  id,
const char *  dataName,
U32  num,
S16 *  data
) 
 

Create a curve for the plot area

Parameters:
id Curve idenfier, specify a value in the range 0:15
dataName Curve name
num Number of plot data
data Data pointer

void otDAQ.plotOpen (  const char *  plotTitle,
const char *  leftLegend,
const char *  rightLegend
) 
 

Opens a PLOT area on the desktop

Parameters:
plotTitle The title of your plot
leftLegend The legend that is placed on the vertical axis (Y)
rightLegend The legend that is placed on the horizontal axis (X)

void otDAQ.plotUpdate (  U16  id,
U32  num,
S16 *  data
) 
 

Update the plot with the new data

Parameters:
id Curve idenfier, specify a value in the range 0:15
num Number of plot data
data Data pointer

void otDAQ.saveData (  const char *  filePathName,
const void *  data,
U32  num
) 
 

Saves a block of data to a specified file on the desktop

Parameters:
filePathName File path name on desktop
data Pointer to the data you want to save
num Number of data

void otDAQ.showArray (  void *  data,
U8  dataType,
U16  columns,
U16  rows = 1
) 
 

Displays an array of data

Parameters:
data Pointer to the data you want to view
dataType Specifies the type of data to display. See DataType
columns The display will have the specified columns
rows The display will have the specified rows


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-25 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0