Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Write data to serial port with time delay between string

I'm not quite sure what you mean by "it does specify the wait after the write." What I thought I did was have it wait after every set of 6 characters that it sends to the serial device.
0 Kudos
Message 11 of 13
(1,398 Views)
The 'Delay Before Read' which was in the array example does that. The 'Wait Between Commands' does not. It's basic datflow. That wait you added may or may not do anything - depending on what time you specify and how long it takes to do a write.
Message Edited by Dennis Knutson on 07-07-2009 11:07 AM
0 Kudos
Message 12 of 13
(1,395 Views)

Hmm well I'm not sure what's going on cause when I run it continuously I can increase and decrease both the wait and the delay values and they have what seems like the same effect.  I did move the delay before write to outside the For Loop, but I didn't want there to be a greater amount of time between the cycles when I run it continuously than in between each command.

The reason I tried to set this stuff up this way instead of the array is because I want the user to be able to put in any number of commands they want, without them having to manually do anything except type the commands and enter in the time delay they want.

0 Kudos
Message 13 of 13
(1,389 Views)