Hi Rolf,
The size of the individual VIs are correct. Please see the details below.
I mentioned in my earlier reply... your suggestion works.. I am now trying to implement extracting array subsets.. If possible, please post the extract array vi in version 6.1.
MANY, MANY THANKS!
You made my day..
Regards,
Mim
// Size of strings including null terminator
//
#define WV_MAX_PARAMETERS_PER_BED 256
#define WV_PATIENT_NAME_SIZE 26
#define WV_PATIENT_ID_SIZE 20
#define WV_BED_LABEL_SIZE 20
#define WV_CARE_UNIT_SIZE 20
#define WV_FILE_NAME_SIZE 20
#define WV_IP_ADDRESS_SIZE 20
#define WV_MULTICAST_IP_SIZE 20
#define WV_DEVICE_TYPE_SIZE 20
#define WV_DEVICE_STATUS_SIZE 4
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[WV_MAX_BEDS_PER_SERVER] ;
} WV_BED_LIST ;
/////////////////////////////////////////////////////////////////////////////////////////
//
// WvListBeds -- Fills in a list of beds that are currently online at the WinView server application
//
// Parameters:
//
// pServerName -- must contain the host name or IP address of the machine running the WinView server application
// pUserName -- must contain the user name for an authorized NT user account on the machine running the WinView server application
// pPassword -- must contain the password for an authorized NT user account on the machine running the WinView server application
// pBedList -- must point to a WV_BED_LIST structure that this routine will fill in
// pNumberOfBeds -- must point to an int that this routine will set to the number of beds currently online at the WinView server application
//
// Example:
//
// WV_BED_LIST BedList ;
// int NumberOfBeds ;
//
// int ReturnCode = WvListBeds("129.73.42.112", "guest", "winview", &BedList, &NumberOfBeds) ;
//
IMPORT_FUNCTION int WINAPI WvListBeds(const TCHAR *pServerName, const TCHAR *pUserName, const TCHAR *pPassword, WV_BED_LIST *pBedList, int *pNumberOfBeds) ;
//
/////////////////////////////////////////////////////////////////////////////////////////