Using NI-845x i2c and SPI Refnums with TestStand Primary Software: TestStandPrimary Software Version: 3.5 Primary Software Fixed Version: N/A Secondary Software: N/A Hardware: Instrument Connectivity Other>>USB
Problem: I am trying to store references from the NI-845x driver VIs to a TestStand global variable, but when I run my sequence I receive the error "-17313; Could not accept the parameter passed in." How can I pass NI-845x refnums into TestStand? Solution: The NI-845x driver was released after LabVIEW 8, so the refnums are not automatically converted by LabVIEW into a data type which is accessible from TestStand. In order to allow TestStand to utilize these data types, the Type Cast function should be used to convert the refnum to an integer, then the integer should be passed to TestStand. When subsequent VIs read the variable from TestStand, another Type Cast function should be used to convert the integer back to the appropriate refnum. Related Links: KnowledgeBase 3VMGBS5N: How Do I Access My 8451 From LabVIEW? Attachments:
Report Date: 03/30/2006 Last Updated: 04/01/2006 Document ID: 3VTGEC2W |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
