06-02-2011 08:10 PM
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
Solved! Go to Solution.
06-03-2011 10:57 AM
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:
Let me know how that works for you!
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments
07-04-2011 10:00 PM
Thanks a lot this did exactly what I needed!