background image

Software

R&S

®

TS-PSM4

30

User Manual 1178.2796.02 ─ 01

#include <ansi_c.h>
#include <userint.h>

#include "resmgr.h"
#include "route.h"
#include "dmm.h"
#include "rspsm4.h"

int main (int argc, char *argv[])
{

  long      residRoute;  /* resource ID for signal routing library */
  long      residDmm;    /* resource ID for dmm library            */
            
  short     errorOccurred = 0;
  long      errorCode = 0;
  char      errorMessage [GTSL_ERROR_BUFFER_SIZE] = "";
            
  double    voltageResult = 0.0;
  double    currentResultLoadActive = 0.0;
  double    currentResultLoadStandby = 0.0;
  int       resultsCount = 0;

  ViSession psm4SessionHandle = -1;

  
  /* load the physical and application configuration files */

  RESMGR_Setup ( 0, "physical.ini", "application.ini",
                 &errorOccurred, &errorCode, errorMessage);

  /* initialize the signal routing library */
  ROUTE_Setup ( 0, "bench->psm4SampleApp", &residRoute,
                &errorOccurred, &errorCode, errorMessage);

  /* initialize the dmm library */
  DMM_Setup ( 0, "bench->psm4SampleApp", &residDmm,
              &errorOccurred, &errorCode, errorMessage);

  /* close coupling relays to TS-PCA3 Analog Bus */
  DMM_Conf_Coupling_Relays ( 0, residDmm, 1,
                             &errorOccurred, &errorCode, errorMessage);
  
  /* set dmm function, resolution and auto ranging */
  DMM_Conf_Measurement ( 0, residDmm, "DC_VOLTS", 0.0, "AUTO_RANGE_ON",
                         1.0e-4,
                         &errorOccurred, &errorCode, errorMessage);

Programming with GTSL Libraries

Summary of Contents for TS-PSM4

Page 1: ...R S TS PSM4 High Power Switch Module User Manual User Manual 1178 2796 02 01 K 2 Test Measurement...

Page 2: ...9 41 29 12 164 Email info rohde schwarz com Internet www rohde schwarz com Subject to change Data without tolerance limits is not binding R S is a registered trademark of Rohde Schwarz GmbH Co KG Trad...

Page 3: ...e of the product The product is used for its designated purpose if it is used in accordance with its product documentation and within its performance limits see data sheet documentation the following...

Page 4: ...ation item 7 Signal words and their meaning The following signal words are used in the product documentation in order to warn the reader about risks and dangers Indicates a hazardous situation which i...

Page 5: ...afety is not observed either at all or to the extent necessary electric shock fire and or serious personal injury or death may occur 1 Prior to switching on the product always ensure that the nominal...

Page 6: ...t be fuse protected in such a way that anyone who has access to the product as well as the product itself is adequately protected from injury or damage 14 Use suitable overvoltage protection to ensure...

Page 7: ...masks and protective clothing must be worn 7 Laser products are given warning labels that are standardized according to their laser class Lasers can cause biological harm due to the properties of the...

Page 8: ...n permitted 5 If a cell develops a leak the fluid must not be allowed to come into contact with the skin or eyes If contact occurs wash the affected area with plenty of water and seek medical aid 6 Im...

Page 9: ...s substances or fuels can cause health problems and lead to environmental damage For additional information about environmental protection visit the Rohde Schwarz website Instrucciones de seguridad el...

Page 10: ...el uso del producto Deber n tenerse en cuenta todas las dem s informaciones de seguridad como p ej las referentes a la protecci n de personas que encontrar n en el cap tulo correspondiente de la docu...

Page 11: ...l producto se emplea de forma sin nima el t rmino CUIDADO Las palabras de se al corresponden a la definici n habitual para aplicaciones civiles en el rea econ mica europea Pueden existir definiciones...

Page 12: ...la tensi n preseleccionada en el producto coincida con la de la red de alimentaci n el ctrica Si es necesario modificar el ajuste de tensi n tambi n se deber n cambiar en caso dado los fusibles corre...

Page 13: ...efectuadas por un electricista especializado 13 En el caso de dispositivos fijos que no est n provistos de fusibles interruptor autom tico ni otros mecanismos de seguridad similares el circuito de ali...

Page 14: ...presario operador tiene la obligaci n de evaluar y se alizar las reas de trabajo en las que exista un riesgo elevado de exposici n a radiaciones 6 Tenga en cuenta que en caso de incendio pueden despre...

Page 15: ...r ni fuego Debe evitarse el almacenamiento a la luz directa del sol Las celdas y bater as deben mantenerse limpias y secas Limpiar las conexiones sucias con un pa o seco y limpio 3 Las celdas o bater...

Page 16: ...vos el ctricos usados no se deben desechar con los residuos dom sticos sin clasificar sino que deben ser recogidos por separado Rohde Schwarz GmbH Co KG ha elaborado un concepto de eliminaci n de resi...

Page 17: ...ed for exam ple according to the ISO9001 and ISO14001 management systems Environmental commitment Energy efficient products Continuous improvement in environmental sustainability ISO14001 certified en...

Page 18: ...ument up to date and to be informed about new application notes related to your instrument please send an e mail to the Customer Support Center stating your instrument and your wish We will take care...

Page 19: ...red without VPC the user can connect his loads or power supply units with his own cables via apertures on the front plate of the module to the terminals of the channels A soft panel is available for o...

Page 20: ...S PWA3 chassis by means of R S TS PRIO2 Rear I O Module possible Feed through of all channels to the rear of the R S TS PCA3 chassis by means of optional R S TS PK04 cable set possible Support via R S...

Page 21: ...igure 2 1 shows the view of the High power Switch Module R S TS PSM4 variant 03 Figure 2 1 View of the R S TS PSM4 variant 03 Figure 2 2 shows the view of the High power Switch Module R S TS PSM4B var...

Page 22: ...Block diagram R S TS PSM4 6 User Manual 1178 2796 02 01 3 Block diagram Figure 3 1 shows the block diagram of the High power Switch Module R S TS PSM4 Figure 3 1 Block diagram R S TS PSM4...

Page 23: ...connector X10 only R S TS PSM4 variant 03 is located on the front side of the module The R S TS PSM4B variant 02 in contrast is supplied without this connec tor On its front side only a front plate w...

Page 24: ...e of the chassis In contrast to the R S TS PSM4B variant 02 the cabling of the connector VPC mounted on the front of the R S TS PSM4 variant 03 with the appropriate terminals on the base board has alr...

Page 25: ...Construction R S TS PSM4 9 User Manual 1178 2796 02 01 Figure 4 3 R S TS PSM4 variant 03 Base board Figure 4 4 R S TS PSM4B variant 02 Base board R S TS PSM4...

Page 26: ...LED s with the following functions Table 4 2 Display elements on the R S TS PSM4 LED Beschreibung ERR red Fault condition Lights up when a fault is detected on the R S TS PSM4 in the power on test aft...

Page 27: ...ds the connectors X20 and X11 to the R S TS PSM4 on the backplane side Figure 4 5 R S TS PRIO2 backplane side to the R S TS PSM4 The connectors X1 to X5 are located on the side accessible to the user...

Page 28: ...t first be pushed far enough using a flat head screwdriver to clear the opening that will take the wire To do so a suitable screwdriver must be placed in the left hand square opening of the terminal T...

Page 29: ...e X3 X4 X5 Interface of high power channels 9 to 20 with the load or voltage source X20 Interface of channels 1 to 8 with the R S TS PSM4 4 3 R S TS PK04 If the optional R S TS PK04 cable set has been...

Page 30: ...TSVP R S TS PCA3 4 3 1 Mechanical construction In Figure 4 9 the installation of the R S TS PK04 cable set in the CompactTSVP R S TS PCA3 cTSVP and its connections to the R S TS PSM4 here shown in sim...

Page 31: ...K04 cable set Abbreviation Use X1 Interface of high power channels 9 to 20 with the R S TS PSM4 X3 und X4 Interface of the high power channels 9 to 20 and low power channels 1 to 8 with the load or vo...

Page 32: ...val ues are used for calculating the actual current through the channel The amount of cur rent through a channel can be retrieved from the module via the IVI switch driver when the measured voltage le...

Page 33: ...tage supply In the example shown below Figure 5 1 the voltage supply is connected to the COM lines on the rear of the R S TS PSM4 This can be done via the R S TS PRIO2 optionally installed in the R S...

Page 34: ...ram above the lines with sense voltage are blue and the paths over which the voltage drop on the shunt resistor is measured are coloured green 5 1 3 2 Current measurement with load in standby mode If...

Page 35: ...Functional description R S TS PSM4 19 User Manual 1178 2796 02 01 Figure 5 2 Application example current measurement with load in standby mode R S TS PSM4...

Page 36: ...wer source 6 1 1 Position of the connecting terminals Figure 6 1 shows the position of the connecting terminals on the base board Figure 6 1 Position of the connecting terminals on the base board 6 1...

Page 37: ...he wire to be mounted is now inserted into the exposed lower opening To establish a good connection the wire must be free of its insulation by a length of about 6 mm After removing the screwdriver fro...

Page 38: ...S PSM4 variant 03 is shown Figure 6 5 R S TS PSM4 variant 03 In the identical terminals of the high power and low power channels of the R S TS PSM4 variant 03 wires labelled AWG 14 are finely stranded...

Page 39: ...SVP operating manual section Permissible module configurations 3 Remove the corresponding front plate section on the CompactTSVP housing by undoing the screws 4 Insert the R S TS PSM4 with moderate pr...

Page 40: ...o 14 With this module all low power and high power channels on the rear of the PowerTSVP R S TS PWA3 can be made accessible If the R S TS PSM4 is operated in slot 16 there is the capability for both C...

Page 41: ...ands and carefully pressed into the backplane connector Proceed as follows to install the R S TS PRIO2 1 Shut down and switch off the PowerTSVP R S TS PWA3 2 Select an appropriate rear slot The R S TS...

Page 42: ...es are installed Table 7 1 Driver Installation R S TS PSM4 Module Path Comment rspsm4 dll GTSL directory Bin Driver rspsm4 hlp rspsm4 chm GTSL directory Bin Help files rspsm4 fp GTSL directory Bin Lab...

Page 43: ...Software R S TS PSM4 27 User Manual 1178 2796 02 01 Figure 7 1 Softpanel R S TS PSM4 Softpanel...

Page 44: ...he power relay of channel 9 is opened and the standby current is bypassed via matrix relays to the analog bus and TS PSAM module Error handling is not considered in this sample in order to keep it eas...

Page 45: ...irtual device for the switch manager It allows connections between measurement and switch modules AnalogBus device ABUS Channel tables AppChannelTable io_channel psm4SampleApp The application channel...

Page 46: ...psm4SessionHandle 1 load the physical and application configuration files RESMGR_Setup 0 physical ini application ini errorOccurred errorCode errorMessage initialize the signal routing library ROUTE_...

Page 47: ...cute 0 residRoute PSM4_CH9_NO PSM4_CH9_COM PSM4_CH10_NO PSM4_CH10_COM errorOccurred errorCode errorMessage measure voltage at 5 mOhms shunt resistor of TS PSM4 channel 10 DMM_Read 0 residDmm 1 0 1 vol...

Page 48: ...NO LABa2 ABa2 PSM4_CH10_NO LABb1 ABb1 errorOccurred errorCode errorMessage set dmm function resolution and auto ranging DMM_Conf_Measurement 0 residDmm DC_CURRENT 0 0 AUTO_RANGE_ON 1 0e 4 errorOccurre...

Page 49: ...libraries DMM_Cleanup 0 residDmm errorOccurred errorCode errorMessage ROUTE_Cleanup 0 residRoute errorOccurred errorCode errorMessage RESMGR_Cleanup 0 errorOccurred errorCode errorMessage char buffer...

Page 50: ...on the module LED faulty No LED s light up No 5 V supply 8 2 Startup test The startup test runs in parallel with the LED test The following information can be drawn from the different LED display sta...

Page 51: ...f the modules in the system is ensured by measurements via the analogue measurement bus For information on starting the self test and the order of required work steps please consult the GTSL Software...

Page 52: ...S TS PSM4 9 1 1 Connector X1 Figure 9 1 R S TS PSM4 connector X1 view plug side Table 9 1 R S TS PSM4 connector X1 assignment Pin Channel Pin Channel 1 CH9_COM 7 CH15_COM 2 CH11_COM 8 CH17_COM 3 CH13_...

Page 53: ...8 CH9_COM 34 2 19 CH10_NO 35 3 20 CH10_COM 36 4 CH2_NO 21 CH1_NO 37 5 CH2_COM 22 CH1_COM 38 6 CH3_NO 23 CH3_COM 39 CH4_NO 7 CH4_COM 24 CH6_NO 40 CH6_COM 8 CH5_NO 25 CH11_NO 41 CH5_COM 9 CH8_COM 26 CH1...

Page 54: ...plug side Pin E D C B A 22 GA0 GA1 GA2 GA3 GA4 21 GA5 20 5V GND 5V 19 5V GND 18 CAN_EN 17 GND 16 GND 15 5V GND 14 13 12 CH4_COM CH2_COM 11 10 CH3_COM CH1_COM 9 8 CH6_COM CH8_COM 7 6 CH5_COM CH7_COM 5...

Page 55: ...PSM4 39 User Manual 1178 2796 02 01 9 1 4 Connector X30 Figure 9 5 R S TS PSM4 connector X30 view plug side Pin E D C B A 7 6 GND 5 ABc1 ABa1 4 ABb1 3 ABc2 2 ABa2 1 ABd2 Figure 9 6 R S TS PSM4 connect...

Page 56: ...Connector X11 Figure 9 7 R S TS PRIO2 connector X11 view plug side Table 9 3 R S TS PRIO2 connector X11 assignment Pin Channel Pin Channel 7 CH15_COM 1 CH9_COM 8 CH17_COM 2 CH11_COM 9 CH19_COM 3 CH13...

Page 57: ...Interface description R S TS PSM4 41 User Manual 1178 2796 02 01 9 2 2 Connector X20 Figure 9 8 R S TS PRIO2 connector X20 view plug side R S TS PRIO2...

Page 58: ...M4 42 User Manual 1178 2796 02 01 Pin A B C D E 22 21 20 19 18 17 16 15 14 13 12 CH2_COM CH4_COM 11 10 CH1_COM CH3_COM 9 8 CH8_COM CH6_COM 7 6 CH7_COM CH5_COM 5 4 3 2 1 Figure 9 9 R S TS PRIO2 connect...

Page 59: ...96 02 01 9 2 3 Connector X1 and X2 Figure 9 10 R S TS PRIO2 connector X1 and X2 Table 9 4 R S TS PRIO2 connector X1 and X2 assignment X1 Pin Channel X2 Pin Channel 1 CH1_COM 1 CH5_COM 2 CH2_COM 2 CH6_...

Page 60: ...nd X5 Figure 9 11 R S TS PRIO2 connector X3 X4 and X5 Table 9 5 R S TS PRIO2 connector X3 X4 and X5 X3 Pin Channel X4 Pin Channel X5 Pin Channel 1 CH9_COM 1 CH13_COM 1 CH12_COM 2 CH15_COM 2 CH19_COM 2...

Page 61: ...TS PK04 9 3 1 Connector X3 Figure 9 12 Connector X3 rear of R S TS PCA3 or R S TS PWA3 Table 9 6 Connector X3 assignment Pin Channel Pin Channel A1 CH15_COM 1 CH4_COM A2 CH11_COM 2 CH3_COM A3 CH13_COM...

Page 62: ...3 2 Connector X4 Figure 9 13 Connector X4 rear of R S TS PCA3 or R S TS PWA3 Table 9 7 Connector X4 assignment Pin Channel Pin Channel A1 CH12_COM 1 CH2_COM A2 CH17_COM 2 CH1_COM A3 CH18_COM 3 CH8_CO...

Page 63: ...0 Specifications The technical data of the High Power Switch Module R S TS PSM4 are shown in the corresponding data sheets In the event of any discrepancies between date in this user manual and techni...

Reviews: