LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading problems with rs232

Hello!
I got a really weird problem with my pulsmeter readout.
I am currently working on a controller/measurement programm for a pulsmeter readout. The Pulsmeter is triggered by a laser and the readout is send to a RM 3700 Universal Radiometer from LaserProbe, inc.
Cabel, initialisation, >>writing<< to the probe is ok and fine working. The problem is, when I try to READ the VI is hanging in the readserial-subVI. (Using "Probe" reveals a green arrow in the subVI and then nothing). THe weird part starts, when I start debugging.
When I start the VI with probe on >everything is ok<. I turn probe off and it hangs. The laser is controlled via rs232 too and there never have been any problems. Can any one help? Thanks,

Olaf
0 Kudos
Message 1 of 4
(2,843 Views)
This sounds to me like a timing problem. Using the trace on the program slows it down enough that the serial read never hangs. Try putting a small delay (a few ms) before the serial read VI and see if that solves the problem.

Rob
0 Kudos
Message 2 of 4
(2,843 Views)
I already tried this. I even let the laser firingfrequence drop to 1 HZ. Problem stays.
Could this be a multimeter related problem?

Olaf
0 Kudos
Message 3 of 4
(2,843 Views)
Hi Olaf,
did you try to check the number of bytes at serial port and Read those (at least to find out what and when is there). Also, it will be good to clear the serial buffer at the beginning in order to avoid any differences between 2 executions.
hope this helps
0 Kudos
Message 4 of 4
(2,843 Views)