10-19-2011 04:43 AM
Hi,
I have a requirment for writing TestScript to test NICAN in TESTSTAND.
I tried with the .lib file in NICAN driver but am getting "parameters not recagonized" error.and i need to add the varibles manually.
NI can has many complex structures,which is bit weird to create them in TestStand.
Please let me know how can i use the CAN driver in TESTSTAND.
Thanks
IVI
11-03-2011 04:14 PM
Hi IVI,
It is not recommended to call the driver library directly from TestStand - instead, consider creating a dll to implement your CAN testing steps which calls the CAN driver. This way, you will have access to all of the necessary types in your C development environment, and won't need to access them directly through TestStand. For more information on code module best practices, I'd recommend looking through the following article in the TestStand Advanced Architecture series:
Best Practices for Code Module Development
Hope this helps!
11-04-2011 03:19 PM
Did you mean that NI-CAN has so many structure parameters or particular nuances in its structure usage that it is particulary problematic to call directly? If so, that makes sense.
However, If by referring the best practices document you are implying it is never reasonable to call a driver directly from TestStand, then I'd disagree and I would like to be pointed to anything in the best practices document that supports that assertion so I can review it.
11-04-2011 04:01 PM
James,
Thanks for your input! I linked the document more as a reference for best practices than as proof of my recommendation. The closest reference in this document to this would be the "Functionality to Include in Code Modules", though this does not mention drivers directly. A couple reasons I would personally avoid calling drivers directly:
However, I definately would agree that there are cases where a direct driver calls would be the best approach, so I was a bit hasty in my blanketing statement.
11-04-2011 04:05 PM
Thanks for the clarification.