Well, thank you very much, I think I understood what is needed. I'll set at about 50 us the sampleus time and set with the program the time it has to read the ADCINs.
I can't mantain this more simple because I'm solving a complex machine with this. I'm controlling temperatures, velocity with a variator, interface with a tablet, etc. The program has growed more than 800 lines and is not finished. I had to deal with scaling and convertions, with real time programming techniques, about 60 parameters, (5 months already) and other details, but it is funny to go completing the puzzle and more the day I put it to work. And this is a machine for my sister, so I'm a volunteer. There are days I think it is too complex so I make some other things, but there are days I advance very well, or nights. I had to implement Bates ejercices for my eyes, one of the more demanded parts in this project, but although it has taken much more time than I thought, it is going well thanks to the help I obtain like this.
In fact, the next project like this I would evaluate to use a C based compiler because I won't have to scale anything (it uses float vars) and it seem to have more documentation.
Bookmarks