Saving data from controller to SD card
Lior Peled
Junior Member
hi.
I am new programmer with netlinx.
I want to save timers on sd card.
How can i do that please? and how can i read the data after that from the card?
thanks
Lior Peled
I am new programmer with netlinx.
I want to save timers on sd card.
How can i do that please? and how can i read the data after that from the card?
thanks
Lior Peled
Comments
-
Take a look at the "FILE_OPEN", "FILE_WRITE", and "FILE_READ" keywords. It is actually not to difficult. ANother thing to look at is "VARIABLE_TO_STRING" and "STRING _TO_VARIABLE" which are really useful for quickly saving and restoring the state of a variable to/from disk, these are generally used with STRUCTURE variables. Read over the documentation and see if it makes sense, write some test code. I will be happy to help you get it working.
-
For what it's worth, I usually save any persistent data to the SD card rather than relying on the PERSISTENT keyword. There are times it just fails for reasons I have never been able to nail down and I got tired of the panicked calls about how the client just lost all his favorite stations, or he can't get a picture on his net cameras ...
-
DHawthorne wrote: »For what it's worth, I usually save any persistent data to the SD card rather than relying on the PERSISTENT keyword. There are times it just fails for reasons I have never been able to nail down and I got tired of the panicked calls about how the client just lost all his favorite stations, or he can't get a picture on his net cameras ...
And if the processor goes down for whatever reason, you can transfer your code, and the files to a new processor without losing any data. -
And you can't use persistent variables inside a module.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums