background image

F U N C T I O N   C A L L S  

void WINAPI Enable_TwoSpeed(int Card, int Channel) 

DESCRIPTION 

This routine turns the given channels to Two Speed mode, then starts Two Speed. Two 
Speed Mode is enabled without starting rotation. The Binary Rate Multiplier and the Speed 
ratio need to be programmed first. If the Binary Rate Multiplier is not programmed for the 
channel pair, then Two Speed will not continue. 
 

INPUT DATA 

Card = an integer between 0 and 7 for the card of interest. The card number is set in the 

MOTION FEEDBACK BOARD MANAGER. 

 
Channel = an integer between 0 and 2 for the channel of interest. 
 
0 = Channel 0 (Coarse) and Channel 1 (Fine) 
1 = Channel 2 (Coarse) and Channel 3 (Fine) 
2 = Channel 4 (Coarse) and Channel 5 (Fine) 
 

RETURNED DATA 

This routine does not return any data. 
 

EXAMPLE CODE 

Code Result/Returned 

Data 

Enable_TwoSpeed(0,1); 

Enables Two Speed mode for card #0, 

channel 2(Coarse) and channel 3 

(Fine). 

Data Device Corporation 

SB-3622X Manual 

37

Содержание DRC-11525

Страница 1: ...ss underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals Demos...

Страница 2: ...For Technical Support 1 800 DDC 5757 ext 7771 Headquarters U S A Tel 631 567 5600 Fax 631 567 7358 United Kingdom Tel 44 0 1635 811140 Fax 44 0 1635 32264 France Tel 33 0 1 41 16 3424 Fax 33 0 1 41 1...

Страница 3: ......

Страница 4: ...rical update C 10 2001 All Software Clerical update D 05 2002 All Linux Clerical update E 10 2003 Various Updated Hardware Installation section Program_Amplitude details Specifications Table Ordering...

Страница 5: ...Board Manager Application 11 Console Application 11 Synchro dll file Function Calls 11 data sims 11 Windows Software Installation 12 MOTION FEEDBACK BOARD MANAGER 13 Graphical User Interface GUI Appl...

Страница 6: ...51 int WINAPI Read_Latched_Angle int Card int Channel int Coarse int Fine 52 int WINAPI Read_Register int Card int Register 53 int WINAPI Read_Resolution int Card int Channel 54 void WINAPI Start_Rot...

Страница 7: ...ow 17 Figure 16 Motion Feedback Devices window close 17 Figure 17 Accessing the GUI Application 18 Figure 18 Select Card Screen 19 Figure 19 DEMO Application Screen 19 Figure 20 GUI Application Screen...

Страница 8: ...nnel Reference Assignments 59 Table 3 Output TBx Jumper Configuration 60 Table 4 Reference Multiplier for non standard D S R output voltages 61 Table 5 SB 3622X Pinouts of P1 62 Table 6 Reference Type...

Страница 9: ...supplied with the Program Product and destroying any portions of the DDC Program Product merged in any form The user License Agreement basically states the following You may use the libraries on as ma...

Страница 10: ...Program Product material except as stated in this paragraph GENERAL TERMS This is the only agreement between User and DDC regarding this Program Product and it may be modified only by a written agree...

Страница 11: ...rope 44 1635 811140 Fax 44 1635 32264 Asia Pacific 81 3 3814 7688 Fax 81 3 3814 7689 Or by faxing 1 631 567 7358 to the attention of Motion Feedback Technologies Applications Customer support 1 800 DD...

Страница 12: ...and chapter references BOLD ITALIC will designate DDC Part Numbers Courier New is used to indicate code examples Indicates user entered text or commands Symbols and Icons The Idea Tip icon will be use...

Страница 13: ...he device will not be damaged by Electrical Static Discharge ESD physical shock or improper power surges and that precautions are taken to avoid electrocution Turn off power to the PC and unplug from...

Страница 14: ...three channel pairs of two speed Included with each SB 3622X PCI Card is the DDC Toolbox library with example source code that allows users to easily write their own application software for the card...

Страница 15: ...available or ensure proper static grounding by touching the power supply cover WITH POWER OFF Insert the card at a slight angle so that the connectors first protrude from the rear opening and then ge...

Страница 16: ...TPUT SCALING RH RL D S OR D R HYBRID CONVERTER OUTPUT SCALING RH RL D S OR D R HYBRID CONVERTER AMPLIFIER OR TRANSFORMER OPTIONAL OSCILLATOR INTERNAL REGISTER ADDRESS DECODER DIRECT OUTPUT SCOTT T TRA...

Страница 17: ...000 operating system continue with the following installation instructions If you are using Windows NT refer to page 7 for installation instructions If you are using Linux refer to page 7 for installa...

Страница 18: ...Click on Search for the best driver for your device 5 Click on the Next button Figure 4 Search This Location For Driver Screen 6 Insert the MFT CD into the CD drive 7 Select the CD ROM drive option 8...

Страница 19: ...20 folder 10 Click on the Next button to locate the SB 3622X device driver Figure 5 Install Driver From Location Screen 11 Click on the Next button to install the device driver Figure 6 Driver Install...

Страница 20: ...ption in 1991 individuals university students and companies began distributing Linux with their own choice of packages bound around the original kernel This is where the concept of the distribution wa...

Страница 21: ...linking of the synchro library sbin ldconfig 5 Change ownership of all of the files to normal user and then exit superuser mode chown R users username exit 6 As superuser locate the PCI card informati...

Страница 22: ...ly run make SB3622 0 in the synchro directory as unprivileged user then copy SB3622 0 to usr lib ddc as root 9 Loading and unloading of the driver is accomplished by running the appropriate script as...

Страница 23: ...e card These registers are configured at the factory to contain the optimum values for the operation of the SB 3622X The SB 3622X PCI card and software drivers allow for shared interrupts thus simplif...

Страница 24: ...EEDBACK BOARD MANAGER Application is installed in the CONTROL PANEL during the setup exe installation The MOTION FEEDBACK BOARD MANAGER Application will route the information to the appropriate routin...

Страница 25: ...es that dramatically reduce software development time by providing a high level interface to the PCI card If you are installing under Windows perform the steps below 16 bit operating systems not suppo...

Страница 26: ...dy to configure the card Device configuration is performed through the use of the Motion Feedback Board Manager Application 1 Turn on the computer 2 Click on Windows START 3 Click on SETTINGS 4 Click...

Страница 27: ...ndow Note The Device will default to none Each card must be assigned to a unique unused device number from 0 to 31 card numbers cannot be shared 7 To assign the card to a new Device number select Modi...

Страница 28: ...Feedback Devices menu the following warning will appear Clicking on Yes will overwrite the previously assigned device number If the Prompt on Replace option was not selected a warning will not be disp...

Страница 29: ...a log of all devices installed even if the card is not currently inserted select Show all devices from the Motion Feedback Devices window Figure 14 Motion Feedback Devices window Show all devices Note...

Страница 30: ...ose the Device Driver Information window and return to the Motion Feedback Devices window Figure 16 Motion Feedback Devices window close 14 Select Close to complete the card configuration and close th...

Страница 31: ...binary formats Parameters are set and display options are selected using a combination of keyboard and mouse commands according to the chosen format 1 To access the Graphical User GUI Application Inte...

Страница 32: ...ct a card from the drop down list then click Select Note Selecting Demo Mode will open up the following demo application screen where input information can be simulated even if a card is not installed...

Страница 33: ...is menu the display information can be configured along with the hardware configuration Figure 21 Options Screen Oscillator Resolution Shown 4 Click on the Oscillator Resolution scroll bar to open up...

Страница 34: ...channels at one time By selecting a specific channel options now changed are relevant to that specific channel only By selecting all channels changes are relevant to channels 1 through 6 For two speed...

Страница 35: ...ions Screen Resolution Shown 6 Click on the Resolution scroll bar to select either 12 or 16 bit resolution Note The application will automatically recalculate the Revolutions Second when the resolutio...

Страница 36: ...Circuit windows The Amplitude and Frequency displays will update with the closest system values available 8 The Card Options section enables which type of display is shown in the main screen The bina...

Страница 37: ...the LED Binary Input buttons Two Speed Rotate Starts and stops dynamic rotation for a channel pair 1 3 5 Two Speed Latch Latches the data for a channel pair when the coarse angle crosses zero Channel...

Страница 38: ...nd 4 and 5 and 6 Note Two speed allows resolutions greater than 16 bit to be achieved For Two speed theory review the following DDC documents The RD RDC applications manual system design section P N M...

Страница 39: ...M O T I O N F E E D B A C K M A N A G E R Figure 27 Exit Warning Data Device Corporation SB 3622X Manual 26...

Страница 40: ...bit data Change bandwidth and resolution Reset counters Change to encoder mode Change oscillator amplitude and frequency The underlying source code for the Console Application is provided as an exampl...

Страница 41: ...G E R Figure 29 Console Application Setup 3 Enter the card number of the SB 3622X card and hit Enter This will open up the following Console Application Menu Figure 30 Console Application Menu Data De...

Страница 42: ...ction will change the Binary Rate Multiplier for the user defined channel The user is asked Is this a Two Speed Multiplier 1 or Single Speed 0 then which channel 1 6 or pair of channels 1 3 depending...

Страница 43: ...c Rotation on Then the user enters a 1 to start or a 0 to stop Dynamic Rotation 7 Read Register If the user wants to read an individual register this function will display the data from that register...

Страница 44: ...tine assures that the data has been latched and then proceeds to read the angles 13 Latch Individual Channel This function will latch the data for the user entered channel 1 6 Since this will effectiv...

Страница 45: ...outines for the SB 3622X Digital to S R PCI Interface Card The following list contains all of the pertinent Function Calls required by the user Any Function Calls contained within the Synchro h file t...

Страница 46: ...e card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel Pairs an integer between 0 and 2 for the channel pairs of interest 0 channels 0 and 1 1 channels 2 and 3 2 channe...

Страница 47: ...erest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest 0 channel 0 Coarse 1 channel 1 Fine 2 channel 2 Coarse 3 channel 3 Fine...

Страница 48: ...alues to the card INPUT DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER RETURNED DATA This routine does not return any data EX...

Страница 49: ...Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This r...

Страница 50: ...then Two Speed will not continue INPUT DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 2 for...

Страница 51: ...is set in the MOTION FEEDBACK BOARD MANAGER RETURNED DATA This routine returns the card address of the card as a char The card address returned is the physical PCI slot number that the card is install...

Страница 52: ...has chosen INPUT DATA Card An integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER RETURNED DATA This routine will return the type of card insta...

Страница 53: ...displayed in applications and helps to maintain version control INPUT DATA There is no inputted data for this routine RETURNED DATA This routine will return version number of the synchro dll EXAMPLE C...

Страница 54: ...ror message RETURNED DATA ErrorMsg A char that will hold the last error message Valid Values No Error Could not open Registry Card Type is invalid Card not Initialized Invalid Direction Could not open...

Страница 55: ...nished Returns the card type from the given card number for error checking INPUT DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAG...

Страница 56: ...DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest Latch an intege...

Страница 57: ...d an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 2 for the channel pair of interest 0 Channel 0 Coarse...

Страница 58: ...ator amplitude enter the bit multiplier The bit multiplier which is an integer is determined by the following formula Amplitude bit multiplier X mV bit Model Number Output Scaling mV bit Examples Bit...

Страница 59: ...rd of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest Angle a WORD that represents the angle that is to be written t...

Страница 60: ...true frequency To change the Oscillator frequency enter the bit multiplier The bit multiplier which is an integer is determined by the following formula Frequency bit multiplier X Hz bit Board Type O...

Страница 61: ...at Direction an integer that is either a 1 for Up or a 0 for Down Speedmode an integer 0 for Single Speed mode and 1 for Two Speed Mode RETURNED DATA This routine returns the actual value of Revs as a...

Страница 62: ...r the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest Ratio a WORD that represents the ratio between Coarse...

Страница 63: ...rd INPUT DATA Card an integer between 0 and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest Resolu...

Страница 64: ...n Fine SIX TWELVE_F Resolution Coarse SIX TWELVE_C Latch Two Speed Data LTSD Coarse Clear COARSE_CLR Coarse Enable COARSE_EN Fine Clear FINE_CLR Fine Enable FINE_EN Clear All CLR1 Dynamic Rotation Coa...

Страница 65: ...eger between 0 and 2 for the channel pairs of interest 0 Channel 0 Coarse and Channel 1 Fine 1 Channel 2 Coarse and Channel 3 Fine 2 Channel 4 Coarse and Channel 5 Fine Coarse Current coarse angle dat...

Страница 66: ...and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Register an integer RETURNED DATA This routine returns an integer that stores the value of the register that...

Страница 67: ...et in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest RETURNED DATA This routine returns an integer that represents the current resolution of a channel...

Страница 68: ...the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channel an integer between 0 and 5 for the channel of interest Start an integer that is either a 1 to Start or a 0 to...

Страница 69: ...Channel an integer between 0 and 2 for the channel pairs of interest 0 Channel 0 Coarse and Channel 1 Fine 1 Channel 2 Coarse and Channel 3 Fine 2 Channel 4 Coarse and Channel 5 Fine Start an integer...

Страница 70: ...and 7 for the card of interest The card number is set in the MOTION FEEDBACK BOARD MANAGER Channels an integer 0 2 or 4 0 Channel 0 and Channel 1 2 Channel 2 and Channel 3 4 Channel 4 and Channel 5 C...

Страница 71: ...de Note 1 Start_Rotation int Card int Channel int Start Note 1 Close int Card Sample pseudo code Int main char CardType Get_Card_Type Card Initialize Card Program_Amplitude Card Amplitude Program_Freq...

Страница 72: ...1 Jumper Designations Jumper Block Channel TB1 1 TB2 2 TB3 3 TB4 4 TB5 5 TB6 6 Figure 31 SB 3622X Jumper Location Note The output signal configuration of the hybrids will match the output type option...

Страница 73: ...v Resolver N A 1 2 7 8 9 10 N A 4 2v Resolver N A N A N A 5 Note 3 11 8v Synchro N A 3 4 5 6 7 8 9 10 N A 6 Note 3 11 8v Resolver N A 1 2 5 6 7 8 9 10 N A 7 Note 3 90v Synchro N A 3 4 5 6 7 8 9 10 N A...

Страница 74: ...es OUTPUT OPTION OUTPUT TYPE NOMINAL REFERENCE INPUT VRMS MULTIPLIER X 1 11 8V L L Synchro 26 0 45 2 11 8V L L Resolver 26 0 45 3 6 8V L L Resolver single ended 26 0 26 4 2V Resolver single ended 4 4...

Страница 75: ...3 INPUT 31 S4_CH 6 OUTPUT 7 RL_EXT_CH 2 INPUT 32 S2_CH 5 OUTPUT 8 RH_EXT_CH 5 INPUT 33 S4_CH 5 OUTPUT 9 RL_EXT_CH 4 INPUT 34 S3_CH 4 OUTPUT 10 GND 1 35 S1_CH 4 OUTPUT 11 5 EXT TP OUTPUT 36 S3_CH 3 OUT...

Страница 76: ...resolver outputs used MATING CONNECTOR Pin 1 Pin 50 Pin 1 Pin 25 Side View of Pins 1 thru 25 Solder Lug detail Each side consists of 2 rows of pins Front View D connector detail Side View Connector Sh...

Страница 77: ...Single Width card Applicable to Reference Types 0 1 2 4 5 and Output Types 0 1 2 3 4 Double Width card Applicable to Reference Types 3 6 and Output Types 5 6 7 8 1 025 Back Component Area Front Compon...

Страница 78: ...A P P E N D I X C ASSEMBLY DRAWING U4 U2 U3 U1 U11 U11 T3 Figure 34 SB 3622X Card Assembly Data Device Corporation SB 3622X Manual 65...

Страница 79: ...han 1 Chan 3 Chan 5 Chan 2 Chan 6 T3 T1 T5 T2 Daughter Board DDC 71237 Figure 35 SB 3622X Card Photos 2 Channel version shown Note T1 T2 T3 T5 and Daughter Board options shown installed Actual configu...

Страница 80: ...V High Current 300ma Differential Solid State Oscillator Output 5 Internal 26V High Current 1 5VA Transformer Isolated Oscillator Output X 6 Internal 115V High Current 1 5VA Transformer Isolated Oscil...

Страница 81: ...etween two signals Measured Angle The analog synchro or resolver signals representing a position that is converted to a digital word or angle Reference Excitation for synchro or resolver device and co...

Страница 82: ...II Tracking A type of servo control loop Velocity The rate of a change in position for a certain time interval Vrms Root mean square or effective voltage Vp x 2 1 Data Device Corporation SB 3622X Manu...

Страница 83: ...2 Hardware Configuration 11 Windows 9x 2000 Driver 4 Windows NT Driver 8 I Icons Caution x Disk xi Idea Tip x Note x Reference xi Warning x Initialize function 42 L Latch_Channel function 43 Latch_Two...

Страница 84: ...re Installation 13 Software License and Policies vii Trademarks viii Update Policy viii Software Overview 12 Special Handling and Cautions xi Specifications 58 Start_Rotation function 55 Start_TwoSpee...

Страница 85: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Отзывы: