From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
SteveChandler

VI Analyzer Check for Equality of DBL

Status: New

I have inherited a huge LabVIEW project which is full of the following construct. Since this may be unreliable can a test be added to VI Analyzer to check for it?

 

Capture.PNG

 

=====================
LabVIEW 2012


3 Comments
shb
Active Participant
Active Participant

You could write a test for yourself, since LabVIEW 2010 there is a template.

 

Greetings,

shb

shree_bala
Member

Hi folks,

I was writing VI analyzer test for floating point equality check. I can able to check only the coercion dot present at the terminal of the connected wire, but couldn't check whether the control is connected to comparison palette. Could anyone help me how to check it?

 

TIA

 

Best regards,

Shree

Darren
Proven Zealot
@shree_bala wrote:

I was writing VI analyzer test for floating point equality check. I can able to check only the coercion dot present at the terminal of the connected wire, but couldn't check whether the control is connected to comparison palette. Could anyone help me how to check it? 


Once you have the terminal, read its 'Owner' property. Try to cast the owner to the 'Function' class with the To More Specific Class function. If the cast works (i.e. if you don't get an error), check the 'Style' property of the Function class. That will tell you what kind of function it is... 'Equal?', 'Not Equal?', etc.

 

If you complete the test, please post it to the VI Analyzer Enthusiasts community. And you can also post questions you have about writing VI Analyzer tests to that group.