Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

ASCII object with delay between transmissions

I'm trying to communicate with a Wenglor Print Mark Sensor Model WP02 from Lookout 5.1. This sensor has a RS232 port for reading and to teach the sensor. The sensor acepts single string commands and answers with hex strings containing the info requested. There is a condition for to get good answers from the sensor: It is needed to include a delay within 5 and 10 miliseconds between each character of the sent command. If The command is transmitted as a whole string it doesn't answer always well. If I set each single command character in RQV1.txt, RQV2.txt, RQV3.txt, etc, the sensor doesn't answer well either.

Is there a way to put a delay between characters trasmitted by a Lookout ASCII drive object? Any trick? Any way to control this delay?

Thanks in advance.
0 Kudos
Message 1 of 6
(4,219 Views)
23r23,

There is no specific way to add a delay between serial transmissions. You can try slowing down the baudrate of the transmission. This may cause enough delay to fix your problem. Another idea would be to use a counter object and send the characters when the counter goes high. The problem would be separating your string into separate parts before it is sent. You would most likely have to divide the string up before it was sent by Lookout.

Regards,

Danny G
National Instruments
0 Kudos
Message 2 of 6
(4,205 Views)
My problem is to introduce 5 to 10 milliseconds between characters. I have separated each character, even I have the option of using a data table. The fastest I have had a timer or a waveform is 0.02 seconds, depending on how busy is the computer with all the services running with lookout. I have noticed that I can't go faster than 0.02 seconds. The CPU of the computer is a Pentium IV, 2.4 Ghz, 512 MB of RAM, running Windows 2000, SP4.
Now my question is: Why the waveform or the timer doesn't REALLY go as fast as 0.005 Seconds?
0 Kudos
Message 3 of 6
(4,202 Views)
The spec for the I/O with windows is 50 milliseconds. So you are going much faster than the spec. 5 to 10 milliseconds is not supported. Have you tried slowing down the baud rate on the serial transmission?

Danny G
0 Kudos
Message 4 of 6
(4,190 Views)
The spec for the I/O with windows is 50 milliseconds. So you are going much faster than the spec. 5 to 10 milliseconds is not supported. Have you tried slowing down the baud rate on the serial transmission?

Danny G
0 Kudos
Message 5 of 6
(4,190 Views)
Then I have nothing else to do. The baud rate cannot be set slower because the sensor has only one Baud Rate: 38400.

Thanks anyway.
0 Kudos
Message 6 of 6
(4,186 Views)