Author Topic: Automating Tektronix Field Adjustment Software for TDS oscilloscopes  (Read 11421 times)

0 Members and 1 Guest are viewing this topic.

Offline dxlTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: de
Hi All,

i've read several threads here about Tektronix scopes. I bought one a while ago (a TDS754D). That unit had a broken display (CRT was so weak, you couldn't read anything). I replaced that with a TFT LCD, so that problem is solved now. However, the processor board lost all of it's CAL constants, and
the Acquisition board had two failed Input Attenuator Hybrids. The latter one was easy to fix, i had another Acquistion board i could take them from.

I'm still working on the re-calibration, and want to share some of the things i learned so far. Software used is the TDS700D field adjustment software.
The software requires an old NI PCII/A GPIB ISA card. As i don't have such a card nor the old DOS PC required, i started to hack up DOSEMU to add
a driver that simulates those card, so i could run everything on Linux with my more modern NI  GPIB USB HS Adapter.

The TDS Software actually expects two cards:

a) one at 0x2e1 to connect to the DUT (the oscilloscope)
b) one at 0xe2e1 to connect to all the required Measurement equipment when running in automated mode.

in adj700d.bat, there's a TMODE variable define, which influences the calibration process:

TMODE=M - default setting
TMODE=MA - asks also for humidity
TMODE=MB - exchange the meaning of both GPIB cards
TMODE=MD - prints diagnostic during calibration, i.e. why a calibration step failed

there are probably other settings, but i didn't test every possible combination.

the G_CONFIG file defines the devices present on the GPIB bus - devices where 'INAME' starts with '*' are disabled, and the Software will ask the User to manually set the device to the required setting / read values manually. If you remove the asterisk, the Software will automatically program
the measurement device.

the R_CONFIG file defines the connections between all those devices - you shouldn't change anything in the default R_CONFIG except if you want to have a full automatic calibration setup.

I've spent most of the time figuring out how automatic switching works, so i don't have to switch cables all the time. Here's what i figured out:

You have to add a 'Router' device to G_CONFIG, i added to the end:
Code: [Select]
CEDAT (
        ISYSTEMNO       "1"
        INAME           "Rt1"
        IDDRIVER        "si5020"
        IMODELOPTION    "Tektronix SI5020"
        IUNIT           "1"
        IIDNO           "n/a"
        ICALDATE        "n/a"
        IDUEDATE        "n/a"
        IADDRESS    " 5"
)

In R_CONFIG, there's a 'Section 3 - Path definitions'. In the manual configuration, every line has a unique number in the 'manual close' column.
To automate a entry in that section, you have to move the unique number to the 'auto close' or 'auto open' section, depending on your switch setup.

In 'Section 4: auto switching commands', you need to add one line for each of the automatic entries from section 3. Syntax is as follows:

1 1:O1,3,4_1:C2,5,6,7,8

The first column is the unique identifier from section 3. After that, the second column tells which GPIB unit should be used, and which relays should be closed and opened for that particular path. In my example above, Relays 1,3 and 4 will be closed, while 2,5,6,7 and 8 will be opened.
I haven't defined that section so far, as i'm still waiting for the HP 75000 system i bought which should do all the switching.

Hope this is helpful anyways.
« Last Edit: December 21, 2014, 07:57:40 pm by dxl »
 
The following users thanked this post: fenugrec, vmax

Offline sky2city

  • Contributor
  • Posts: 41
  • Country: cn
Hi dxl,
I am working on the Calibration for my TDS754D.
Can you tell me the detial of how to hack up DOSEMU to add a driver that simulates those card.
I don't have old PC anf NI PCII GPIB card ,but a  modern NI  GPIB USB HS Adapter only.

thanks advance.

Roger
 

Offline dxlTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: de
I've uploaded the code i've written to https://github.com/sschnelle/qemu-gpib/commits/master. However, this only works for the Field Automation Software, other MSDOS software didn't work.
 
The following users thanked this post: sky2city

Offline sky2city

  • Contributor
  • Posts: 41
  • Country: cn
dxl,
Thanks for your reply.
I assumpt your are running the DOS on QEMU.
So what I need to do list:

A. Install a linux system on my PC, some OS like Ubuntu, and then install the linux driver for NI GPIB HS Card.
B. Download the QEMU and make it run on linux.
C. Clone qemu-gpib master brunch to local QEMU.
D. Start a DOS emulator on QEMU, like FreeDOS, at https://en.wikibooks.org/wiki/QEMU/FreeDOS.
E. Last step, run the Automating Tektronix Field Adjustment, do everything must to be done......

Correct me if I am wrong.

Roger.
« Last Edit: May 17, 2016, 05:14:04 pm by sky2city »
 

Offline andy2000

  • Frequent Contributor
  • **
  • Posts: 255
  • Country: us
Hi All,

i've read several threads here about Tektronix scopes. I bought one a while ago (a TDS754D). That unit had a broken display (CRT was so weak, you couldn't read anything). I replaced that with a TFT LCD, so that problem is solved now. However, the processor board lost all of it's CAL constants, ...

The cal constants are stored on the acquisition board in a pair of EEPROMs.  It's odd that you could lose them since they are hardware write protected by the protection switch on the processor board. 
 

Offline dxlTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: de
dxl,
Thanks for your reply.
I assumpt your are running the DOS on QEMU.
So what I need to do list:

A. Install a linux system on my PC, some OS like Ubuntu, and then install the linux driver for NI GPIB HS Card.
B. Download the QEMU and make it run on linux.
C. Clone qemu-gpib master brunch to local QEMU.
D. Start a DOS emulator on QEMU, like FreeDOS, at https://en.wikibooks.org/wiki/QEMU/FreeDOS.
E. Last step, run the Automating Tektronix Field Adjustment, do everything must to be done......

Correct me if I am wrong.

Roger.

Yes, those steps are right. I digged and found the MSDOS image i used for calibrating my TDS754D. I've uploaded them to http://stackframe.org/qemu-gpib/. Just download and gzip -d the msdos_gpib file. The msdos_gpib.sh contains the commandline required to start qemu with gpib support. And yes, the first version was running on dosemu, but qemu/kvm is much faster when it comes to process all the FFT stuff that's done inside of the Field Adjustment software. So i switched to QEMU.
 

Offline sky2city

  • Contributor
  • Posts: 41
  • Country: cn
I had downlaod it.
I have everything need for the Cal. of my TDS754D........ :-+

Thanks so much.   
 

Offline dxlTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: de
One thing i forgot to mention - in the QEMU GPIB code, there's a function gpib_map_commands(), which does some translation of the GPIB commands for my Test equipment. If you have all the equipment Tek wants, you can remove that function.

The current function translates the commands so that the FAS can work with my equipment, which is:

- a Fluke 3330 calibrator with own GPIB interface
- a Rohde & Schwarz SMIQ03 RF generator
- a PREMA 6.5 digit DMM
- an HP75000 based switching system to run the full test suite automated.
 

Offline sky2city

  • Contributor
  • Posts: 41
  • Country: cn
Got it.
:)
 

Offline sky2city

  • Contributor
  • Posts: 41
  • Country: cn
BTW,
Actually, I don't have the equipment tek recommented.
I am going to calibrate it manually.
refer to the service manual of TDS700D, there are 3 cal. test:
1) Voltage Reference
2)Frequency Response
3)Pulse Trigger
I have  two 6.5 digit DMM,HP3456 and HP3457A, and RF singal generator of MT8801C. 

there will be no problem with Voltage Reference / Frequency Response cal.

for Pulse Trigger, I plan to buy a "Pulser, Tunnel Diode",Tektronix part number
067-0681-01.

thanks.

 

Offline charlyd

  • Frequent Contributor
  • **
  • Posts: 525
  • Country: nl
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #10 on: September 28, 2017, 09:01:49 am »
hello i am also busy try to cal. my TDS754D  but get erros while doing voltage calibration.

anyone ever had that ?  (i have my Processor board fail still ( i keep that in mind)

could there be a link?
 

Offline fenugrec

  • Regular Contributor
  • *
  • Posts: 216
  • Country: ca
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #11 on: January 01, 2018, 05:54:36 am »
The software requires an old NI PCII/A GPIB ISA card. As i don't have such a card nor the old DOS PC required, i started to hack up DOSEMU to add
a driver that simulates those card, so i could run everything on Linux with my more modern NI  GPIB USB HS Adapter.
...
I've uploaded the code i've written to https://github.com/sschnelle/qemu-gpib/commits/master

Awesome work on qemu ! I had started to do the exact same thing a few months back : for some reason I never found this thread until very, very recently. I also spent much time analyzing the TDS700.exe binary, and went down a slightly different path.

As you stated, the field adjustment software needs either an ISA,  NI GPIB-PCII or PCIIA card, which are getting hard to come by. These cards are based on a NEC7210-compatible IC which implements a set of 8 registers. One difference between PCII and PCIIA cards is the mapping of these registers in the x86 IO address space. Otherwise they behave pretty much the same, as far as the field adjustment software (can I call it just FAS ?) is concerned.

Now, as it turns out, many ICs have implented a 7210-compatible interface or just cloned it altogether. Anything NAT4882-based necessarily has a 7210 mode, and this means many many ISA cards could *potentially* be used with the FAS. The caveat of course being that the FAS needs to be modified to use the proper IO address mapping.

Here's a table that hopefully explains better than me.
Code: [Select]
index : 7210 register #
name : 7210 register name
*_mapping : IO port used to access the register on a certain card type (AT is GPIB-AT, not sure about GPIB-AT/TNT)

index name PC2_mapping PC2A_mapping AT_mapping
0 CDOR 02B8 02E1 02C0
1 IMR1 02B9 06E1 02C2
2 IMR2 02BA 0AE1 02C4
3 SPMR 02BB 0EE1 02C6
4 ADMR ...
5 AUXMR ...
6 ADR ...
7 EOSR ...

Here's the relevant section of code in the FAS that generates the IO port mappings:
Code: [Select]
;Dissassembly from TDS700.exe near file offset 0x346CD
;
;This code path parses the "GPIBn=PC2A [dmach] [irq] [DIPswitch]" environment variable
;(set in ADJ700.bat)
;
;gpib_cardID is "n" in "set GPIBn=...", so 0 or 1.

;Notice this pattern:
; lea ax, [di+2E1h]
;which does "ax = di + 0x2E1", where di is generated based on the DIP switch setting.
;We recognize 2E1 as the base address for register CDOR on the PCIIA cards !

3B14:017F mov si, [bp+gpib_cardID]
3B14:0182 shl si, 1
3B14:0184 mov es, seg_77546
3B14:0188 mov di, es:[si+big.GPIB_DIPswitch]
3B14:018D mov cl, 0Dh ; shift DIPswitch setting to set address bits A14..A13
3B14:018F shl di, cl
3B14:0191 lea ax, [di+2E1h]
3B14:0195 mov es, seg_77548
3B14:0199 mov es:[si+big.DIR_CDOR], ax
3B14:019E lea ax, [di+6E1h]
3B14:01A2 mov es, seg_7754A
3B14:01A6 mov es:[si+big.ISMR1], ax
3B14:01AB lea ax, [di+0AE1h]
3B14:01AF mov es, seg_7754C
3B14:01B3 mov es:[si+big.ISMR2], ax
; ... and so on.

I had difficulty finding an inexpensive GPIB-PCII board, so after realizing this I bought a GPIB-AT . Then I have patched the FAS to use the correct addresses (as well as the shift constant to use the "DIPswitch" value correctly) . So far it seems to be working - I've been able to connect to the DUT (my TDS744A) ! Note, for lack of cal equipment, I haven't actually tried any of the steps yet but I see this as a very good sign.

TLDR : here's a summary of the possible methods to run the field adjustment software for these TDS scopes:
  • basic setup : native DOS machine with an ISA card either GPIB-PCII or GPIB-PCIIA; this means nothing more recent than roughly Pentium III for the last ISA motherboards.
  • dxl's neat qemu layer : DOS running in qemu, modern host computer with a modern USB-GPIB device
  • native DOS machine + an ISA-GPIB card that claims to be PC2-compatible : looking at the list of supported devices in linux-gpib shows some names that also pop up on ebay, like "CEC PC 488", "cb7210", and some others. It's likely some of these will indeed be perfectly PC2 / PC2A compatible and not require patching the FAS.
  • native DOS machine + an ISA-GPIB that is *not* PC2 compatible, but based on a controller IC such as NAT4882 which implements 7210 registers. The GPIB-AT is one of these. This requires patching the FAS which is fairly straightforward.

I've been running my tests on freeDOS running on an old dual-P3 server motherboard; I don't think it's necessary to suffer needlessly and run plain MS-DOS. But, as I mentioned I haven't tried the cal process, only the initial connection.

For those also wanting to do a native DOS + ISA card setup, I did some research to catalog NI ASSY # for these products.  NI has many different hardware revisions for each product name, so it can be hard to identify the product based just on PCB photos.

Code: [Select]
ASSY : printed on component side of PCB. Back side often / always has a different number.
Some of these don't make sense to me, but I'm fairly confident anything with a 7210 or NAT4882 can be made to work with the FAS.

ASSY Model Controller Notes
180100-02H GPIB-PC D7210C #180102-02 backface; "GPIB-PCII" printed near conn ??(datecode 0989)
180100-02H GPIB-PC D7210C #180102-02 backface; (datecode 0587)
180210-01 GPIB-PC2A? D7210C #180212-01A backface (dc 1485).  no RTC
180210-02 GPIB-PC2A? D7210C #180212-01A backface (dc 1485). RTC
181060-01C AT-GPIB NAT4882+TURBO4882 PLCC sticker "AT-GPIB" near conn ??
181060-01E AT-GPIB NAT4882+TURBO4882
181065J-01 GPIB-PCII/IIA NAT4882
« Last Edit: January 01, 2018, 03:26:49 pm by fenugrec »
 

Offline ingowien

  • Regular Contributor
  • *
  • Posts: 61
  • Country: at
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #12 on: March 06, 2019, 09:40:11 pm »
The github link does not work anymore, is there a chance I could get that content for some tests with my 754D?
 

Offline alocam

  • Contributor
  • Posts: 40
  • Country: ar
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #13 on: April 11, 2019, 08:08:57 pm »
Hello, I was reading your post after searching for GPIB PCIIA ISA card, and I wonder whether you finally had a chance to grab one of these. I need to calibrate a Keithley unit, and software requires such card. I got one on ebay, but it did not come with the DOS diskette to install it. Do you know any source to download the PCII/PCIIA software?
Thank you!
 


Offline fisafisa

  • Regular Contributor
  • *
  • Posts: 105
  • Country: es
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #15 on: May 23, 2019, 06:28:22 pm »
Hi
I would be interested too in the qemu-gpib.
Anybody?
 

Offline youxiaojie

  • Newbie
  • Posts: 9
  • Country: cn
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #16 on: September 28, 2019, 01:56:17 pm »
dear friend, who has the calibration software? could you give me a copy? and firmware updater disk?thanks.
 

Offline charlyd

  • Frequent Contributor
  • **
  • Posts: 525
  • Country: nl
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #17 on: October 24, 2019, 05:10:03 pm »
i can help you out.. please pm me
 

Offline gdwiggins

  • Newbie
  • Posts: 2
  • Country: us
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #18 on: December 31, 2020, 07:18:00 pm »
Looking for the contents of  https://github.com/sschnelle/qemu-gpib/commits/master as it is no longer a valid link--hopefully someone has it?

 

Offline fenugrec

  • Regular Contributor
  • *
  • Posts: 216
  • Country: ca
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #19 on: November 06, 2021, 04:12:54 pm »
Unfortunately I can't find my fork of qemu-gpib, but I was able to rescue the essential files.

I have created a branch with those files, but it will NOT compile, and will NOT work without some work :

1- original code was ported on a qemu tree from around 2012 that I can't find in current master repo
2- qemu codebase has changed a lot since 2012

If anyone's interested in working on this, I made a quick commit with just the files here:
https://gitlab.com/fenugrec/qemu/-/tree/gpib_pciia
 

Offline dxlTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: de
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #20 on: November 06, 2021, 09:07:39 pm »
I updated the patch in the beginning of the year, and iirc it worked: https://github.com/svenschnelle/qemu/tree/pciia
 
The following users thanked this post: fenugrec, Tantratron

Offline fenugrec

  • Regular Contributor
  • *
  • Posts: 216
  • Country: ca
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #21 on: November 06, 2021, 09:48:38 pm »
I updated the patch in the beginning of the year, and iirc it worked: https://github.com/svenschnelle/qemu/tree/pciia

Hi,
that's awesome !! I didn't know you were still following this thread. Thanks again for sharing this.
 

Offline dxlTopic starter

  • Regular Contributor
  • *
  • Posts: 189
  • Country: de
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #22 on: November 07, 2021, 07:40:28 pm »
Not really following, but once a year or so i stop by ;-)
 

Offline fenugrec

  • Regular Contributor
  • *
  • Posts: 216
  • Country: ca
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #23 on: December 23, 2021, 05:41:16 pm »
I finally calibrated my 744A last week, and discovered a few things while doing so , and decided to share a few tips in a video  https://youtu.be/wSqTj4gGCJU

Here are the main points :
- Supported ISA GPIB cards : https://www.eevblog.com/forum/testgear/automating-tektronix-field-adjustment-software-for-tds-oscilloscopes/msg1388658/#msg1388658
- CVR calibration does NOT absolutely require a metrology-grade DC calibrator like the DP8200, EDC 501 etc. But does need something better than just a lab PSU
- CVR calibration needs +- 9.5V at the highest setting (not 104V as the service manual indicates) ; look at your "CVRCAL.500" file to confirm
- HF cal needs 505MHz for a 500MHz scope, at +16 to +17 dBm. Many signal generators cannot do this, but a simple RF amplifier will do the trick.
- HF cal : watch out for lossy coax cable (e.g. RG58 ) ! Even 0.6dB of loss caused problems. Manually compensating that loss worked OK.
 
The following users thanked this post: coromonadalix, Tantratron, TERRA Operative

Offline micaticu

  • Contributor
  • Posts: 14
  • Country: ca
Re: Automating Tektronix Field Adjustment Software for TDS oscilloscopes
« Reply #24 on: May 03, 2022, 09:58:53 pm »
Hello dxl,

How is you project for automating the FAS 'Router' advancing?
Do you have any news, more details? 
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf