LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average after every 20 scans

Highlighted

This is where you read the error message and do some debugging.  The message tells you the reference is invalid.  If you put a probe on the reference wire, it will help show you why and when it goes invalid.

 

Your latest picture doesn't quite match your VI.  In your picture, the purple tunnel that leaves the case structure is hollow.  That means the tunnel is not wired in every case, and the tunnel is set for "Use Default if Unwired".

 

It seems that sometime the case where the tunnel is unwired executes, sets the reference to a default value, then you get the error when those subVI's finally run.

 

My guess is that somewhere along the line, you added a new case, but didn't wire those references all the way through.  That is why it is a bad idea to set a tunnel to "Use Default if Unwired".  Unchecking that setting would have given you a broken arrow right away and a notice to fix the missing wire once the additional cases were added.

Message 21 of 24
(146 Views)
Highlighted

@RavensFan wrote:

This is where you read the error message and do some debugging.  The message tells you the reference is invalid.  If you put a probe on the reference wire, it will help show you why and when it goes invalid.


 

Good advice... and good eyes. 😉

-------------------------------------------------------------------
Unfortunately, most readers of this Forum, including some real Experts, have not mastered the skill of being able to read the code that Posters fail to post. If we cannot see "what you did wrong", we are unable to tell you how to fix it. (Bob Schor 28 August 2018)
0 Kudos
Message 22 of 24
(134 Views)
Highlighted

That was it....runs now. Thanks for your help. Can someone help me with implementing the averaging?Capture.PNG

0 Kudos
Message 23 of 24
(120 Views)
Highlighted

Have you ever thought of simply hiring someone with LabVIEW experience and expertise?  Or maybe finding such a person and apprenticing yourself to her (or him) in order to get some "hands-on" learning?

 

Bob Schor

0 Kudos
Message 24 of 24
(101 Views)