Loading...
 
4D Systems Supporting Files
Designed to provide useful information showcasing the spectrum of features that 4D products have to
offer, through easy to read documentation supported by illustrative images and sample code extracts.

ViSi-Genie Magic How to Read a File

Name : 4D-AN-00161
Title : ViSi-Genie Magic How to Read a File
Revision : 1.02
Description : In the past it was not possible for a host to access files stored in the uSD card of a display module loaded with a ViSi-Genie application. With Workshop 4 Pro it is now possible to accomplish this through the use of the Magic Object. The Magic Object is one of the objects available under the Genie Magic pane. It is actually a 4DGL function which allows users to program the display to handle bytes received from an external host. The user, for instance, can create a Magic Object that waits for 14 bytes from the host. The 14 bytes can contain an instruction byte, followed by a null-terminated 8.3 format filename (e.g. "datalog1.txt"). The instruction byte can be a file read, a file write, a file append, etc. Upon receiving a file read instruction together with the filename, for example, the display module will send back the contents of the file (if it exists) to the host. The ViSi-Genie example project “FileAccess.4DGenie” is an example of the above application.
Link : http://www.4dsystems.com.au/appnote/4D-AN-00161/
Supported Processor : PICASO, DIABLO16
Supported Environment : ViSi-Genie
Subcategory : genie-magic, usd-card-access
Files :
Difficulty : Medium
Recommendation(s) :
Title Difficulty
General How to Update the PmmC for Diablo16 Easy
General Migrating from PICASO-SGC-GFX to PICASO Easy
General How to Update the PmmC for Picaso Easy
General Partitioning a micro-SD into FAT and RAW Components Easy
ViSi-Genie Getting Started - First Project for Picaso Display Modules Easy
ViSi-Genie Getting Started - First Project for Diablo16 Display Modules Easy
ViSi-Genie onChanging and onChanged Events Easy
ViSi-Genie Labels, Text, and Strings Medium
ViSi-Genie How to Add Magic Objects Medium