LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create and Send an array of hex code to a device through serial port

My name is Tina Drew,

I am working programming a project involving an RFID system. In order to get the project to work the way that I desire, it must send a hex code of 01 to start the device and 6A to run in continuous mode. I have part of the program by the device does not appear to be responding to the hex signal. Maybe my programming is incorrect. In addition, it will not read the information from the microreader through the serial port. It says that the time has expired before the operation can be carried out. What should I do? A sample of the program is attached.

Please contact me as soon as possible at 410-651-7604 or tina_drew2001@yahoo.com.
0 Kudos
Message 1 of 2
(2,855 Views)
You forgot to attach your program. It happens to the best of us. I sure wish NI would move the darn attachment button next to or before the submit button.
Things to check:
Baud Rate
Number of stop bits
Parity bit
DCE device talking to DTE or vice versa. If both devices are DCE or both DTE, you must use a null modem cable.
You can use Hyperterminal to see if you can communicate with your device manually (On the hyperterminal screen, hold down the Alt key and type 001 from the numeric keypad, not the numbers from the top row above the letters, a smiley face will appear if the device echos back the character. If it don't, you can setup hyperterminal to display the character - look under file-properties-settings-ASCII Sending-Echo typed characters locally). If you receive a good response, this will tell you if you have the correct baud rate, etc... After proving that this works, make sure your vi's serial port configuration match your hyperterminal settings. You can use a breakout box to determine if you have a good DCE-DTE match. DCE will assert the RS232 signals DSR, CTS, and CD. DTE will assert DTR and RTS. By hooking up a breakout box on one end of the com link, you can see which LEDs are on and this tells you whether you have a DCE or DTE. Most computers are DCE. Modems are DTE. Your device would have to look like a modem to the computer as far as RS232 signals go.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,852 Views)