06-05-2009 01:15 PM
Hi All
I was wondering if anyone knows how to create or modify the CVI TestStand Adapter (I am still using version 3.x due to legacy support issues)
Specifically, I am looking to add additional header files and compiler definitions to the workspace/project , I found a "tscviprj.ini" file in the C:\Program
Files\National Instruments\TestStand 3.1\AdapterSupport\CVI folder that seems to contain some of this information, but could not figure out how to modify it.
For compiler definitions, I modified the C:\Program Files\National Instruments\TestStand 3.1\CodeTemplates\User\PassFailCVI template by adding a
#define MYCONSTANT at the top of the tmeplate, but this # define did not get included when i generated code with this modified template.
I also tried changing the [Compiler Defines] section of the tscviprj.ini file, but niether of these resulted in the definition being included in either the source or project.
Thanks
06-08-2009 10:42 AM
Hi NIExpert,
Unfortunately the adapter API is not exposed, so you cannot create or modify an adapter. The files in Adapter Support, for example the "tscviprj.ini" file are used to debug CVI code modules (e.g. stepping into the code). The PassFailCVI is a specific step, which you can modify, but this does not sound like what you are trying to do. Please let me know if this answers your question and if there is anything else that I can do to help you.
Cheers,
Kelly
06-08-2009 10:46 AM
I suspected as much, but was not sure if that ability had been added to a newer version of TestStand
I was hoping to add sume cutome header files, constant definitions and/or FP instrument files to the Code template, but it seems that is not possible.
maybe we can add that to the wish list 😉
06-08-2009 05:56 PM
Hi NIExpert,
Thank you for the feedback! If you would like, you can make a product suggestion at the following link: digital.ni.com/applications/psc.nsf/default?OpenForm
Cheers,
Kelly