03-19-2010 02:56 AM
Hi there,
I´m using the RS232 to communicate to a motor. The Baud rate is 19200, 8 data bits, 1 stop bit, no parity.
A requirement of the motor is between each byte there should be an interval of 1 ms.
How can I set the interval in LabVIEW?
Thx
03-19-2010 04:48 AM
03-19-2010 06:57 AM
and to check your time interval is working ok, go to Tools > Profile > VI metrics and check that your vi's time isn't larger than 1ms.
In my opinion, try to reconsider your time interval into 10ms...
Another way to do it is using a timed while loop. and make sure to check the (finished late? output)
03-19-2010 07:04 AM
I'm not sure you can really control that with labview. Almost sounds like you would need to embed gaps into your data that is transmitted. I sure don't think you could guarantee 1ms based on windows repsonse time unless it is built into the serial port hardware. Could you provide some more info on the motor part numbers and communications specification? If you have some demo software for the device, use portmon to monitor that piece of software. Then write labview code to match it.
03-19-2010 10:05 AM - edited 03-19-2010 10:06 AM
I think there are some misunderstandings in some of these answers. I'm pretty certain that what the op is asking for is the same thing as the character delay setting in Hyperterminal. The delay is a minimum and what has always worked for me is the simple code below. To add line delay, place a Delay function outside the loop to be executed after the while loop finishes.

03-19-2010 11:14 AM
03-19-2010 11:28 AM
Cory,
Look closely: The input to the OR function has an inversion circle.
Lynn
03-19-2010 12:47 PM
03-22-2010 01:28 PM
johnsold wrote:Cory,
Look closely: The input to the OR function has an inversion circle.
Lynn
Thanks Lynn, I didnt catch that.