01-20-2014 05:00 AM
Hi,
I ‘m using NI CAN card 8513/2 with Labview and TestStand 2012 in a very hi volume production environment.
The problem I have is although I use “ncClose.vi” to close the ObjHandle in at the end of test sequence, never the less when the next UUT run the ObjHandle in number increments (starts from 17, 18, 19...). Any Idea why and how I can stop this from happening?
Best Regards
Mehran Fard
Solved! Go to Solution.
01-20-2014 07:48 AM
Why does it matter what the value of ObjHandle is? In newer NI drivers NI actually does this with classes so that the class wire has no information in it other then what NI wants to expose. One reason to do this is so developers don't look into what the value of the reference is just like you are doing right now. The value of the reference or object is not important, what is important is that you use that same reference or object wire is connected to the next functions.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-20-2014 08:30 AM
Thanks for your reply.
The main concern is that the volume for this product is over 2 million/year for next ten years and potentially this reference number can get out of hand. I appreciate that the chance of this to happen and tester running nonstop for next ten is low but it was a concern.
Thanks again for your help.
Best Regards
Mehran Fard
01-20-2014 08:53 AM
Create a test, where you continually open then close a CAN port and run it. I suspect that the number will wrap around at some point and reuse the values. If you ask NI if you can open and close a CAN port a million times I'm sure they will say yes. The series 2 CAN hardware is relativly old and I'm sure has been used in testers for the past 10 years or so some maybe non-stop. I wouldn't worry too much, but like I said run some tests if you are conserned.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord