02-23-2009 01:31 PM
Hi,
I have a circuit board built which is connected to my computers USB port. The device gives me GPS data in hex format.
What I need to do is to scan the USB port to read the data and convert it to readable format. I am not required to write anything to the USB port.
What toolkits am I required to use to read the data on the USB port?
Thanks,
Sandeep
02-23-2009 01:36 PM
Sample data that will be sent on the USB port:
0x10, 0x8E, 0xA5, 0x40, 0x21, 0x00, 0x00, 0x10, 0x03
where 0x10, 0x8E are the start bits and 0x10, 0x03 are the stop bits.
02-24-2009 08:35 AM
If you have no form of pre-existing driver, you will want to install NI-VISA which will allow you to program communication with the device using LabVIEW and other languages. If you have a dll or some other pre-existing driver, you may want to use a series of Call Library Function nodes in LabVIEW to use that dll.
This tutorial has some information on how this device would be set up. You will need to configure the your instrument as a USB RAW class device.
11-16-2011 03:47 PM
I have a temperature sensor that is connected to the PC via a USB. The device manufacturer supplied a simple program that has an exe and a few DLL files. I'd like to read data from this device, but the exact protocol is unknown. I tried to use NI-VISA Read VI or VISA USB Read controls, however it could not detect any USB devices as VISA resource.
Does this mean it would be impossible to read data from this device?
11-16-2011 03:51 PM
11-16-2011 03:56 PM
Do you mean the manufacturer would provide a header file .h that is required for importing a DLL? The DLL is available already.
11-16-2011 03:58 PM
11-16-2011 04:01 PM
It is definitely does NOT have a LabVIEW interface. I can definitely say that the interface was written using Microsoft Visual Studio, in C++.
11-16-2011 04:05 PM