LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB command for reading wavefor

Hello,  can you please help me. I just need few GPIB command which are used for reading waveform from osciloscope. I need to write and explain few commands. Can you tell me, or tell me where to look that. I tried to see that in my manual of my instrument, but i just dont know, dont understand which command are used for reading waveform from osciloscope.

 

In you need it, you can take a look at my project.

 

Thank you.

Download All
0 Kudos
Message 1 of 9
(3,734 Views)

You aren't reading a waveform in your VI so I don't understand the question. The waveform is fetched with the WAV? query.

0 Kudos
Message 2 of 9
(3,722 Views)

Ok, i am translating from my language to English, so i might mixed up words.

 

Can you tell me commands that are used for fetching waveform?

 

And, can you tell me commands for reading waveform from oscilloscope, it doesn't mind that my VI doesn't do that, i need them anyway, to explain few lines of command code.

 

And sorry for my bad English 🙂

0 Kudos
Message 3 of 9
(3,706 Views)

lord051,

 

I have not viewed your vi's but to answer your question....

 

Start with NI's Instrument Driver Network. Look up your o-scope there and find the driver library. There should be one for "READ DATA" (usually under a utility or data folder).

 

It sounds like you have referenced the programmer's manual already. Try referencing a "READ DATA" command (or similar), not specifically "READ WAVEFORM".

 

What is the make and model of your o-scope? Maybe we can help.

 

Chazzzmd

0 Kudos
Message 4 of 9
(3,695 Views)

lord051,

 

I did a quick google for the programmer's guide for the HP 54645. This guide covers the model A through D. You can find it here.

 

HP Manual

 

Capture
Once you initialize the oscilloscope, you can begin capturing data for
analysis. Remember that while the oscilloscope is responding to
commands from the controller, it is not performing acquisitions. Also,
when you change the oscilloscope configuration, any data already
captured is most likely invalid .
To collect data, you use the :DIGitίze command. This command clears
the waveform buffers and starts the acquisition process . Acquisition
continues until acquisition memory is full, then stops. The acquired
data is displayed by the oscilloscope, and the captured data can be
measured, sto red in trace memory in the oscilloscope, or transferred
to the controller for further analysis . Any additional commands sent
while :DIGitize is working are buffered until :DIGitize is complete.
You could also start the oscilloscope running, then use αwait loop in
your program to ensure that the oscilloscope has completed at least
one acquisition before youmake α measurement. HP does not
recommend this because the needed length of the wait loop may vary,
causing your program to fail. :DIGitize, on the other hand, ensures
that data capture is complete. Also, :DIGitίze, when complete, stops
the acquisition process so that all measurements are on displayed
data, not on α constantly changing data set.

 

-chazzzmd

0 Kudos
Message 5 of 9
(3,691 Views)

Thank you for your help, i just need few command lines which are used for reading/(colecting information from)/fetching wavefor.

 

Like this for example, this was my assigment also,a had to describe and write about these command:

 

"To make sure the bus and all appropriate interfaces are in a known state,
begin every program with an initialization statement. HP BASIC provides a
CLEAR command which clears the interface buffer:
CLEAR 707 ! initializes the interface of the instrument
When you are using HP-IB, CLEAR also resets the oscilloscope’s parser. The
parser is the program which reads in the instructions which you send it.
After clearing the interface, initialize the instrument to a preset state:
OUTPUT 707;"*RST" ! initializes the instrument to a preset
state."

 

or:

 

"To make sure the bus and all appropriate interfaces are in a known state,
begin every program with an initialization statement. HP BASIC provides a
CLEAR command which clears the interface buffer:
CLEAR 707 ! initializes the interface of the instrument
When you are using HP-IB, CLEAR also resets the oscilloscope’s parser. The
parser is the program which reads in the instructions which you send it.
After clearing the interface, initialize the instrument to a preset state:
OUTPUT 707;"*RST" ! initializes the instrument to a preset
state."

0 Kudos
Message 6 of 9
(3,686 Views)

I really don't know what else you need. You asked for the command to read a waveform and I gave it to you. You have the manual to explain it ,the actual VI to get the waveform, and NI-Spy/NI-Trace. Between the three of them, you have absolutely everything you need - except perhaps someone to do the work for you.

0 Kudos
Message 7 of 9
(3,681 Views)

This guy is double posting.....here

0 Kudos
Message 8 of 9
(3,673 Views)

I guess his goal is to keep spamming this forum until someone writes the VI for him.

 

 

 

0 Kudos
Message 9 of 9
(3,657 Views)