08-31-2022 02:55 PM
The change to the USB power settings seems to be holding up and keeping the machines running. I spend the day rewriting the program, removing all frame sequences, and created as many subVI's as I could. I have a smaller machine that can run the test on command and it all is running good. Wont know how it will do on the automatic test machine until we get the new one up and running and I test it before we put in on the factory floor. I appreciate all the help from everyone here and I am looking forward to continuing the labVIEW learning experience.
I will attach the new program with the removed frame sequences here.
Thank you for your time
Jeff
08-31-2022 03:26 PM
@JÞB wrote:
@MoFiggin wrote:
So the parts I have in the Frame Sequence need to happen in order but most of the stuff has no error in & out. Do I need to convert the frames into subVI's and get rid of the frames?
I have been messing around with LabVIEW for a little over a week and I get the left to right structure of things but it seems like everything inside of a frame executes at the same time without the error in and out option. Are you saying I need to get rid of all Frame Sequences?
Thank you for your time
Jeff
Since you are brand new to LabVIEW I'm going to train you right!
If you ever start a new vi from a blank vi think twice!
It is much better to start from a template using "File>>New..."
Look at that! The description even reads "Use this template to build a vi to use as a sub vi."
I don't like that particular template because the error isn't wired through all cases and has a default if unwired tunnel.
08-31-2022 10:05 PM
@JÞB wrote:
You may find the style guide a useful resource to improve your code http://www.ni.com/pdf/manuals/321393d.pdf#labview_style_guide
Thank link still works, but it is from 2003, so a very early version of LabVIEW. Maybe a few years more recent, and definitely more detailed (and still in print) is Peter Blume's "The LabVIEW Style Book", which I read cover-to-cover three or four times when I first started using LabVIEW. I've tried to talk Peter into writing a Second Edition (I offered to proofread it), but haven't succeeded yet.
Bob Schor
09-01-2022 07:58 AM
I spoke too soon, today the error happened again. I don't understand why it will run fine for months without the Ethernet plugged in but will freeze up when you have Ethernet connected.
09-01-2022 08:33 AM
It is time to start monitoring the Ethernet traffic to correlate the traffic that corresponds to the hang.
09-01-2022 08:40 AM
@billko wrote:
@JÞB wrote:
@MoFiggin wrote:
So the parts I have in the Frame Sequence need to happen in order but most of the stuff has no error in & out. Do I need to convert the frames into subVI's and get rid of the frames?
I have been messing around with LabVIEW for a little over a week and I get the left to right structure of things but it seems like everything inside of a frame executes at the same time without the error in and out option. Are you saying I need to get rid of all Frame Sequences?
Thank you for your time
Jeff
Since you are brand new to LabVIEW I'm going to train you right!
If you ever start a new vi from a blank vi think twice!
It is much better to start from a template using "File>>New..."
Look at that! The description even reads "Use this template to build a vi to use as a sub vi."
I don't like that particular template because the error isn't wired through all cases and has a default if unwired tunnel.
(I don't use it either but haven't imported "MyTemplates" to 2022 Q3 yet)