I am building a vb.NET application that will interface with my RMC150e controller. I have done some preliminary testing when time permits (when machine is down) and have tested the Connect and Disconnect methods as well as read some values from the controller into some text boxes on my UI. This is all done at the Form.Load event, then at the end of that, I use the RMC.Disconnect method to close the connection. There are some values that need to be read continuously from the RMC to the UI, like actual pressure of the pressure axis for example, to name just one register of several. I am not a polished VB programmer but I can work my way through it. My questions are:
- When I create an instance of the RMCLink object on the Form.Load event so that I can initially read the values from the RMC, should I then disconnect and only connect again when I need to read or write a value? For instance, when I want to write new PID values to the tuning registers with a button_click event?
- Can multiple instances of RMCLink object have open connections at the same time?
- I need to be able to read continuous data from the RMC, like actual pressure of the pressure axis on to a static display text box on the UI. My thoughts are that I will need to make this a multithreaded application in order to make that work. Is this correct? Are there any code examples where data is being read continuously from the RMC?
Thank you,
Don