Hmm, sounds like a handshaking problem of some sort. Are you using the MR
command to synchronize your readings?
This code is from my 5370B console app that reads a single frequency value:
------------snip--------
void main(S32 argc, C8 **argv)
{
if (argc < 2)
{
printf("Usage: 5370B <address>\n");
exit(1);
}
GPIB_connect(atoi(argv[1]),
GPIB_error,
0,
3000); // 3-second timeout
GPIB_set_EOS_mode(10); // Incoming strings terminated by ASCII 10 (LF)
GPIB_write("FN3GT3MD2"); // Frequency function, 0.1 second gate time,
hold until MR command issued
GPIB_write("MR"); // Issue Manual Rate command to enable reading
printf("%s",GPIB_read_ASC());
GPIB_disconnect();
}
-----------end snip--------
-- john, KE5FX
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Jim Palfreyman
> Sent: Saturday, June 21, 2008 5:42 PM
> To: [email protected]
> Subject: [time-nuts] 5370B and GPIB
>
>
> Hi folks,
>
> Well I'm now trying to get my 5370B talking via GPIB so I can capture
> data. I've got Softmark's USB/GPIB adaptor and can control the 5370B
> but I just can't figure out how to read data back. All I get is
> "TTTTTTTTTTTT" or "||||||||||||||".
>
> Has anyone had any experience with this particular combination?
>
>
_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.