06-13-2017 05:47 PM
back again.
Is there some good procedure if I got about 100 variables from a controller and I want to do error handling? Do I have to wire every variable with error in/out, in series? Wouldn't this take 100 operations/steps, because it has to check every one?
I.e. most likely read error from PLC.
Lots of them are in lots of 8. Data from 8 motors, voltage 1-8, RPM 1-8 and so on. I will make them arrays to pass them on. Maybe just check every array?
Thanks for your replies.
06-14-2017 08:25 AM
I suppose it depends on whether or not you care if those variables are throwing errors, if you want to know, there aren't a whole lot of other ways to find out. Am I to assume that by variables you mean "Shared Variables"? You don't have to wire them all sequentially just so you know as well, you could wire them in parallel, and use a "Merge Errors" vi to get the errors back to a single wire.
06-14-2017 05:08 PM
pretty much 100+ shared variables from the I/O server, coming from a PLC via Modbus. So most likely either I get all or none. And some BS reading, when sensors are not connected, but that is not an error as such. I think connection state should do. And the variables, just give them a timeout.
06-15-2017 09:21 AM
Yeah, I've dealt with that many variables before. Generally speaking you're right, that's about all they'll tell you if they do have an error at all. There are a few more minor ones that can come up, but they probably won't. Take a look at the list here for the top ones:
http://digital.ni.com/public.nsf/allkb/B9366256C53D95CA8625725A007C028
06-15-2017 05:26 PM
most likely there will be something like cannot connect to SQL later on and cannot open VISA connection. This should not affect the variables