How akeshet/cicero-word-generator works
Main Components
a. WordGenerator (UI Client) – This is the primary interface for creating and running sequences (“Code for Cicero, the UI program for making and running sequences”). It is the entry point for users and contains all the forms, client logic, and controls.
b. AtticusServer (Hardware Server) – Acts as the backend server to control and manage hardware operations (analog/digital I/O, RS232, GPIB, FPGA tasks, etc.). It includes several runtime modules, GUI forms for settings, and wrappers for hardware communication.
c. DataStructures (Shared Library) – This library holds shared code (definitions, settings, constants, database interfaces, forms for exceptions/logs, etc.) that is common to the front-end (WordGenerator), server (AtticusServer), and other projects.
d. dotmath (Equation Parser Library) – Provides support for parsing equations which could be used within sequence generation or for backend computations.
e. Elgin (Run Log Viewer) – A tool for viewing run logs (“Code for ‘Elgin’, the run log viewer”), supporting post-run analysis.
f. ExampleServer – A skeleton or sample server project meant for developers to quickly create their own server (similar in structure to AtticusServer).
g. Additional Components/Modules:
• Opal Kelly – Contains FPGA/driver code used for providing a variable frequency clock and interfacing with external hardware.
• MySql – Support for database operations related to run logs.
• Deprecated & Related Projects (Simplicio, Virgil, clinamen) which can be noted as “legacy/adjunct” modules.
Relationships and Interactions
• Elgin is used for log viewing and therefore would pull run log information produced by AtticusServer. Connect AtticusServer’s logging or run log output to Elgin.
• The ExampleServer provides a template or a starting point for new server implementations. It is related to AtticusServer conceptually.
Architectural Patterns and Design Principles
• Client-Server Architecture: The clear separation between the UI (WordGenerator) and the backend server (AtticusServer) is a key architectural choice.
• Shared Library Usage: The DataStructures project exemplifies a layered approach where data models, constants, and common routines reside in a separate shared tier.
• Modular Design: Each project (or module) handles a distinct concern (UI, hardware control, equation parsing, log viewing), which aids maintainability.
• Integration with External Hardware: The existence of the Opal Kelly and MySql directories shows that the system integrates with both physical hardware (FPGA, clocks) and external data storage.
Relevant Technologies, Frameworks, or Libraries
• .NET Framework / Visual Studio Projects – As indicated by the .csproj and .Designer files across projects.
• Windows Forms – For the user interface components (numerous Form.Designer.cs and .resx files).
• Hardware-specific APIs – Such as Dev modules within AtticusServer (e.g., Daqmx, RS232, Gpib, etc.) and wrappers for National Instruments (NiSync, niRFSG).
• External drivers/control libraries – Such as API distributions from Opal Kelly for FPGA interface.
• Database handling – MySql support through the provided MySql directories.
Elements
– The UI sending sequence instructions to the hardware server.
– Shared dependencies from WordGenerator/AtticusServer to DataStructures and dotmath.
– The flow of run log data from AtticusServer to Elgin.
• Deployment aspects such as the ReleaseBuilds folder that aggregates the outputs.