LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay between each byte

Hi, 

 

I was just wondering if there was anyway I can input a delay between each byte with the visa write. For instance in Hex: the command would be FEA0 0000 00A0 , if i can add a 50 ms delay between FE, A0, 00 etc. Or if anyone has a sub VI that does this? 

 

Thanks

0 Kudos
Message 1 of 5
(2,771 Views)

All you have to do is put your VISA write in a loop with a 50 msec delay, and write the message out one character or byte at a time.  If your bytes are in an array, you can autoindex the array.  If they are in a string, pick off one character at a time and put the remainder of the string in a shift register for the next iteration.

0 Kudos
Message 2 of 5
(2,765 Views)

See here for my implementation.

0 Kudos
Message 3 of 5
(2,759 Views)

Hi Dennis, 

 

Sorry to be a bother but can you show a picture of the serial write slow vi so i can compare it to mine? I have an old version of labview.

 

Thanks, 

0 Kudos
Message 4 of 5
(2,729 Views)

Jabano,

Heres a picture of his code. 

Dennis code.JPG

Regards,

 

Kyle Mozdzyn

Applications Engineering

National Instruments

Regards,

Kyle M.
Applications Engineering
National Instruments
0 Kudos
Message 5 of 5
(2,718 Views)