![Advantech UbiQ User Manual Download Page 65](http://html1.mh-extra.com/html/advantech/ubiq/ubiq_user-manual_2856809065.webp)
59
UbiQ Scenario Manager User Manual
Chapter 5
Functions
Reference
FILE I/O Functions:
Data acquisition functions:
String functions:
Debug functions:
Homepage client functions:
Date/Time functions:
g_nIDLETime
Global variable, its type is integer. It specifies the IDLE time to
enter the idle mode
g_nReturnTime
Global variable, its type is integer. It specifies the return time to
main menu.
Name
Description
open
Open a file
close
Close the open file
read
Read data from a file
write
Write data to a file
seek
Move file pointer
readln
Read a line from a file
writeln
Write a line to a file
eof
Test whether or not end-of-file of a file
filecopy
Copy a file to another file
Name
Description
OpenPort
Open the specified COM port
sendComData
Send data to the specified COM port
Name
Description
strlen
Return the length of a string
strcpy
Copy a string to another string
sprintf
Format the output to the string
itoa
Convert a integer to a string
ftoa
Convert a double to a string
atoi
Convert a string to integer by decimal type
atoh
Convert a string to integer by hexadecimal type
atof
Convert a string to a double
Name
Description
debug
Show the output to the debug window
setdebug
Switch the debug mode
printf
Format the output to the debug window or web-client
Name
Description
printf
Format the output to the debug window or web-client
getenv
Get the value of the environment variable of web-client
Name
Description
date
Get the current date string
time
Get the current time string
Summary of Contents for UbiQ
Page 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Page 4: ...UbiQ Scenario Manager User Manual iv...
Page 7: ...Chapter 1 1 Introduction...
Page 13: ...Chapter 2 2 Getting Started...
Page 37: ...Chapter 3 3 Tutorials...
Page 47: ...Chapter 4 4 Basic of Smart C Script Language...
Page 62: ...UbiQ Scenario Manager User Manual 56...