LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Delay between header and Binary Block

Hello,

I've got the following problem:
I have to download data to a function generator (Agilent 33250) using the serial bus.
The data downloaded is:

*RST
OUTP OFF
OUTP:SYNC OFF
DATA VOLATILE, 0.000,0.000,0.001,0.002,0.003,0.004,0.002,-0.003,-
etc...

Now, I have to insert a 1ms time delay between DATA VOLATILE, and the subsequent numbers.
Is there a visa command how to achieve this? I already tried downloading only the header, closing the visa session thereafter and sending the rest by reopening the visa session. This didn't work out.
Is there a command how to keep the visa session open for a couple of ms and then send the rest?

Thanks for your help!

Georg
0 Kudos
Message 1 of 4
(2,680 Views)
Georg:

I wouldn't suggest closing and re-opening a Serial session because that changes the state of control lines. The instrument may see this and think it's been disconnected, and go back into a reset state.

Rather, send just the header like you were doing. Then call VISA Flush with mode 32 to make sure VISA has sent all the data. Then use an application-specific mechanism to wait for a few milliseconds - in LabVIEW it would be the "Wait (ms)" function. Then send the rest of the data.

Dan Mondrik
National Instruments
Message 2 of 4
(2,680 Views)
Have you tried downloading data to the Agilent function generator using the instrument driver found on NI's Instrument Driver Network? www.ni.com/idnet? The driver supports serial interface and includes arb waveform support.
0 Kudos
Message 3 of 4
(2,680 Views)
Thanks a bunch, I didn't know that site!
0 Kudos
Message 4 of 4
(2,680 Views)