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 File Size Request

Name : 4D-AN-00165
Title : ViSi-Genie Magic File Size Request
Revision : 1.0
Description :

This application note primarily shows how the Magic Object is used to implement a ViSi-Genie project that allows the host to access files on the uSD card of the display. There are seven types of file access operations:

  1. MFILE_READ

  2. MFILE_WRITE

  3. MFILE_APPEND

  4. MFILE_ERASE

  5. MFILE_DIR

  6. MFILE_SCREEN_CAPTURE

  7. MFILE_SIZE

For this application note, the file access operation “MFILE_SIZE” is discussed. The implementation of a file size request operation further requires the use of the following 4DGL features and functions in combination with the Magic Object:

  • String class functions
  • FAT16 file functions
  • seroutCS(…)

The String class functions and FAT16 file functions are functions native to the Picaso and Diablo16 processors.
The function seroutCS(…) is one of the Genie Magic callable functions in the ViSi-Genie Communications Protocol. This function writes a parameter to the Genie Serial port and updates the output checksum.

Link : http://www.4dsystems.com.au/appnote/4D-AN-00165/
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