LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sparkfun SerIO: How to USB communicate with non-NI HW?

I have a Sparkfun SerIO , sku: DEV-09521, which is a DIO/ADC/DAC device,

which is similar to the Arduino Pro (3.3V, 8MHz), and is built using ATMega328. 

User manual:  http://www.sparkfun.com/datasheets/DevTools/Arduino/SerIO%20User%20Guide.pdf

 

It has Serial Communication over USB at 57600bps, 8-N-1

 

I don't have any drivers or VIs for this.  I tried the Instrument Assistant but it only has option for com and lpt

The interface commands are listed in the user manual cited above,and follow a simple sytax: 

"C,0,o\r"

where the command inside the quotes is

   "C" for configure command,

   "0" is for pin 1,

   "o" is for output, and

   "\r" is the termination character at the end of each command, a carriage return or enter key. 

thus issuing command to configure pin 1 for output of bit.

 

How do I initalize usb communication to this device in labview and send a command string? 

 

 

 

0 Kudos
Message 1 of 7
(3,114 Views)
So what is the problem? You already said it emulates a serial port so select it. What do you think com means?
0 Kudos
Message 2 of 7
(3,104 Views)

I don't know anything about COM port emulation over USB. 

 

I tried using the instrument assistant and setting it to com with port settings of 57600/8/N/1.  The device is supposed to echo back the command, and in the case of a read command, return a result.  The device did not echo command, did not return a result on read command, nor did the data light blink on the device, when I attempted to use the instrument assistant. 

 

MAX has not recognized the device

0 Kudos
Message 3 of 7
(3,102 Views)
MAX recognized the device if you were able to select the com port that the USB device is emulating. Disconnect it. See if a com port disappears in MAX.

I can't help with the Instrument Assistant. Try one one of the shipping examples or a terminal emulator program such as Hyperterminal.
0 Kudos
Message 4 of 7
(3,099 Views)

MAX did not change its listing of devices when I connect/disconnect the device.  The device apparently is not one of the com ports listed either. 

 

0 Kudos
Message 5 of 7
(3,092 Views)

The device did not come shipped with any examples of how to use it in Labview, as it is USB port hardware not specifically developed for Labview..

I don't see any way to direct hyperterminal to talk to the device. 

 

0 Kudos
Message 6 of 7
(3,080 Views)

The PC needs to know the device... Don't know how W7 handle this, but usually you need a driver ....

After the PC get to know the device it should show up as a serial COM port (in MAX ) and can be accessed in LabVIEW with the VISA serial vis

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 7
(3,070 Views)