With my 3456A now working, I was very keen to get the readings out of it and into the tablet app. So I had a play around with the GPIB port last night.
Turns out to be very easy in Talk Only mode.
If anyone's interested in doing it, just grab a uC, attach the first 7 data lines, DAV and NDAC lines and the code's below.
Now to see if I can get my hands on the proper connector...
const int DAV = 10; // Data Valid
const int NDAC = 11; // Not data accepted
byte data;
void setup() {
Serial.begin(115200);
pinMode(DAV, INPUT);
pinMode(NDAC, INPUT);
digitalWrite(NDAC, LOW);
pinMode(2, INPUT); //D0
pinMode(3, INPUT); //D1
pinMode(4, INPUT); //D2
pinMode(5, INPUT); //D3
pinMode(6, INPUT); //D4
pinMode(7, INPUT); //D5
pinMode(8, INPUT); //D6
}
void loop()
{
pinMode(NDAC , OUTPUT);
if(digitalRead(DAV) == LOW){
data = 0;
if(digitalRead(2) == LOW)
data |= (1<<0);
if(digitalRead(3) == LOW)
data |= (1<<1);
if(digitalRead(4) == LOW)
data |= (1<<2);
if(digitalRead(5) == LOW)
data |= (1<<3);
if(digitalRead(6) == LOW)
data |= (1<<4);
if(digitalRead(7) == LOW)
data |= (1<<5);
if(digitalRead(8) == LOW)
data |= (1<<6);
Serial.write(data);
pinMode(NDAC , INPUT);
}
}