I think the press-hold thing I'm doing, if it can be an option of the button itself would be beneficial. Since it's using a lot of xml space.
Also maybe a function for If X is a multiple of Y, would condense my xml greatly. Thoughts?
Fixed UpClick error, wont be public until next major release as there are "under the hood" changes going on too.
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
I think the press-hold thing I'm doing, if it can be an option of the button itself would be beneficial. Since it's using a lot of xml space.
Also maybe a function for If X is a multiple of Y, would condense my xml greatly. Thoughts?
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
Perhaps a "between" function. Would cut the code dramatically. Instead of 3 modules with greather than, less than, and OR, it would be 1 module with 3 inputs.
I mean this can be done with a regular MDX function, but if doing thousands of parses, might be easier to do in compiled code.
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
remember that compare5 function that I made, it gave me errors, and I couldn't figure it out, so I refrained from using custom functions like that for logical reasons, and just stuck to signal processing purposes.
I figured a between version would be the same way. I'll try it out. But maybe there's something wrong there.
It is not the data storage that is a problem, it parsing an unknown command at any point in an unknown function to do a generic action. Because you can pretty much build code in MDX, I have put no restrictions on when or where or how often or even the order in which things are calculated. This makes it a powerful beast but is hard to fit the model.
And SQL queries would be slower than querying a static List in the program's own memory already.
I am thinking that I need to build some sort of string to integer lookup table. It will parse the logic 1 time, figure out the order it needs to do things, and then use a lookup table after that and not the xml. This would be blazing fast, but also a PITA to code. I have never done anything like that.
Fusion Brain Version 6 Released!
1.9in x 2.9in -- 47mm x 73mm
30 Digital Outputs -- Directly drive a relay
15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
Buy now in the MP3Car.com Store
I didn't mean to change the data source to a SQL database, just use LINQ for the internal queries. Since LINQ is data source independent it can work on a datalist in memory just as well as it can on an XML or SQL data source.
By using SQL-style queries you can more easily order the data in any way that you need.
Once queries are coded in LINQ you can change data sources without having to change any code other than your data source definition. That's what makes LINQ so powerful (and cool).
Thanks,
Dan
Bookmarks