LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparison of references failed

Solved!
Go to solution

@parthabe wrote:

Can you post a snapshot of what you mean? I still dont understand where the Index property available for any control/indicator. Smiley Indifferent


With pleasure. (Sorry, just now checked that its not available in LV2011)

ControlIndex.png

-----

The best solution is the one you find it by yourself
0 Kudos
Message 21 of 31
(978 Views)

This is LV 2012 SP1. Have you enabled VI Scripting? Smiley Indifferent

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 22 of 31
(975 Views)

No. Actually I am using LabVIEW 2013. I guess its a new addition to this version.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 23 of 31
(964 Views)

P@Anand wrote:

No. Actually I am using LabVIEW 2013. I guess its a new addition to this version.


Don't guess P

Capture.PNG

Won't help the OP in 2011


"Should be" isn't "Is" -Jay
0 Kudos
Message 24 of 31
(940 Views)

Thanks for all Your help. It's great to have a community like this.

 

Sorry, I've forgotten to explain my concern about the labels. You need to know this software runs in a laboratory with Labview installed on each computer. So it runs as uncompiled code to control a test stand. If something goes wrong with the experiment usually somebody of the lab personal looks into the code to find out what went wrong. So anything is open to edit by a person without Labview experience.

 

This can become a serious problem. Recently that caused another institute on our university to throw out Labview from their lab. They do now everything with C.

 

@Jeff·Þ·Bohrer: Thanks for the flowers Smiley Happy.

I know, case 3) was a bad choice because it shares only one VI - I took it as simplest case. There are other cases with more complex code. They share events for many button controls except a small difference for one button. The comparison identifies this difference.

 

Finally I've pimped the code with many red colored comments.

0 Kudos
Message 25 of 31
(935 Views)

May I know which university you work for or belong to?

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 26 of 31
(931 Views)

@parthabe wrote:

May I know which university you work for or belong to?


Yes, it's the University of Innsbruck.

 

Edit: I prefer Labview before C. But there are different opinions ...

In concrete there went a longterm experiment wrong which was verry expensive to set up. But that's a different story which doesn't belong to this thread.

0 Kudos
Message 27 of 31
(925 Views)

@gerh wrote:

Thanks for all Your help. It's great to have a community like this.

 

Sorry, I've forgotten to explain my concern about the labels. You need to know this software runs in a laboratory with Labview installed on each computer. So it runs as uncompiled code to control a test stand. If something goes wrong with the experiment usually somebody of the lab personal looks into the code to find out what went wrong. So anything is open to edit by a person without Labview experience.

 

 

Finally I've pimped the code with many red colored comments.


OUCH!  Keep a copy safe under source code control.  Someone will fail to read your comments someday.  But I belive you've done what you can to save the user from themself.  An upgrade to a bug free version of LabVIEW should be available just before judgement day.


"Should be" isn't "Is" -Jay
Message 28 of 31
(920 Views)

Over here Steven H. posted the attached VI for comparing references when the Equal? function was failing to properly equate strict vs. non-strict references to the same control.  I don't have anything earlier than LV 2013 SP1 installed to see whether it would have helped here.  I'm guessing that Jeff was referring to that thread earlier, but maybe it's of some value to have the VI posted both places.


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 29 of 31
(880 Views)

Thanks for the idea, I've just tested it.

 

The "Compare References.vi" fails in this case. Anyway, there is no comparison between strict and non-strict control references.

0 Kudos
Message 30 of 31
(873 Views)