Jump to content
glennib

Problem with testing double arrays

Recommended Posts

Hi,

 

I have an example VI I would like to test with the VI Tester. It is basically useless, but it provides an example of how one of my other VIs work, and I would like to test it.

 

PaWucbs.png

 

Obviously, this will result in double precision error, since it's difficult to get a constant to represent for example 10/3 or 10/6. I know adding a value to the "delta" input in the test VI works when you're comparing one double value to another, but what if I want to test a whole array like this? I tried to add an array of double precision "1.0" to the delta input, as well as a single constant of it. Both produced error 91, "Variant To Data in TestCase.lvclass:passIfEqual.vi->DivideArray_TestCase.lvclass:test_B_OK.vi".

 

Does anybody have a solution for this?

 

I already read this post, but couldn't find it useful: http://forums.jki.net/topic/1933-issue-with-comparing-1d-double-arrays/?hl=array

 

Thank you

LabViewTesterProj.zip

Share this post


Link to post
Share on other sites

Hi Ashish,

 

I tried your solution, but found that if there was an error which was not at the last element (e.g. switch the 5 with a 3 in the second element), the error wouldn't show in the VI Tester. However, if you replace the tunnels with shift registers, the errors follow through, and I can use it. Thank you!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.