Forum > Linux PDAs
Is this possible with Lazarus & Rasp Pi B or 2?
Wurlitzer28:
Current situation:
I have a Windows program I wrote in VB6 which uses a small MS Access Database to display 2 Bit-mapped images at a time [side by side].
The program can advance or go back 2 pages at a time based upon 2 physical i/o inputs.
On the displayed bitmaps, using the database for a data source I can display up to 10 text boxes which contain various Tips based upon certain criteria such that the same bitmap images could very well have different tips based upon what I am doing at the time.
I can move these text boxes and alter their contents from the screen and of course save new data and locations to the database. The text boxes auto adjust their width based upon content.
There are only a couple, but very useful, GUI screens needed for this application.
=======================================
Desired situation:
I would be willing to rewrite this application from the ground up if it could be run from a Raspberry Pi [B or 2] as I would like to offload this app from the main PC which will be doing other more intense operations.
The database is in MS Access and is small [2+ meg with 5 tables] but I would be willing to move it to something more compatible with Lazarus if the MS access file cannot be used in a Linux/Lazarus environment. MS Access is preferred [because I understand it so well] but not an absolute requirement.
The database and the bit-mapped images would reside on a USB thumb drive thus removing any concerns about file size should the db get larger (doubt it though).
A USB mouse, Keyboard would obviously be required.
Is this feasible with Lazarus/FreePASCAL and the Raspberry Pi?
Thanks for taking the time to read.
Paul Breneman:
Welcome to the Lazarus forums Wurlitzer28!
What were the 2 physical i/o inputs that your Windows VB6 program used?
I think this all should be pretty easy on the RPi (I have one so maybe I could help).
It is easy to see Free Pascal work on the RPi. Just download the small ARM Linux zips on these two pages:
http://www.turbocontrol.com/easyfpgui.htm
http://www.ctrlterm.com/
sky_khan:
I have an RPi2 but never tried to use its i/o ports and I dont think you can use ms-access database on linux but other than that it sounds easy. btw, I would use Sqlite instead of ms-access.
Wurlitzer28:
Thanks for the response Paul.
Currently I have two physical switches which connect to a Parallax Propeller 8 Core Micro running all my high speed operations in Assembly and one of the many functions of that Micro is to detect a switch closure and then send one of two messages via the serial port to my main PC. The VB program in the Main PC simple advances or goes back 2 pages/images based upon that serial message. I just used the "<" or ">" characters for this operation
I could continue that method using Lazarus & Raspberry Pi or bring those two switches directly to the Raspberry Pi. Response time is not really that critical but i would like the Raspberry Pi to respond to the inputs in under 250ms.
I have used a Raspberry Pi in a Christmas lighting display to drive 6500+ multi-color leds and have used one of the inputs to manually launch that display. Virtually all the programming/setup of that Pi was downloaded as one application so my exposure to Linux/Pi is certainly minuscule in comparison to my Assembly/VB 6 programming skills
--- Quote from: Paul Breneman on May 25, 2015, 11:41:06 pm ---Welcome to the Lazarus forums Wurlitzer28!
What were the 2 physical i/o inputs that your Windows VB6 program used?
I think this all should be pretty easy on the RPi (I have one so maybe I could help).
It is easy to see Free Pascal work on the RPi. Just download the small ARM Linux zips on these two pages:
http://www.turbocontrol.com/easyfpgui.htm
http://www.ctrlterm.com/
--- End quote ---
Wurlitzer28:
Thanks Sky_khan for taking the time to respond.
The only reason I would like [not need] to stay with the MS Access file is that it is super easy for me to make changes in a Windows environment then just move that db to the Raspberry Pi but Lazarus would have to have the drivers to communicate with that file format. I currently do that today as the XP PC running this application does not have a copy of MS Access on it but my VB application does not care it just uses SQL commands via a Jet driver as the tool to read/write to any record.
I would not upset me too much to also use another db if it would play better with Lazarus on the Raspberry Pi especially if that database could originally be created in a Windows environment then pushed to the Raspberry Pi. In fact this entire project is a learning experiment cloaked in a real live application so learning another database application is not a bad thing however the ease of creating and modifying in a Windows environment would be preferred.
--- Quote from: sky_khan on May 25, 2015, 11:57:57 pm ---I have an RPi2 but never tried to use its i/o ports and I dont think you can use ms-access database on linux but other than that it sounds easy. btw, I would use Sqlite instead of ms-access.
--- End quote ---
Navigation
[0] Message Index
[#] Next page