A two million sample static memory is provided for each channel and is divisible into smaller data segments. The TR122 analog inputs have nine 1 volt to 500 volt full scale ranges selectable in 1,2,5 steps. A full scale input offset adjustment is also available. The effective sample rate is adjustable from 1 MS/s to 200 MS/s in eight steps.
1.2 Setup and Installation The TR122 is a single width 3U CPCI module. To insert the TR122 in the CPCI crate, choose any convenient slot and slide the module into the crate with its top and bottom mated to the guide rails. Be sure that the module is properly aligned with the connector at the back of the crate.
These are labeled for the two channels and the external trigger. There is also a serial number label on the card ejector lever. This number will be presented by the TR122 software to indicate which TR122 is being used, which may be important when there are multiple such instruments in the system.
TR122 device in the system. The software will locate a TR122 which is not already in use and complain if one can not be found. Assuming a TR122 is found, a clicking of relays can be heard as the software configures the unit to default settings. The control panel screen shown in Figure 2.1 will appear and its title bar will indicate the serial number of...
The TR122 starts in the oscilloscope mode and returns to default settings for all controls. This will also be the case any time a new card, or the same card, is found using the Select menu item. This gives the user a practical starting point from which to configure the measurement environment.
TR122. All controls in the TR122 software can be adjusted by clicking on them with the mouse buttons. For most, though not all, controls the left mouse button will increase the value of the control and the right mouse button will return its value.
With a transient recorder it is more typical to discuss offset. The term offset will be used in the context of the TR122. The offset allows a DC value to be added to the input signal, typically to bring a signal with a DC offset within range of the instrument;...
Page 12
In oscilloscope mode the trigger controls mirror those on an oscilloscope. The trigger Source can be either channel or the external trigger input. The trigger Slope can be rising or falling edge. The trigger system can operate in a Mode of , or which AUTO...
Settings are available in the File menu in the oscilloscope mode. The Save Settings item will prompt for a file name under which to save the current settings of the user controls. When the TR122 software is started, default settings are always installed. Stored settings can be retrieved using the Load Settings menu item.
2.3 Transient Recorder Mode Changing between oscilloscope and transient recorder mode is performed by selecting a mode from the Mode menu item. This menu indicates the current mode with a check mark. Starting the transient recorder mode will result in a blank display screen and the Run/Stop control indicating .
When selecting a sample rate (measured in MHz or Million Samples Per Second (MS/s)), keep in mind that the bandwidth of the TR122 analog circuitry is always 100 MHz, and the roll off of the pass band is not steep. Any incoming signal...
Page 16
2. For example, 64K samples is 65536 samples. A segment in the TR122 can be sized as a power of 2 times the block size, up to the size of the full memory. That is, the segment size can be selected as 64K, 128K, 256K, 512K, 1024K, or 2048K samples.
To prepare the TR122 to capture a transient record, set the Run/Stop control to . At that point the memory geometry controls are frozen and the TR122 begins recording pre trigger samples and waiting for a trigger event. The other controls remain available to the user, however it should be kept in mind that adjusting controls after the first trigger is received could cause an inconsistency in the data between one segment and the next.
This is the absolute time at which the trigger event for the currently displayed segment occurred with respect to the first trigger event, based on a microsecond counter in the TR122. The display of the first trigger event will always show zero microseconds (0uS) in this location.
Page 19
The text data file format will contain a line of text for each sample. The samples are in chronological order from oldest to newest. The resulting file will be quite large and will probably need to be reduced for use in most data analysis programs. Some users may also find it easier to understand this format than the binary format for use in custom post processing software.
3.0 TR122 Software Source Code Instruments such as the TR122 are only as useful as the software which runs them. While the software provided with the TR122 makes the instrument very functional in a wide variety of applications, it is impossible to predict the full range of possible user needs or the software environment in which the instrument may be installed.
3.1 TR122 Software Architecture The hardware and software design of the TR122 is rooted in well accepted flexible, layered design concepts. The functional stack of all elements in the instrument design and data flow are shown in Figure 3.1 below.
Page 22
The API is provided as a dynamic link library (DLL) written in the C programming language. This is where the bulk of the TR122 software is located and is the primary subject of this section of the manual. The API is designed to relieve the top level application from even the most rudimentary house keeping duties.
3.2 The TR122 API The TR122 application programming interface (API) is provided as a Windows dynamic link library (DLL) which is installed in the Windows system directory (\WinNT\System32 or equivalent). Also stored at this location is the binary image file for the gate array in the instrument.
Page 24
A process is an instance of the top level application, such as the user application for the TR122 instrument in a particular CPCI slot. For example, each instance of the top level application will have its own screen DIB and its own settings. If data are to be shared between processes, the API must take advantage of operating system resources for that purposes.
These settings are only changed by a user during periodic calibration. However, software such as the TR122 turnkey application must contain a method of doing this. These functions are declared as follows.
DCAPI TR122_GetStatus(BYTE *Status); The status returned by reference in this function is defined in the header file. It informs the caller if the TR122 is in host service mode. If the instrument is recording, the status indicates if the memory is full. A caller may poll this routine periodically to see if a transient recording has stopped on its own due to a full memory.
Page 27
DCAPI TR122_GetTriggerInformation(DWORD *NumberOfTriggers, DWORD *Times); This routine is called to validate a transient record and to determine the amount of data present. It is called internally to the API as part of a display function. However, it can be called from a higher level application. If a valid transient record is present in memory, this routine will return the number of segments filled with valid data and an array of up to 32 time values at which the triggers occurred with respect to the first trigger.
3.2.3 Display Functions The API library maintains for each process a device independent bitmap (DIB) which can be accessed by the display functions in the API. The DIB is created and initialized when the library is loaded. The image data appears as an oscilloscope gradicule. The size of the image is nominally 256 pixels high and 512 pixels wide.
Page 29
DCAPI TR122_D_ValidateTransientTimeOffset(long *PixelOffset, char *TimeAtMidScreen); A user application will usually involve dimensioning of a display based on the pixels as they appear to the user. A plot of a valid transient record is initially displayed with the trigger at midscreen (offset of 0 samples). A transient record is plotted using one sample per horizontal pixel.
3.2.4 The Auto Thread In order to present analog data as an oscilloscope, the application must continuously collect, read, and display data. To be effective it can not be distracted from that task as the user works with the controls. There are also a number of timing functions which will work more smoothly if they are independent of anything else that is happening in the top level application.
Calibrations are generally good for at least one year. There are two aspects to the calibration of the TR122. The first is a familiar process where the analog front end frequency compensation is adjusted to provide the best possible representation of the incoming signal.
To access the calibration features of the software, create a Windows shortcut or use the command line to start the software with the –C command line argument (i.e. TR122.EXE –C). This will present the window shown in Figure 4.1 with the added controls for calibration.
Adjusting the front end compensation is similar to adjusting the compensation of an oscilloscope probe. In fact, the TR122 high impedance attenuator is essentially two x10 oscilloscope probes connected in series and followed by a final attenuator and amplifier section.
With the stage 0 attenuator compensation aligned, the front end x10 attenuators can be aligned. To separate the action of each and because the available test signals are likely to be limited to a few volts, these attenuators will have to be adjusted one at a time. This is a departure from normal instrument operation.
4.1.3 Adjusting The Calibration Data Several controls < and > are provided to adjust each of three calibration points for each of the channels. These calibration points must be adjusted for each of the nine settings of the input attenuator. In total then there are 2x9x3 = 54 settings to be made. To be sure that everything is adjusted properly it helps to be systematic about it.
Page 36
TR122 and TR122 Software are products of Data Design Corporation. No portion of this manual or any accompanying software may be reproduced by any means for any purpose other than for user archives and application of the TR122 products without the express written consent of the copyright owner.
Page 37
Data Design. All such works must be applicable only to use of the TR122 product. Any copy or portion of the Source Code, including any derivative works thereof, including any portion merged into a design and any design or product that incorporates any portion of the Source Code, will continue to be subject to the terms and conditions of this Agreement.
Page 38
Limitations of Liability In no event shall the aggregate liability of Data Design relating to this Agreement or the subject matter hereof under any legal theory (whether in tort, contract, or otherwise), including any liability for any loss or damages directly or indirectly suffered by Licensee relating to the Source Code, exceed One Dollar ($1.00).
Need help?
Do you have a question about the TR122 and is the answer not in the manual?
Questions and answers