LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807253 by using 2 serial ports

Perhaps I have expressed my issue a little unclear.

I have two 3rd party devices. From this devices I like to compare the datas which are read in, in one VI. Both of these devices have a RS-232 interface. So, it is necessary to adress two com-ports in one VI on one PC.

0 Kudos
Message 11 of 14
(877 Views)
Hi,
   can it be that you're getting a response from the 2 devices at the same time?? This could be a nice reason for Framing error to occurr!

graziano
0 Kudos
Message 12 of 14
(868 Views)
Do you know which port is generating the error? You haven't brought out the error clusters from the two reads. I also second "C.C".'s comment about reading zero bytes, as becktho shows, usually you wire the bytes at port to the read. You mention that the problem cropped up when you added the second port. Framing errors can be caused when the baud rate you are trying to read isn't quite what the sending rate. Modern serial ports seem to be pretty good about slight clocking errors, but I have found that isn't necessarily true of all USB to RS232 converters. Are you certain of the settings for the remote devices? Also trying swapping which port they come in on, if one is slightly off the "real" port may be better at still recovering the data. Play with the other settings as well, such as the # of stop bits.

P.M.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 13 of 14
(861 Views)
It is so, that there is a character transmitted one time to both devices after configuring the com-ports. After this transmission, both devices are continous reciving datas from the com-ports in their own while-loops. Both of this while-loops run parallel, so the datas are recived at the same time. Sometimes it works like expected but more often it does not run like expected.
In german I would say: Wenn´s läuft, dann läuft´s!
And when it sometimes run like desired, there must be a way to run it always like desired.
0 Kudos
Message 14 of 14
(860 Views)