bimbone Posted October 2, 2009 Report Share Posted October 2, 2009 Hello Boy! I am italian, sorry for my english... I have a big problem and I do not know how to fix it. Using LabVIEW 8.5 My program is for the management of machines voltage regulators, i communicate with them via a USB-RS485 on Modbus, The questions I wished them and so far no problem. stores data in a spreadsheet excel and do extensive use of blocks "read from measurement file" and "write to measurement file" about 30 times that i frequently rewrite about once every 2 seconds. Now I go to my problem: after that the software go regularly he stops suddenly. No longer works in labview converter but I do not return any error message or something. At this point I press the stop button and i restart the program and everything starts, until a new stop. My fault, software, or the converter?? thank all Quote Link to comment
ShaunR Posted October 2, 2009 Report Share Posted October 2, 2009 Hello Boy! I am italian, sorry for my english... I have a big problem and I do not know how to fix it. Using LabVIEW 8.5 My program is for the management of machines voltage regulators, i communicate with them via a USB-RS485 on Modbus, The questions I wished them and so far no problem. stores data in a spreadsheet excel and do extensive use of blocks "read from measurement file" and "write to measurement file" about 30 times that i frequently rewrite about once every 2 seconds. Now I go to my problem: after that the software go regularly he stops suddenly. No longer works in labview converter but I do not return any error message or something. At this point I press the stop button and i restart the program and everything starts, until a new stop. My fault, software, or the converter?? thank all Can you post an example that demonstrates the problem? Quote Link to comment
bimbone Posted October 2, 2009 Author Report Share Posted October 2, 2009 this is the software, sub vi and folder macchine that copy in c:\ thank you Can you post an example that demonstrates the problem? sorry, i forgot attach the file programma.zip Quote Link to comment
ShaunR Posted October 2, 2009 Report Share Posted October 2, 2009 (edited) Well. What can I say. It'd take me a week to figure out whats going on in that spaghetti. I would suggest thet you keep the diagram open while running and when it no longer responds, click the "Highlight Execution" button (the lightbulb). That will show you where it is currently executing. That will at least narrow it down. Edited October 2, 2009 by ShaunR Quote Link to comment
Ton Plomp Posted October 3, 2009 Report Share Posted October 3, 2009 Well your code needs more structuring. One example is where you store the data inside a daily file. I would advice the following sub VI: Where you open a file based on the day. Some other improvements: The code above and under the line should be the same. Using less nodes should make your code better readable. In the same way I have the feeling that your write actions could be sub-vi'd Ton Quote Link to comment
bimbone Posted October 5, 2009 Author Report Share Posted October 5, 2009 thanks for response with the changes that we has strongly recommended works. now it is about four hours without stopping working if something happens i will you know. thanks, Marco 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.