Forums › VSG Series Discussions › VSG › Reply To: VSG
HerbertN
Hi,
I am having some trouble obtaining a valid device number (in LabVIEW) when I use either “sgStatus sgOpenDevice(int *device) “ or “sgStatus sgOpenDeviceBySerial(int *device, int serialNumber)”. sgStatus appears to come back with a valid response, i.e. no error is indicated.
I do get a valid response when I use “sgStatus sgGetDeviceList(int deviceList[8], int *length)” in my LV implementation, i.e. I get the device serial number. This shows I am interfacing to the DLL correctly. When the opening of the device fails, the function “sgStatus sgGetDeviceList(int deviceList[8], int *length)” then returns a -1 for the Serial Number of the device. When in this state I have to shut down LV and unplug the VSG25A to get back to normal operation.
Details of my environment are below –
1. Windows 7
2. VSG25 Software V1.02
3. LabVIEW 2013.
I have attached a capture of the USB port traffic, for when I do an open the device by SN in LabVIEW in the hope that this elucidates the issue further.
Any suggestions would help me get over this road block and would be appreciated.
Thanks
Herbert
