微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 测试测量 > Labview > labview调用DLL结构体中有共用体。

labview调用DLL结构体中有共用体。

时间:10-02 整理:3721RD 点击:

函数原型int PRODAVEAPI LoadConnection_ex6 (unsigned short ConNr, char* pAccessPoint, unsigned short ConTableLen, CON_TABLE_TYPE * pConTable);

typedef int ( PRODAVEAPI *pfn_LoadConnection_ex6 )

(

        unsigned short ConNr,

        char* pAccessPoint,

        unsigned short ConTableLen,

        CON_TABLE_TYPE * pConTable

    );

头文件代码:typedef union {

unsigned char Mpi;        // MPI Stationsadresse        (2)

unsigned char Ip[4];        // IP Adresse        (192.168.0.1)

unsigned char Mac[6];        // MAC Adresse        (08-00-06-01-AA-BB)

} CON_ADR_TYPE;


typedef struct {

CON_ADR_TYPE Adr;        // Verbindungsadresse

unsigned char AdrType;        // Typ der Adresse MPI(1) IP(2) MAC(3)

unsigned char SlotNr;        // Slot-Nummer

unsigned char RackNr;        // Rack-Nummer

} CON_TABLE_TYPE;

labview中生成dll的vi时如下图·并没有出现CON_ADR_TYPE Adr这个输入参数



Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top