AnsweredAssumed Answered

34970A - How do I configure different channels to measure different things?

Question asked by drkirkby on Jun 8, 2019
Latest reply on Jun 9, 2019 by drkirkby

I’ve programmed quite a few GPIB instruments in the past


* HP 8720D and 8753ES VNAs 

* HP 3457A multimeter

* HP 5370B time interval counter

* HP 70000 series spectrum analyzer 

* Stanford Research Lock-in amplifier


but the  HP 34970A has me beat!!!!!


Here's what's working, and what is not.


1) I can set up channel 101 to measure DC volts with


2) I can set up channel 102 to measure AC volts with


So far so good.
However, each time I set up some channels to measure a particular parameter, the ones previously set are turned off. So for example, sending these two commands




results in channel 102 being set to AC volts (as intended), but all other channels are reset, so are off. which is not what I want. 
I can't find the sequence of GPIB commands that allow different parameters to be set on different channels.  Normally one sticks a semi-colon between commands, and they all get executed sequentially. 
The 34970A manual says "Both the MEASURE and CONFIGURE commands reset all measurement parameters to their default values" In other words, what I am seeing is what the manual says  should happen. However, this is not very useful!


I´m obviously doing something wrong. Does anyone know what? 
I don’t want to program in Excel, but instead C, but one of the Excel examples seems to be executing the commands I tried, but they are not working in my simple C program. The manual gives this example 
SendSCPI ¨CONF TEMP TC,T, (@102)  'Configure channel 102 for temperature
SendSCPI ¨CONF:VOLT:DC (@110,111,112)  'Configure 3 channels for DC volts.


I am trying to program the 34970A the same way I have done multiple instruments in the past


1) National Instruments GPIB board in a Sun workstation running Solaris 


2) National Instruments drivers, which gives me commands like 


ibwrt() - write data

ibrd() - read data.


3) Write the code in C and compile with the gcc compiler, linking in the National Instruments library, and including the National Instruments header files in my C program. 


I’m not using any GUI - just command line stuff in a UNIX environment.