Hoping there's a better way! Using Do-More on a BRX, just finished the first iteration of a program that basically reads input conditions, churns thru several tables of data (often recursively) looking for matching conditions, and spits out the results to various outputs. The code is fairly simple, if a bit abstract due to lots of pointers and indirect addressing. The key to getting the correct output is in data in the various tables. There are two tables with up to 150 records of two & nine fields respectively, and a multidimensional table with about 240 records of 6 fields with a minimum depth of about 2 (all subject to change when I refactor for the production version of the code). These tables were created using the Structured Memory Blocks (Structs).
This all works fine with a small data set, but it looks like manually inputting the data into the tables is going to be daunting. At first, I was hoping I could create a 2 dimensional Data View of the structured data similar to a spreadsheet; that doesn't appear to be possible. Then I tried to export / import data, but that doesn't appear to be possible with Structs. I've read that maybe I could put a CSV file on the sdcard, then read/write to it; doable but cumbersome when changes are needed. Probably the most client friendly option is to create a UI in a HMI device; doable but time consuming. Currently, I'm just using some code to move one test record at a time from the Data View to respective structured data record; again, doable but cumbersome.
In certain cases, I can prepopulate the tables with known configurations. Its also possible that I can hard-code some output states. But much of the data has to be mapped to specific conditions, and client will certainly need to modify as conditions / preferences change.
Are there any other ways to manually manipulate the data? Hoping there's a better way then the options described above!