I want to replicate few field instruments. To start we have a valve and a meter which generates two pulses based on the run in the pipe. Two pulses have 90d difference to notice direction of flow.Valve is a digital one and has two inputs which can make 3 diverse flows demand stage 4th state is not used. They are Opening, Closing or Hold this is just usual way a digital valve works I added for clarification. That means I require changing the regularity of pulses based on the inputs. Maximum freq ideally would be 1 kHz but if it spins out to be too much. Which with some compromises half of that would be okay too.
Now to make pulse train I am using Sin() function which is normal way of making it and it works fine in C# on my PC. But here appear it is a bit too much to procedure in each cycle. Below is easy version of what I have tried. I had criticism inputs in as well but no luck so took them out. I don't obtain a regular result for below program.I also have used delay() function to do the similar but it puts all functions on grasp so is not a good thing if we have little different things going on at the same time.
So my questions are:
1- Is there anybody else here has used similar thing and have got better results?
2- What is the limit freq. we can expect from Eleven ? Means any other boards that might be considerably better?
3- How long it gets to loop() function to re-start yet again ? I know it will be depending on how large is that but any normal figures with normal assumptions would be obliging.
4- Any enhanced ways you can suggest doing this?Statistics: Posted by sheridavis — Mon Dec 10, 2018 12:20 pm
]]>