LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

frequency ouput delay (using VISA)

Hello, I am trying to simply output a command to my device (hooked up via the NI USB to GPIB) and then output another command exactly one second later. Both these commands would be pre set. IE 20Khz and then 20Hz.

Any help in this matter would be appreciated, thanks.


NOTE: This is using VISA and a set of instrument drivers used for the device I’m outputting to.

0 Kudos
Message 1 of 5
(3,021 Views)
What is your specific problem? Are the commands not being sent? Are they not being interpreted properly by the instrument? Is the timing off and, if so, in what way?

Many people on the Forum are glad to help, but we need specific information to be able to do so. Also, please indicate what kind of instrument you are using and the version of LabVIEW you have.

Lynn
0 Kudos
Message 2 of 5
(3,005 Views)
Hello, sorry for the lack of info.

LabView: 8.2

Instrument: HP8903B Audio Analyser

The instrument accepts the commands fine. The problem I am having is that I cannot seem to create a delay between one command and then another.

To make this even more specific: I'm trying to tell the HP8903B to output one frequency, delay one second and then output another frequency. Sort of a generate 10KHz and then generate 20Hz.


0 Kudos
Message 3 of 5
(3,003 Views)
Just put a one second (1000 ms) wait between the two write commands. Something like the attached VI. I do not know the command syntax for your instrument so I used something to give the idea. There are other was to do this, some of which might be better suited to a test program, but this should give you some ideas.

How fast can the instrument accept and respond to commands? One second should be OK, but some GPIB instruments are fairly slow.

Lynn
0 Kudos
Message 4 of 5
(2,992 Views)
perfect, thanks for the help, that solved the whole problem!
0 Kudos
Message 5 of 5
(2,950 Views)