Jump to content

Software problem or converter rs 485


Recommended Posts

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

Link to comment

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?

Link to comment

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 by ShaunR
Link to comment

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:

post-2399-12545661324_thumb.png

Where you open a file based on the day.

Some other improvements:

post-2399-12545659447_thumb.png

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.