Jump to content

Automan

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Automan

  1. I'm trying to access some functions from Vector's vxlapi.dll but I'm failing miserably as the data structures is too complex for me. Would you please give me directions (or provide a simple VI) in order to call the following function by using a Call Library Function node? I'm stucked mostly on how to create the controls to implement the structures below. The file attached is the API description. Thanks a lot. The function I want to call: XLstatus xlGetDriverConfig(XLdriverConfig *pDriverConfig) XLstatus is an unsigned char and XLdriverConfig type is as follows: typedef struct s_xl_driver_config { unsigned int dllVersion; unsigned int channelCount; unsigned int reserved[10]; XLchannelConfig channel[XL_CONFIG_MAX_CHANNELS]; } XLdriverConfig; typedef struct s_xl_channel_config { char name [XL_MAX_LENGTH + 1]; unsigned char hwType; unsigned char hwIndex; unsigned char hwChannel; unsigned short transceiverType; unsigned int transceiverState; unsigned char channelIndex; XLuint64 channelMask; unsigned int channelCapabilities; unsigned int channelBusCapabilities; unsigned char isOnBus; unsigned int connectedBusType; XLbusParams busParams; unsigned int driverVersion; unsigned int interfaceVersion; unsigned int raw_data[10]; unsigned int serialNumber; unsigned int articleNumber; char transceiverName [XL_MAX_LENGTH + 1]; unsigned int specialCabFlags; unsigned int dominantTimeout; unsigned int reserved[8]; } XLchannelConfig; typedef struct { unsigned int busType; union { struct { unsigned int bitRate; unsigned char sjw; unsigned char tseg1; unsigned char tseg2; unsigned char sam; unsigned char outputMode; }can; unsigned char raw[32]; }data; }; //defines for xlGetDriverConfig structures #define XL_MAX_LENGTH 31 #define XL_CONFIG_MAX_CHANNELS 64 XL Driver Library - Description.pdf
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.