Topic: Question about script capabilities and Webpages

Dear Dimitry,
I need some information about the script engine because there are some needs:

I have a customer request who need to add some external information into the records.

He wants to get switching information from a Multi IO card with timestamp in the database and from other external systems diagnostic information.

- Is it possible to add external Units or to access external .dll files from IO Cards and other devices with binary data transfer (Diagnostic files for example)?
- Can I access webpages via script to read out HTML and XML Content?

Do you have plans to add an internal Webserver for access a compiled application or do you have an other idea how to access a MyVisualDatabase via Webpage? Reports should be downloaded as .pdf file or send as email to the user.

Thank you for sharing ideas/information.

Best regards
lostdb

Re: Question about script capabilities and Webpages

Hello.


My Visual Database can use COM port to work with external devices.


Also you can make HTTP request and get result of request.

HTTPGet(url: string): string

Or even download file from the web.

HTTPGetFile(url: string; SaveToFile: string): boolean


You can open any text files (like HTML or XML) and parse it using regular expression.

Dmitry.

Re: Question about script capabilities and Webpages

Dear Dimitry,
Thank you for the information.
The external devices are connected via USB or Network.

Can I connect to an specific IP and Port and open a channel for binary data transfer.

Something like

OPEN_NETWORK(IP4/IP6, TYPE, IP Adress, Port, send/receive)
OPEN_NETWORK(IP4,UDP,127.0.0.1,65536,send)

The USB Devices have a connection .DLL file. Can I connect to it or can I include a Unit as library?

Something like

CONNECT_DLL(path to dll, name dll)
CONNECT_DLL(c:\temp,nottingham.dll)

Is the scripting engine a full featured Delphi system or stripped to your needs?

Re: Question about script capabilities and Webpages

What exactly method to connect via network you need, Socket?
https://en.wikipedia.org/wiki/Winsock


may be I can add it in the next version, I'll check it.

Dmitry.

Re: Question about script capabilities and Webpages

Dear Dimitry,

Socket, but the examples are for BSD Socket (https://en.wikipedia.org/wiki/Berkeley_sockets). I would not see any problem because Winsock is based on BSD Socket.

What is about connecting the USB Devices and .DLL Libraries?

Re: Question about script capabilities and Webpages

Work with USB devices and DLLs not planned yet.

Dmitry.