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

. I suppose next time I test it while connected to the RMC, I’ll try looking at the CPU performance inside task manager and see what the difference is. I’m bench testing right now on my laptop, which has an i5-3340 quad core. The program will be deployed to a Beckhoff embedded PC running a quad core i7. I had already planned on isolating one of the cores to handle the HMI project only. Not sure what difference, if any, that will make for the multithreading. On the first test of the multithread reading, I continuously clicked on buttons on the GUI just to see if it would hang or hiccup. It didn’t. Of course, none of the buttons really do anything right now. Good idea with the “thread.sleep” thing. I’ll implement that.