Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB how to read burst of samples from HP E1326B with E1347A multiplexer

Solved!
Go to solution

I am trying to read a collection of samples from a single channel with a sampling rate of 1kHz every time a trigger is activated. My problem is that although I have a lot of example code in text format, I am not sure how to configure the HP E1326B to change the number of samples read each time it is triggered using the Labview pallete. There is no effect when I change  the Sample Count setting on the Configure trigger Vi, although i can get an arrray like i want by setting multiple triggers. When I set a single trigger and a high sample count on the Configure trigger Vi i still only read one sample per trigger. I know I am supposed to have code similar to :


160 OUTPUT 70903;"  SAMP:SOUR TIM"

170 OUTPUT 70903;"  SAMP:TIM 0.001"

180 OUTPUT 70903;"  SAMP:COUN 100

 

The problem is when I use multiple triggers the sampling rate is slow. Is anyone aware of how to set the sampling rate on this DMM and collect multiple samples per trigger? Also, is there a way I can type text commands to the instrument through labview ?  I have attached my test code for reference. 

 

Thanks !

 

Yin 

0 Kudos
Message 1 of 3
(3,348 Views)
Solution
Accepted by topic author yin_the_novice

Yin,

 

I put together a simple example of some code which should be similar to what you need. It basically allows you to write a series of commands to the GPIB device, then read off the data. I used some of the example code from page 45 of the user manual for that device found here: 

http://www.home.agilent.com/upload/cmc_upload/All/E1326-90009.pdf?&cc=US&lc=eng 

 

Heres a code snippet: Writing text based commands to GPIB.png

Let me know how that works for you!

 

Regards,

 

Kyle Mozdzyn

Applications Engineering

National Instruments

 

Regards,

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

Thanks a lot this did exactly what I needed!

0 Kudos
Message 3 of 3
(3,323 Views)