App Developer File open / File save menu

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 738
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

App Developer File open / File save menu

Post by stefan.erni »

Hi Ben

I use the FAT component in a hardware with a PIC32 and a micro sd card. This works very reliably and without any problems. With this I take recordings for several hours and then load the file into the PC via cardreader. So far, I have always opened these files with Matlab and edited and saved them.
I prefer do this with the app developer. That's just better.
The app developer has an similar FAT component. This component is very practically to create a file for test and also to create and test a file header. This program code can be easily transferred later to the embedded system.

What I would like to ask:
Can I load my recorded file from the SD-Card (or the copy on the computers SSD Disk) in the app developer much faster, then edit it and save it again much faster with and with a "long" filename?
Is there a way to have a File open / File save menu in the App developer?

regards
Stefan

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer File open / File save menu

Post by stefan.erni »

Hi Ben

Some more wish for the App Developer.

A additional component just working in the App Developer called NTFS File I/O.

should be extremely fast and very simple to use.
Just a buffer or a DSP component to define and some information for the header.

regards

Stefan
NTFS_2021-03-22_17-53-36.png
NTFS_2021-03-22_17-53-36.png (18.94 KiB) Viewed 3028 times
And some parameter to set for example:

NTFS_2021-03-22_18-17-58.png
NTFS_2021-03-22_18-17-58.png (26.09 KiB) Viewed 3028 times

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: App Developer File open / File save menu

Post by BenR »

Hi Stefan,

Some great requests there.

The App developer File component should allow you to read/write local files on the file system and it will work with both FAT and NTFS file systems and long file names. Long file name support for embedded is on my list but it's not straightforward.

As for file open and saving, yes this can be done but at the moment it's more a case for the user to implement these switches and perform the functionality. Maybe we can do a bit more so an entire file can be loaded into memory, edited and then saved back to the disk on requests. I'll investigate this.

The CSV Read/Write component provides an easy interface to allow you to easily read and write data and may be useful depending on your application. However if you need full control of the file then the File component is probably the one to use for now. There are also DSP file input and output components which should do similar things to the CSV Read/Write component.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer File open / File save menu

Post by stefan.erni »

Hi Ben

The FAT system works very reliably and without any problems. So I sample data and record it during the night with 2khz and 12channels.
So next day a have a 2Gigabyte file. With the speed from the FAT component I can not load and save it with the App Developer in a useful time.

The App Developer has some very nice DSP component like filter, rectifier, median and much more. So it looks as very good tool and perfect for analyze and converting the recording.

With my computer and a nvme ssd in the App Developer at the moment i'm not faster than a PIC32 embedded.

Maybe there's a simple reason why it's not faster
If you can have a look to this post?

regards

Stefan

https://flowcode.co.uk/forums/viewtopic.php?f=9&t=326

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer File open / File save menu

Post by stefan.erni »

Hi Ben
Is there a way to have a File open / File save menu in the App developer?
I would like to open with the App Developer, some data file, that was created with FC9 and a PIC, so that I can analyze it.
Would it be possible to have a simple file open menu in the future?
To make it easier to browse and select a file.

Like this example:
Attachments
menue_2022-02-11_16-41-24.png
menue_2022-02-11_16-41-24.png (221.06 KiB) Viewed 2188 times

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer File open / File save menu

Post by stefan.erni »

Hi Ben

Using the built-in fuction in Flowcode APP Developper is working nice.

Only a File-open menu is missing. Is there a possibility to create something?
I created a short info how easy file read/write with the app is but somehow a selection when opening a file would be a good addition

regards

Stefan
Attachments
File_use_built_in_Function.pdf
(249.89 KiB) Downloaded 64 times

Post Reply