LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string input delay (and carriage return)

hello,
         I'm trying to input a string to a "write visa", but the designer says I need at least a 10msec delay between each string.  I've been messing around with sequence structures, but can't seem to figure it out.  Is there a quick solution to this? Basically, I just want to input 3 strings to the "write visa" vi, with a 10msec delay between each input.

also, just a random question,  does \n    symbolize carriage return?

thank you,
vertias

0 Kudos
Message 1 of 6
(3,393 Views)
Place 3 write Visa function with a 10ms delay before each function. Connect the 3 input strings to each write visa function
0 Kudos
Message 2 of 6
(3,392 Views)

and \n is line feed

 

\r is carriage return

0 Kudos
Message 3 of 6
(3,390 Views)
it worked..thank you!

veritas

0 Kudos
Message 4 of 6
(3,353 Views)


Vsh wrote:
Place 3 write Visa function with a 10ms delay before each function. Connect the 3 input strings to each write visa function

There is no reason to duplicate code.
 
All you need is a single instance of Visa write in a FOR loop containing a small wait. Now you simply iterate over an array of three commands via autoindexing. Modify as needed.

 (Currently it waits after each write for code simplicity. This might be OK in most cases).


Message Edited by altenbach on 03-28-2008 10:56 AM
0 Kudos
Message 5 of 6
(3,330 Views)
ahh!
even better! thanks!

0 Kudos
Message 6 of 6
(3,318 Views)