05-10-2005 12:48 PM
05-10-2005 02:50 PM
05-10-2005 03:35 PM
05-10-2005 04:03 PM
05-10-2005 10:18 PM
05-11-2005 08:05 AM
05-11-2005 11:10 PM
05-12-2005 06:00 AM
@Mim wrote:
I am writing a LabView application to obtain data from the network using a DLL written in C.
DLL Function:
IMPORT_FUNCTION int WINAPI WvListBeds(const TCHAR *pServerName, const TCHAR *pUserName, const TCHAR *pPassword, WV_BED_LIST *pBedList, int *pNumberOfBeds) ;
typedef struct {
TCHAR PatientName [WV_PATIENT_NAME_SIZE] ;
TCHAR PatientID [WV_PATIENT_ID_SIZE] ;
TCHAR BedLabel [WV_BED_LABEL_SIZE];
TCHAR CareUnit [WV_CARE_UNIT_SIZE];
TCHAR FileName [WV_FILE_NAME_SIZE];
TCHAR IPAddress [WV_IP_ADDRESS_SIZE];
TCHAR MulticastIP [WV_MULTICAST_IP_SIZE];
TCHAR DeviceType [WV_DEVICE_TYPE_SIZE];
WV_OPERATING_MODE DeviceStatus ;
WV_CONNECT_ID ConnectID ; // 0 if not connected
} WV_BED_DESCRIPTION ;
typedef struct {
WV_BED_DESCRIPTION WvBeds[256] ;
} WV_BED_LIST ;
When I call the above function from LabView, it executes successfully but when I call any function after calling this function, LabView crashes. I have attached screen shot of the block diagram.
Any ideas on why this is happenning???
Many Thanks for your help.
Mim
05-12-2005 06:48 AM
@Mim wrote:
John,
Thanks for your response.
This was my first posting on the Forum and I didn't realize the download issue with bmp files. Thanks for the tip.
Regarding my vi, the string members of the array of clusters were empty. I implemented your suggestion of casting U8 data type to string of desired length. I am attaching my VI (APITestApp1.vi) for your review. The zip file contains other vis that this vi is linked to.
The problem definitely is with the data type for the Bed List array. But I am not being able to resolve it.
Please help!
Many Thanks,
Mim
05-12-2005 07:56 AM