Harry1984 Posted January 10, 2007 Report Share Posted January 10, 2007 [English] Hy! I read out a controller of a BergerLahr axles via RS232 (with an "RS232 to RS485" adapter) and I use the "Modbus" protocol to do this task. Everything works fine, but the readout rate is too slow... I am only able to achieve a rate of approx. 10-15Hz to get the data. Is there a possibility to boost the readout value ... (the more the better)? - in the attachment there is the screenshot of the VI (auslese01.JPG) - the VI itself (auslese.vi) - and the modbusprotocol f Quote Link to comment
Yair Posted January 10, 2007 Report Share Posted January 10, 2007 I'm not sure if you can get the cycle "PC sends -> controller receives -> controller sends -> PC receives" to run any faster. It's possible that the controller itself is limited in how many times a second it can respond to your requests. One thing to note about your code is that you're building an array inside a loop. This requires LabVIEW to keep allocating memory all the time and can slow your program down or even crash it eventually. You're better off making an array large enough before the loop and replacing elements inside it. Quote Link to comment
Harry1984 Posted January 22, 2007 Author Report Share Posted January 22, 2007 Hey! In connection with LabView Support we managed it to "boost" the thing... now it is possible that I am able to get data each 10ms (more than 15x faster)... so my measurement is a lot faster than before. (A "Wait" command was adjusted in the modbuslib, so that an important part of the VI runs every 1ms instead of 10ms) Thank you for your help! Harry Quote Link to comment
Yair Posted January 22, 2007 Report Share Posted January 22, 2007 Interesting. I remember checking out those VIs some time ago, and I don't remember finding a wait which was too long. Apparently, I wasn't looking hard enough. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.