LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between instruments and Labview using GPIB/USB interface

I'm doing a project, goal of project is to enable communication between digital oscilloscope and Labview program, using
GPIB/USB interface. My first mission was to configure function generator Agilent 33220a, and my second mission was to configure digital oscilloscope HP54645D.

 

This is how i configure function generator Agilent 33220a:

 

http://img850.imageshack.us/img850/9004/gennn.jpg

 

This is how i configure digital oscilloscope HP54645D:

 

http://img805.imageshack.us/img805/6021/scop.jpg

 

i connected my instruments with computer, using GPIB/USB cable, everything works perfect, i can control instruments using Labview. Now, i have to show send and received GPIB commands on front panel of my virtual instrument, and also i have to write few orders which are sent throw communication interface for both instruments. I don't know how to do that, can you help me about it, any ideas how to do that???

 

Sorry for my bad English.

 

Best regards...

0 Kudos
Message 1 of 14
(4,022 Views)
0 Kudos
Message 2 of 14
(4,017 Views)
Don't link images on some odd third party site. Attach them here.

What do you mean by ' write few orders'? And do you need to show the actual SCPI commands and responses?
0 Kudos
Message 3 of 14
(4,012 Views)

I attached photos on this forum.

 

"What do you mean by ' write few orders'? " -, i think that is important for my report, i assume that i will just copy few command for different orders.

 

"And do you need to show the actual SCPI commands and responses?" - , i am not sure a know what this represents 🙂 , i just know that i have to show send and received GPIB commands on front panel of my virtual instrument, and i don't have u clue how to do it.

Download All
0 Kudos
Message 4 of 14
(3,999 Views)

What is the point of showing the actual GPIB commands and responses on the front panel? Are you testing the drivers? Are you testing the instrument? Are you doing this for fun? NI Spy will show you all of the commands that are sent and all of the responses received.

0 Kudos
Message 5 of 14
(3,987 Views)

Exactly, NI Spay does it. I did it using NI Spy, and show it to professor, but he told me that that is not good way... Yes, it look like that is for fun, there is no special reason for it, i am not testing any drivers, i am not testing any instruments...

0 Kudos
Message 6 of 14
(3,982 Views)

Well, you can programatically start NI-Spy/I/O Trace and read the file in your program. Otherwise, you would have to modify each and every subVI to capture the strings passed to each VISA Write and the strings returned by each VISA Read. You could write these strings to a global variable. You would just need to make sure to append the new data to the old.

 

This professor of yours is mistaken if he thinks NI-Spy is not a good way. It is really the best tool to capture all of the data.

0 Kudos
Message 7 of 14
(3,964 Views)

Yes, i can see that he is mistaking... i asked him for help,but he doesnt know the answer... but he wants me to put some block od front panel where Labview will list comands which are used for communication between instruments and Labview. I also need to explain few lines of that code...

 

and also if you can help me with this:

 

Can you tell me GPIB command for reading waveform from dig. scope?

0 Kudos
Message 8 of 14
(3,920 Views)

You can read the manual for the scope to get all of the commands. The commands are also on the block diagrams of the VIs in the driver.

0 Kudos
Message 9 of 14
(3,909 Views)

OK, thank you.

 

Analize GPIB communication. I found instrument manual, here is link(file is too large for upload):

 

http://f6fzk.free.fr/DOCUMENTATION/DOC%20HP/CD6/54645a_d_prg.pdf

 

 Can you please look it and tell me on which page are GPIB command???

I need to write and explain command which do next:

 

1. initialize using dig. scope and function generator

2. reading waveform

3. setting up output parameters of function generator.

 

Also, i need to show and describe block which is used for receiving GPIB command which we send by bus. Which blok is that?

 

Were can i found code of virtual instrument which is in charge for communication with instruments? I have to write and describe part of that code.

 

Many questions, i am sorry, but i am completely nub for this... i hope i will learn it here, so next time i can help someone.

 

Thanks you.

0 Kudos
Message 10 of 14
(3,873 Views)