background image

Signametrics                                                       

58 

iState

 

int

   Indicates the enabled state of the trigger input line. May be set to 

ENABLED or DISABLED. 

iEdge

 

int

   Indicates the active trigger edge for the trigger input line. May be 

set to POSITIVE or to NEGATIVE. 

Return Value

 

The return value is one of the following constants. 

Value Meaning 

SCAN_OKAY 

Function succeeded. 

Negative Value

 

Error code 

 
Example

 

 

SCANTriggerInState(0, ENABLED, POSITIVE) // set Trig-in line 

 

SCANTriggerOutState 

H/W access Command 

 Polled Command 

 

Description 

S

et trigger output state

.

 

 
#include “SMX4032.H” 
#include “ScanUser.H” 

 int 

SCANTriggerOutStete

(

int iScan, int iState, int iEdge

Remarks

 

This function sets the scanner’s trigger output line state and polarity. Default is 
DISABLED and POSITIVE. If 

iState

 is set to ENABLED, the trigger output is enabled, 

which reflects in its activity during channel selection and during scanning operations. 
With 

iEdge

 set to POSITIVE, the trigger output polarity will be positive, which means 

that a positive edge on the trigger output line indicates a channel selection ready. See 
definitions in ScanUser.H file. 

Parameter Type/Description 

iScan

 

int

   Identifies the Scanner being addressed. 

iState

 

int

   Indicates the enabled state of the trigger output line. It may be set 

to ENABLED or DISABLED. 

iEdge

 

int

   Indicates the active edge for the trigger output line. It may be set 

to POSITIVE or to NEGATIVE. 

Return Value

 

The return value is one of the following constants. 

Value Meaning 

SCAN_OKAY 

Function succeeded. 

Negative Value

 

Error code 

 
Example

 

 

SCANTriggerOutState(0, ENABLED, POSITIVE) //set Trig out 

 

SCANTrigScan 

H/W access Command 

 Polled Command 

 

Summary of Contents for SMX4030

Page 1: ...Operator s Manual Model SMX4032 35 Channel PXI Instrumentation Relay Multiplexer Model SMX4030 35 Channel PXI Relay Multiplexer Signametrics Corporation June 2010...

Page 2: ...rising out of the use of or inability to use Signametrics products even if Signametrics has been advised of the possibility of such damages Because some states do not allow the exclusion or limitation...

Page 3: ...plexing 19 4 1 4 Two Groups Configuration 19 4 1 5 Four Groups Configuration 20 4 1 6 Thermocouple ColdJunction test Configuration 20 4 1 7 Disabled Configuration 20 4 2 SCANNER OPERATIONS 20 4 2 1 Tr...

Page 4: ...ig 38 SCANGetGrdVer 38 SCANGetHwVer 39 SCANGetID 39 SCANGetManDate 40 SCANGetScanList 40 SCANGetShortedChannel 41 SCANGetStepTime 41 SCANGetTriggerIn 42 SCANGetType 42 SCANGetVer 43 SCANInit 43 SCANIs...

Page 5: ...anner It is important to note that using the SMX40 or SM40L limit the voltages to 40V due to the structure of these products Using appropriate and safe connection means to the SMX4030 and SMX4032 is r...

Page 6: ...multaneous channels allowing a DMM or other device to connect to four individual lines In the SixWire configuration six wires or three differential channels are selected simultaneously providing such...

Page 7: ...ot offer the protection of the predefined configurations This could result in shorting some hot lines constituting in potential hazard to the user from any thing that is connected to the scanner and f...

Page 8: ...Closure Time 4 ms 12 ms Typical Release Time 1 2 ms 5 ms Actuation Time 2 5 ms 15 ms Actuation Time range 1ms to 850ms in 0 25ms steps 1ms to 850ms in 0 25ms steps AutoScan Period Range 1ms to 850ms i...

Page 9: ...iggers That includes the PXI_TRIG1 through PXI_TRIG6 and PXI_STAR trigger The trigger is a Wire Ored function of the external trigger at the DB 78 connector or the PXI_TRIGn input The trigger output o...

Page 10: ...the trigger input from the DB 78 connector and the PXI bus trigger Make sure that no signal is connected to the DB 78 trigger inputs while the PXI trigger is in use Read about the operation of the Ext...

Page 11: ...four floppy disks containing software drivers user interface panel and this Operator s manual 3 1 Setting the Scanner The SMX4000 series Relay Scanners are PCI plug and play devices and do not require...

Page 12: ...y or damage to the instrument your computer or application may result Figure 3 1 The Scanner s DB 78 connector facing the bracket Pin Number Label Description Pin Number Label Description 1 Ch2Hi Chan...

Page 13: ...hannel 7 Low 56 Ch29Lo Channel 29 Low 25 Ch10Lo Channel 10 Low 57 Ch31Lo Channel 31 Low 26 Ch12Lo Channel 12 Low 58 DLo D bus Ch35 Low 1 27 Ch13Hi Channel 13 High 59 Comm Common 28 Ch15Hi Channel 15 H...

Page 14: ...to route bus pairs to other bus pairs In TwoWire mode these are also Ch33Hi Ch33Lo lines CHi CLo These are the C bus positive and negative terminals respectively The channels positive and negative li...

Page 15: ...and its usage should be limited to no more than 10mA This supply is isolated from the rest of the signals in the DB 78 connector This signal is referenced to the PowerComm line PowerComm This is the r...

Page 16: ...hat are not included in the control panel above Relay Buttons These buttons are context sensitive Depending on the selected Configuration these buttons allow the closing and opening of the various cha...

Page 17: ...e from the control panel described in the previous section This section describes in detail the Scanner s operations and practices To gain familiarity with the SMX4000 series Scanners run the Windows...

Page 18: ...reducing low resistance measurement errors by a factor of 10 The following table quantifies the effect of TEMF on Ohms measurement using a high quality DMM such as the SMX2042 SMX2044 and SMX2064 in...

Page 19: ...onnected to the DMM source leads the B bus to the sense leads and the C bus to the Guarded point Make sure the polarity of the lines is consistent It should e noted that the D group consisting of Ch31...

Page 20: ...ailable as an input See sectin 4 2 14 for more information 4 1 7 Disabled Configuration In the Disabled configuration all relays including channel and configuration relays are open This is the default...

Page 21: ...he last selected channel The Trigger output signal can be used to synchronize other instruments to the SMX4000 Scanner The value of t Step and t Actuation can be set to generate a trigger output signa...

Page 22: ...Channel function if you wish to open the last selected channel Figure 4 8 Positive edge Triggered Scan operation is a hardware initiated scanning process 4 2 6 Single Step Scan Operation This operatio...

Page 23: ...the scan are loaded with identical table values The following table shows multiple card scanning operation assuming all Scanners are in TwoWire configuration Scan Table Entries Scanner Number 0 1 2 3...

Page 24: ...ment These tests require the test connector Channel Relays Test Each Channel may be tested using the SCANTestChannelRelay function The Channel parameter can be a value between 1 and 32 If no failure i...

Page 25: ...of both measuring and calculating the sensor temperature as well as linearizing thermocouple measurements Following the selection of the sensor SCANSetConfig ColdJunction use the DMMReadCJTemp of the...

Page 26: ...current of the SMX2044 DMM using the 33M range is 0 1 A which translates to 33ms dt C dV I It is also recommended to set the appropriate number of settling measurements for the DMM a minimum of 4 is r...

Page 27: ...greater than t Actuation nSettling 1 read per sec 4 5 Single Ended Applications 4 5 1 Point to Point Operation This may not be obvious but the SMX4030 and SMX4032 modules can be used for single ended...

Page 28: ...to D D to A Ch1Lo Ch1Hi Ch1 C to C B to B C to A B to A Ch1Hi Ch1Lo Figure 4 14 Point to Point selection table NC means no connection 4 5 2 Single Ended Selector By connecting AHi pin 62 and CLo pin 1...

Page 29: ...mportant files to note are File Description SMX4032 LIB The Windows import library Install in a directory pointed to by your LIB environment variable SMX4032 DEF SM2040 driver DLL module definition fi...

Page 30: ...e etc The Scanner function constants are defined in the ScanUser H header file and have names that clearly indicate the function they invoke Two functions are provided to set channel relays SCANSelect...

Page 31: ...DLL MB_OK Show Error SCANSetConfig iScan TwoWire Set to TwoWire configuration SCANSelectChannel iScan 32 Close Channel 32 relay and necessary path relays MessageBox 0 strMsg Channel 32 is closed and s...

Page 32: ...1 for True use YES and NO instead of True and False Global Const YES 1 Global Const NO 0 Error handling code Public Sub ShowFault status As Long Dim errtext As String 48 Dim errcode As Long Dim start...

Page 33: ...ins detailed descriptions of each function of the Windows command language Those commands that pertain to only the SMX4032 are indicated Most functions return an error code The code can either be retr...

Page 34: ...ot applicable for the following configurations Universal and Disabled Being a polled function following this command uses SCANReady to test for completion of the operation No new H W access command sh...

Page 35: ...he Scanner Scanners are numbered starting with zero Return Value The return value is one of the following constants Value Meaning SCAN_OKAY Scanner is OK Negative Value Error Example SCANCleanRelays 0...

Page 36: ...MX4032 H int SCANErrString int iErrorCode LPSTR lpszError int iBuffLength Remarks This function returns a string containing the error description which corresponds to the integer error code iErrorCode...

Page 37: ...Act int i SCANGetActuationTime 0 tAct SCANGetBusInfo H W access Command Polled Command Description Returns the PCI Bus and Slot numbers for the selected SCANNER int SCANGetBusInfo int nScan int bus in...

Page 38: ...are numbered starting with zero Return Value The return value is an integer configuration code or an error code Value Meaning Positive Value Configuration code Negative Value Error code Example int iC...

Page 39: ...anner Scanners are numbered starting with zero Return Value Scanner hardware code or an error code Value Meaning Positive value Hardware version code Negative Value Error code Example int HWVer SCANGe...

Page 40: ...er to a specific manufacturing date code Parameter Type Description IScan int Identifies the Scanner Scanners are numbered starting with zero Month int A pointer to an integer where the month is store...

Page 41: ...ion Returns the channel number of the shorted channel include SMX4032 H int SCANGetShortedChannel int iScan Remarks This function searches and detects a shorted channel starting with channel 1 It retu...

Page 42: ...ve Value Error code Example double FAR Tstep int status SCANGetStepTime 0 Tstep SCANGetTriggerIn H W access Command Polled Command Description Read the state of the Trigger Input line include SM4040 H...

Page 43: ...SCANGetVer H W access Command Polled Command Description Return the Scanner s DLL software driver version include SMX4032 H int SCANGetVer double FAR lpfResult Remarks This function returns the Scann...

Page 44: ...nner SCANIsInitialized H W access Command Polled Command Description Return the active status of the Scanner include SMX4032 H int SCANIsInitialized int iScan Remarks This function returns the status...

Page 45: ...nfigurations using SCANSetConfig will open all relays including configuration relays Parameter Type Description iScan int Identifies the Scanner Scanners are numbered starting with zero Return Value T...

Page 46: ...e return value is one of the following constants Value Meaning TRUE 1 Scanner is done and ready to accept new commands FALSE 0 Scanner is not ready Negative Value Error code Example double Buffer 10 S...

Page 47: ...nel number iChan This is a polled function It sends a command to the Scanner but unlike SCANSelectChannel unlike the SCANSelectChannel function it does not wait for completion of the operation SCANRea...

Page 48: ...25ms Setting Actuation time below the relay specifed Bounce Time could result in premature measurement with an open or unsettled relay Parameter Type Description iScan int Identifies the Scanner Numb...

Page 49: ...etChannelRelay 0 OPEN 10 Open channel 10 relay for I 1 I 9 I Close 1 2 9 SCANSetChannelRelay 0 CLOSE I SCANSetConfig H W access Command Polled Command Description Set the Scanner configuration to one...

Page 50: ...ter part is the SCANSetChannelRelay function Parameter Type Description iScan int Identifies the Scanner being addressed iState int Indicates if relay is to be opened or closed OPEN CLOSE iRelay int I...

Page 51: ...Description Set auto scan step time include SMX4032 H int SCANSetStepTime int iScan double dStep Remarks This function sets the scanner s Step time value The Step time effects the various auto scanni...

Page 52: ...ng SCAN_OKAY Operation successfully completed Negative Value Error code Example status SCANSetTriggerOut 0 1 Set trigger line to high level SCANSetupStep H W access Command Polled Command Description...

Page 53: ...scan list Up to 192 points can be selected in this operation mode Parameter Type Description iScan int Identifies the Scanner being addressed Return Value The return value is one of the following con...

Page 54: ...tion include SMX4032 H int SCANTerminate int iScan Remarks This function opens all relays of the selected Scanner then removes it from the PCI structure To use this Scanner again it is necessary to ei...

Page 55: ...y to be tested 1 to 32 Return Value The return value is one of the following constants Value Meaning SCAN_OKAY Operation successfully completed Negative Value Error code Example SCANTestChanIntegrity...

Page 56: ...lures If no failure the Actuation time of the relay including bounce time is returned This value can be used to fine tune the Scanner for maximum switching performance by setting the highest Actuation...

Page 57: ...st channel selected is left closed See SCANAutoScan for details Parameter Type Description iScan int Identifies the Scanner being addressed iPoints int Indicates the number of points in the scan Retur...

Page 58: ...DISABLED and POSITIVE If iState is set to ENABLED the trigger output is enabled which reflects in its activity during channel selection and during scanning operations With iEdge set to POSITIVE the tr...

Page 59: ...Up to 192 point may be set per scan This process is completed when iPoints have been canned iPoints trigger edges received This is a polled operation It is issued and then monitored for completion usi...

Page 60: ...ot have all PCI items 5 8 Warning Codes Following a warning codes The SMX4030 and SMX4032 will continue to run with the exception of the fault indicated by the warning code Use the SCANErrString funct...

Page 61: ...0V DC and 40V AC Signametrics SMX40L Loop back test connector Required for self tests and contact cleaning operations Several manufacturers provide mating connectors for the SMX4030 32 male DB 78 conn...

Reviews: