01-12-2016 06:12 AM
Hello,
I try to communicate with a 3rd party device, a smoke tester for trucks, using serial read in LabView. I've attached the command parameters in dokument. I use the diesel parameters on page 9. I don't manage to get out sensible information. There are no bytes at port when running the program. But one time I had 6 bytes at port running the code. This only happened once. See picture in attachment. I'va also attached the code.
Can anyone help me?
Solved! Go to Solution.
01-12-2016 06:23 AM
01-12-2016 06:28 AM
Hello GerdW,
Thanks for your reply
I get no data with 9600 baudrate as well. The problem has to be something else.
br,
paalbrok
01-12-2016 06:50 AM
01-12-2016 07:01 AM
Hello,
As you see from attached picture, I've used the 0x64 0x9C HEX command which read out the parameters from the device. It doesn't work.
br,
paalbrok
01-12-2016 07:18 AM - edited 01-12-2016 07:19 AM
01-12-2016 08:02 AM
Hello GerdW,
649C is HEX. I send this and recieve no data. \r is 0D in HEX. I try to send different strings "649C\r" and "649C 0D" using HEX display mode. Also \r\n in the end. Nothing works.. Do you have any ideas?
Can you modify my code with correct string constant if I misunderstand?
br,
paalbrok
01-12-2016 08:09 AM
If it is really in Hex, you are expected to see the following, when reading highlighted string. It will not show you 649C, as in your screenshot.
01-12-2016 08:24 AM
01-12-2016 04:08 PM
When communicating with an unknown device, MAX is your friend. With MAX, you can quickly set up your Serial Port for (almost) any Baud Rate, Parity, Bit length, etc. Don't neglect the Parity setting -- we recently attempted to establish communication with a serial device, knew we had the right Baud rate, and were using the usual N-8-1 bit configuration. Nothing. Just for fun, we tried O-7-1 -- got garbled text. E-7-1 was what we needed ... Hooray for MAX!
Bob Schor