Hi,
The code I am attaching to this message is working. I started from the DAQ assistant and then modified it.
Its function is to read a pressure and drive a proportional valve to maintain a constant pressure via analog output (in a controller which works with digital pulses). The valve is completely closed when the voltage is zero and completely open when voltage is 10.
I have two questions:
1) this is the first time i do something like this and, since this code will end up in a legthier project, I would like to know if it's properly done. Any suggestion to make it better?
2) why do I have to multiply the value out of "sub Generate AO 1D data.vi" by 10 when it should be already properly scaled?
Any other advice is welcome.
Thank you!
Matteo