Home

User`s Manual V1 - Chase Scientific Company

image

Contents

1. Trademarks MS DOS Windows 3 1 Windows 95 and Windows NT are registered trademarks of Microsoft Corporation O Chase Scientific Company 360 221 8455 25
2. Chase Scientific Company 360 221 8455 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator DWORD OpenErrorCode da8150 Open 1 Opens Board Number 1 and stores value 4 3 2 3 da8150_Close Description Closes DA8150 drivers Should be called after finishing using the driver However if no other software uses the windrv xxx usual situation then there is no need to close it until user is ready to completely exit from using their main software program which calls windrv xxx If the user is loading the windrv xxx dynamically during run time then they should close before unloading the driver Declaration DWORD da8150_ Close DWORD CardNum Parameters CardNum 1 lt CardNum lt 4 Return Value Returns with error code A 0 means everything is fine See below for details for other values Return Values 0 Closed Windriver Successfully for DA8150 card requested 5 DA8150 Card Already Closed for card requested 13 FAILED TO ACCESS Windriver Kernel Driver Example DWORD CloseErrorCode da8150 Close 1 4 3 2 4 da8150_SetClock Description Sets the Digital to Analog converter clock rate This function call is also used to select the external clock if the external clock option is present To select an external clock the user must a value greater than than 300000000 Declaration void da8150 SetClock DWORD CardNum DWORD Frequency Parameters CardNum 1 lt CardNum
3. Megabytes or more then how the memory is allocated and where it is located in the system is completely transparent Chase Scientific Company 360 221 8455 11 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 3 THEORY OF OPERATION 3 1 Introduction Although the DA8150 is primarily comprised of a Segment Sequencer or memory manager and a 4 1 High Speed Multiplexor it s how the software interacts with the hardware that makes it work The following sections should provide enough operational theory for better understanding when using the software drivers 3 2 Downloading and Outputting User Data to the DA8150 The DA8150 RAM memory IC s not only contain the user s waveform data but it also contains special command codes that run the Segment Sequencer These codes are placed into the upper nibble 4 bits of selected individual sample points 16 bit words leaving the lower 12 bits for user data The Segment Sequencer reads these codes to determine where and when to jump to another segment how many times to loop when to wait for a trigger and when to shut down This is the heart of the DA8150 memory management Downloading a Single User Waveform single segment into memory is performed by simply calling da8150_CreateSingleSegment DWORD CardNum DWORD ChanNum DWORD NumPoints DWORD NumLoops PVOID UserArrayPtr DWORD TrigEn The user must be sure to pass the size of the waveform VumPoints the number of t
4. lt 4 Frequency 150000000 75000000 37500000 Note If Frequency gt 300000000 then external clock is selected and is divided by 2 Return Value none Example da8150 SetClock 300000000 Sets clock rate to 300 MHz Chase Scientific Company 360 221 8455 16 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 4 3 2 5 da8150_SetTriggerMode Description Sets triggerring modes This command should be called using mode 0 just after the driver is opened to initialize internal hardware registers before calling any other routines This function also selects whether board is in triggered mode or not and polarity of external TTL triggered signal Declaration void da8150_SetTriggerMode DWORD CardNum BYTE Mode BYTE ExtPol Parameters CardNum 1 lt CardNum lt 4 Mode 0 Shuts down all output operations Asychronously resets RAM address counter and repeat counters to zero 1 Used for starting single segment operation for segment created with da8150_CreateSingleSegment Repeats indefinitely until mode set back to 0 External or soft trigger has no effect in this mode Also works for da8150_CreateSegments but any segments specified as triggered will immediately jump to next segment no trigger required and beginning and ending pads will be present in output for these segments 2 Sets up first segment for external or soft trigger mode Individual segment s
5. Arbitrary Waveform Generator The DA8150 hardware consists of a single mid sized PCI compliant card The card is shipped with this manual which includes complete hardware and software descriptions 1 33 Checklist Part Number Description DA8150 12 1M PCI 150 MSPS Arbitrary Waveform Generator PCI card DA8150 Drivers 3 5 diskette or Mini CDR with Dynamic Link Libraries for Windows 95 98 ME NT4 2000 XP Includes examples and manual 1 4 Product Specification all specifications are at 25 C unless otherwise specified SPECIFICATIONS Parameter Conditions Typical Values unless otherwise indicated Analog Outputs Number of Outputs 8 50 ohm SMA outputs Output Coupling DC Vertical Resolution 12 bits 1 part in 4096 Amplitude 150 MS s 2 0Vpp 3 single ended into 50 ohms Programmable Attenuator Option 1 Attenuation Range 31 5 dB Number of Steps 64 steps Attenuation per Step 0 5 dB typical Insertion Loss 1 3 dB typical at 100 MHz Rise Time 10 to 90 No Filters 2 5 nsec typical into 50 ohms Fall Time 10 to 90 No Filters 2 5 nsec typical into 50 ohms Clock Jitter 150 MS sec Less than 20 psec RMS at 150MHz Trigger Delay 150 MS sec TBD SFDR Fout lt 50MHz 150 MS sec lt 55 dB Typical Fout 50 100 MHz 150 MS sec lt 50 dB Typical Internal Clock Rate Frequency Range 15
6. Generator 4 3 2 8 da8150_CleanSingleSegmentArea 2M Version Only Description This function call is required on the DA8150 12 2M PCI ONLY The 2M version requires this function to be called any time segment sizes change OR segment triggered is modified OR segment loops is modified If a segment structure has been created previously AND only data is to be updated then this function call is not needed Declaration void da8150 CleanSingleSegmentArea DWORD CardNum DWORD NumPointsPerChan Parameters CardNum 1 lt CardNum lt 4 NumPointsPerChan 0 lt NumPoints lt MaxMem 64 Must be in multiples of 64 Return Value None Example da8150 CleanSingleSegmentArea 1 1024 Card Number 1 4 3 2 9 da8150_CreateSingleSegment Description Creates a single segment in memory The user determines the size of the array and whether the segment is started automatically or waits for an external input trigger After creating a single segment waveform the user must call SetTriggerMode to turn on off output waveforms In triggered mode there is a 64 samples of pad at the beginning and end of the segment with a level set at 2047 In non triggered mode the only pad that is visible is the beginning pad when the output is started then repeats data portion indefinitely until reset All segments regardless of whether it s triggered or not have 64 sample pads at the beginning and end of the segments in actual memory but may
7. SegmentsList NumPoints 64 SegmentsList NumLoops 0 SegmentsList BeginPadVal 1000 SegmentsList EndingPadVal 1000 SegmentsList TrigEn 1 SegmentsList NextSegNum 0 Loops back to 1 da8150 CreateSegments 1 1 2 SegmentsList 4 3 2 11 da8150_Set_Atten not available Description This function call sets the amount of attenuation of the selected channel The step size is 0 5dB Typical insertion loss is 1 3dB Only the first 6 bits of the Atten_Value are used making the maximum amount of attenuation of 31 5dB insertion loss Declaration void da8150 Set Atten DWORD CardNum DWORD ChanNum DWORD Atten Value Parameters CardNum 1 lt CardNum lt 4 Chase Scientific Company 360 221 8455 21 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator ChanNum 0x01 0x02 0x04 0x08 for channels 1 2 3 and 4 DA8150 Atten Value 0 lt 63 Return Value none Example da8150 Set Atten 1 1 30 Sets Channel 1 Card 1 to 15dB attenuation 4 3 2 12 da8150_UpdateSegmentCmads Description This function call works that same as da8150_CreateSegments except that it does not download the data from system memory to card memory Only the sequence commands are are downloaded to the card s memory This saves time when the user wants to change the order of the segments because the segment data does not have to be updated The micro commands tell the memory sequencer
8. an array of these segments and pass the pointer PtrToSegmentsList to the function call After the appropriate waveform data has been downloaded to the DA8150 da8150_SetTriggerMode is enabled and the output begins O Chase Scientific Company 360 221 8455 12 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 4 SOFTWARE DRIVERS 4 1 Introduction Our primary objective in designing software drivers is to get the user up and running as quickly as possible While the details on individual function calls are listed in sections 4 2 xx the programming examples in section 4 3 x will show you how to include them into your programs Please note that function calls are the same whether you are calling them under Windows 95 98 or NT 4 2 Driver Installation 4 2 1 Windows 98 ME NT4 1 Do not install DA8150 card at this time 2 UnZip all files into directory C temp DA8150 create directories if needed You can move and or copy the files later to a directory of your choice 3 Run da8150_Register_Win98_ME_NT4 bat This will copy the Kernel driver windrvr6 sys to c lt windir gt system32 drivers directory and will register the Kernel driver in the Windows Registry so that it starts up each time the computer is rebooted 4 Power off computer Insert DA8150 card Power up computer 5 When OS asks for Driver File point to Chase_DA8150 inf If OS does not ask for file then check hardware configuration an
9. created as triggered will wait until external or soft trigger has occurred If segment was created not to be triggered then segment will follow previous segment in a continous fashion no trigger needed See da8150_CreateSegments for more information on multi segment functioning ExtPol 0 Trigger is initiated on RISING edge of TTL waveform 1 Trigger is initiated on FALLING edge of TTL waveform Return Value none Example da8150 SetTriggerMode 2 0 First segment will wait for trigger before running da8150_SetSoftTrigger Description Emulates external triggering in software Since this fuction actually toggles polarity of external input signal it is ORed with external signal Declaration void da8150 SetSoftTrigger DWORD CardNum Parameters none Return Value none Example da8150 SetSoftTrigger 1 Initiates software trigger on Card Number 1 Chase Scientific Company 360 221 8455 17 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 4 3 2 6 da8150_SetMarkers Description Sets up TTL output marker locations relative to waveform memory It is up to the user to place the markers correctly There is always a startup 64 sample leading pad when a waveform first outputs Please note that all segments have a 64 sample leading pad and a 64 sample trailing pad regardless of whether they repeat or not Resolution of the markers is 1 4 of the clock rate Also please note that t
10. how many times to loop when to jump etc gt VERY IMPORTANT NumPoints must be an even multiple of 64 e g 64 128 192 etc Declaration void da8150 UpdateSegmentCmds DWORD CardNum z DWORD ChanNum DWORD NumSegments PVOID PtrToSegmentsList Parameters CardNum 1 lt CardNum lt 4 ChanNum 0x01 0x02 0x04 0x08 for channels 1 2 3 and 4 DA8150 NumSegments Number of segment structures see below which user has defined and wants to use PtrToSegmentsList Pointer to user array with each element with structure defined as shown below typedef struct DWORD SegmentNum Current Segment Number PVOID SegmentPtr Pointer to current user segment gt elements of one diminsional array must be of type WORD DWORD NumPoints Number of points in segment must be even multiple of 64 DWORD NumLoops Number of times to repeat segment applies to next segment DWORD BeginPadVal Pad value for beginning of triggered segment DWORD EndingPadVal Pad value for ending of triggered segment DWORD TrigEn If gt 0 then wait for trigger before going to next segment DWORD NextSegNum Next segment to jump to after completion of current segment activities SegmentStruct Note that a segment is determined to be a triggered segment by the previous segment So setting Segment 5 as triggered will stop the sequence after Segment 5 has executed a
11. to after completion of current segment activities SegmentStruct O Chase Scientific Company 360 221 8455 20 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator Note that a segment is determined to be a triggered segment by the previous segment So setting Segment 5 as triggered will stop the sequence after Segment 5 has executed and will wait for trigger event before NextSegNum is started The first segment is a special case and is determined by default as a triggered type if SetTriggerMode is set to mode 2 The user in this case may use an external trigger or a soft trigger to initiate the output process Return Value none Example Create Array for SegmentList and Segments SegmentStruct SegmentsList 2 WORD Segment0 Data 64 WORD Segmentl Data 64 Create Segment 1 for i 0 i lt 64 itt Segment0O Data i ceil 2047 0 2047 cos 2 pi i 32 SegmentsList 0 SegmentNum 0 SegmentsList 0 SegmentPtr Segment0 Data SegmentsList 0 NumPoints 64 SegmentsList 0 NumLoops 0 SegmentsList 0 BeginPadVal 2047 SegmentsList 0 EndingPadVal 2047 SegmentsList 0 TrigEn 0 SegmentsList 0 NextSegNum 1 Create Segment 2 for i 0 i lt 64 itt Segmentl Data i ceil 2047 0 2047 cos 2 pi i 8 SegmentsList SegmentNum 1 SegmentsList SegmentPtr Segmentl Data
12. 0 MHz 75 MHz 37 5 MHz Resolution Multiples of 2 Stability T 0 C 70 C _ 20 ppm Memory Waveform Standard 512 KWords x 12 bits Channel optional 2M of User Segments 1 to 16K segments Segment Size Range 64 Words up to total memory in 64 Word increments minus pads Digital Outputs 1 TTL Markers Fclk 4 resolution Digital Inputs High Speed Clk input 1 MHz 50 ohm SMA input Please note that clock input is divided by 2 300 MHz Chase Scientific Company 360 221 8455 6 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator TTL Trigger input Used to initiate any memory segment programmed for that purpose ENVIRONMENTAL Temperature Operating 0 to 70 degrees C standard Non Operating 40 to 85 degrees C extended Humidity 5 to 95 non condensing Operating 20 to 80 Non Operating 5 to 95 HS V tSV DC 10 gt 500mA 2 5 Watts Typical using worst case waveform 3 3 V 3 3 VDC 10 gt 2 5 Amps 8 4 Watts Typical using worst case waveform H12V 12 VDC 10 gt 216mA 2 6 Watts Typical using worst case waveform 12V 12 VDC 10 gt 100mA 1 2 Watts Typical using worst case waveform Basic DA8150 1 Mid Sized PCI Card Chase Scientific Company 360 221 8455 7 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 1 5 Option Summary OPTION SUMMARY Option Name Description Opti
13. 150 MSPS PCI Arbitrary Waveform Generator 2 3 Board Drawing R25 RB7 TRIG_IN ls tt H Win COMA gt Lidl e Ji i E EEH N of ia EN erp Lis ACA sp we AS w Stl ru zs raf ui C26 E CI 19 Cisema wc lt 0000090100101 cl 7110114 u f Su71 113 TEETH TTT yo 200001100 10011 MOL 000000000 01 1001 at Ea sash nse le cir 129 cer Ul Ia oe u3 E 7 a an E uzm y Is rad CIN uaa AUREA DAI aT a Ll Ria CN gt e ug 3 ui eze UO z 7 AT o e Sp 20100 10081000101 aN ONI j 2028000000000 a 001 ones Lal TER ra a E Emcee R236 Ri u20 ros R228 25 pe ee tee u MARKER csa W a A E Lal Si a ef TET R20 TUTE TEE Uz U38 5 LL ion CHASE SCIENTIFIC COMPANY DAB150 12 512K PC REV B ent 01001110110 e208 nn gay 057 Figure 2 Board Layout 2 3 1 PCI Memory Allocation DA8150 on board memory is mapped automatically when a PCI 2 1 or newer motherboard powers up If the DA8150 has 4 MegaSamples of memory then the motherboard will allocate 8 Megabytes of memory Once installed the DA8150 software drivers will find the board or boards without the user changing any jumpers or worrying about addressing Unless the user manages to use up the entire memory available to the PCI motherboard usually 256
14. E DESCRIPTIO Distintas 10 DAINTRODUCON AA ds ad 10 2 2 SI A D EXE YN ES E A Ls EA A A A Ga vi 8 Sits SRS AT 10 D3 BOARD LIRA WING cal E N AEE TTE 11 23 AP CE Memory Allocation acces coset ties mierenia A Oe ba ros oa ak Len cud tods 11 STHEORY OF OPERA TION vecssdssssvvsecsstssevceticsisecsesccssdcevsvvect0isenveocssstsuvueddedssessesecdsdesveeess soeseeedsssdeuveevessdssusetbecsseseesccus e 12 JN INTRODUCTION Breen iia 12 3 2 DOWNLOADING AND OUTPUTTING USER DATA TO THE DA8 1 SO ooooccccnnnooonncccononannnocononananonoconananonocononn nono nononnnnnnncononannnannons 12 4 SOFTWARE DRIVERS wisssiscicsccscsiieteesact sisigeacsccassdioescaasedisexesesdedsenvesdsessedede coustaesceseesesdsessessesnnsveselseebedessessesasousesssadeoeeces 13 A MINTRODUCTION oy dai tati 13 A DUIDRIVER INSTALLATION ia A A E a oe ied 13 ADS Windows IS 1 MESINTA A sd A a oti tae SAN cael i es TR iam 13 ADD WARdOWS 20001 XP 3 AAA ais ea A aig TE ag et E aN se Sate aa Tae a Bk Dore 13 A 3 PUNCTIONS CALLS bess A A A Richest 14 dG Header Pile gor DEL ascot td a ate Sate Ba aa a 14 4 3 2 Function Call Descriptions USAQC cccccccccscssesseeseeseeseeseeseuseeeceseecesesseesessesseesecseeseeseseessesenesnesaesesesaesateneeas 15 ASA das 1504 GCountCards At isla Reto A 4 3 2 2 da8150_ Open cccceeeceeeeeereeeeteeseees 4 3 2 3 da8150_ ClOSe scccsssssssssssssssseesesseesssssees 4324448150 Seccion ras 4 3 2 5 da8150_SetTriggerMode 4 3 2 6 da8150_SetSoftTri
15. Installs Kernel driver for Win2000 XP UnRegister DA8150 Win2000 XP bat Uninstalls Kernel driver for Win2000 XP Register DA8150 Win98 ME NT4 bat Installs Kernel driver for Win98 ME NT4 0 UnRegister DA8150 Win98 ME NT4 bat Uninstalls Kernel driver for Win98 ME NT4 0 wdregl6 exe Called by Register DA8150 Win98 ME NT4 bat wdreg exe Called by Register DA8150 Win2000 XP bat windrvr6 inf Setup information file automatically called by above exe s da8150_ dll dll DLL for 98 ME NT4 2000 XP extern C declspec dllimport da8150_ dll_import h Header file for DLL da8150_d11 lib Library file for DLL in Borland C MS_LIB File da8150_dll lib Include in MSVC Project to compile DLL above da8150_dll_import h Header file for DLL da8150 exe Simple GUI to test DLL and Kernel drivers Chase_DA8150 inf Plug And Play file needed by 98 ME NT4 2000 XP for automatic hardware configuration windrvr6 sys Windows 98 ME NT4 2000 XP Driver copy this virtual driver to c lt windir gt system32 drivers if not automatically done so after running batch file Sample Waveform Files 64bit_sqwv txt 64 sample squarewave full scale 64K Data txt 64K sample of lorentzian pulses disk drive random noise txt Random noise END 1 3 2 Hardware Chase Scientific Company 360 221 8455 5 DA8150 User Manual 8 Ch 150 MSPS PCI
16. User Manual for DA8150 12 512K PCI DA8150 12 2M PCI Channel 150 MSPS 12 Bit PCI Arbitrary Waveform Generator Card Last Updated on 6 9 2009 CHASE SCIENTIFIC COMPANY P O Box 1487 Langley WA 98260 Tel 360 221 8455 Fax 360 221 8457 Email techsupport chase2000 com Web http www chase2000 com O Copyright 2004 2009 by Chase Scientific Company This manual the DA8150 card and the software drivers outlined in this document are copyrighted with all rights reserved Under the copyright laws the above mentioned may not be copied in whole or in part without the express written consent of Chase Scientific Company DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator TABLE OF CONTENTS IGENERAL INFORMATION si iissitscsccsssucscsstocevevecteccsscsusenssdsosessurcecsescdusasedsUencousscstestecescesdsteceevessunventssdsessasscecsesestescedessne 4 LA INTRODUCTION ii AA AAA A AA A A E ies 4 V2 REFERENCES a ees ied 4 TSS DERIVERABLES fe 3585 A A Sais EBS baa Ges CI a IVE ENB CBE TEESE ARE 5 DS LS OPLWATE oi de RARE Rae e AM Oe BRR le ate ota ects RAS he ote tll E Cd 5 IRES o LOANO E AEE AEE E TAARNA T A E OE E EE E A A T E BS E 5 123 3 VLE AAI tn 6 1 4 PRODUCT SPECIFICATION es es a h a a ae a a a a a T a 6 IS OPTION SUMMARY Ae EE E E A combs EE E AT E E E A E EAA 8 1 6 TECHNICAL SUPPORT SOFTWARE UPDATES aces eee dii E O AAA E OA EA aE ENE A E A RAEE e A 8 LITO WARRANTY dd A E E A a 9 2HARDWAR
17. ck input allows the use of precision clock sources such as the CG400 and also for synchronizing multiple cards to a master clock 1 2 References PCI Local Bus Specification Rev 2 1 June 1 1995 For more information on this document contact PCI Special Interest Group P O Box 14070 Portland OR 97214 Phone 800 433 5177 U S 503 797 4207 International FAX 503 234 6762 Chase Scientific Company 360 221 8455 4 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 1 3 Deliverables 1 3 1 Software The DA8150 comes with DLL drivers for Windows 98 ME NT4 2000 XP Software comes on a single 3 5 diskette Call Chase Scientific for for the latest information on drivers for other operating system platforms Windows drivers are provided as a Dynamic Link Library DLL which is compatible with most 32 bit windows based development software including Microsoft C C Borland C C and Borland Delphi This DLL uses the cdecl calling convention for maximum compatibility and was made using Borland C Builder It automatically provides the interface to the system drivers Windrvr6 sys for Windows 98 ME NT4 2000 XP Actual Listing of files on Diskette DIRECTORIES FILES BASE_DIR readme txt This file da8150_manual pdf Manual for DA8150 in PDF format da8150_ref drwg pdf Reference Drawing Connector Descriptions Register DA8150 Win2000 XP bat
18. d update if not listed properly under Jungo in Device Manager see below To check to see which driver is installed do the following gt Control Panel gt System gt Hardware gt Device Manager gt Jungo Chase_DA8150 Both this and WinDriver below should be present WinDriver If you see another driver in place of Chase DA8150 then right click the first device under Jungo and click properties Update the driver by pointing to Chase _DA8150 You may have to go through a series of menus 4 2 2 Windows 2000 XP 1 Do not install DA8150 card at this time O Chase Scientific Company 360 221 8455 13 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 2 UnZip all files into directory C temp DA8150 create directories if needed You can move and or copy the files later to a directory of your choice 3 Run da8150_ Register Win2000_XP bat This will copy the Kernel driver windrvr6 sys to c lt windir gt system32 drivers directory and will register the Kernel driver in the Windows Registry so that it starts up each time the computer is rebooted 4 Power off computer Insert DA8150 card Power up computer 5 When OS asks for Driver File point to Chase _DA8150 inf If OS does not ask for file then check hardware configuration and update if not listed properly under Jungo in Device Manager see below To check to see which driver is installed do the following gt Control Pan
19. el gt System gt Hardware gt Device Manager gt Jungo Chase_DA8150 Both this and WinDriver below should be present WinDriver If you see another driver in place of Chase DA8150 then right click the first device under Jungo and click properties Update the driver by pointing to Chase DA8150 You may have to go through a series of menus 4 3 Function Calls 4 3 1 C Header File for DLL USER ROUTINES define IMPORT extern C __declspec dllimport MPORT DWORD da8150_CountCards void MPORT DWORD da8150_Open DWORD CardNum MPORT DWORD da8150 Close DWORD CardNum MPORT void da8150_SetClock DWORD CardNum DWORD Frequency MPORT void da8150_SetTriggerMode DWORD CardNum BYTE Mode BYTE ExtPol MPORT void da8150_SetSoftTrigger DWORD CardNum MPORT void da8 50_SetMarkers DWORD CardNum DWORD PointAddr BYTE Nibl BYTE Nib2 MPORT void da8150 SetOffset DWORD CardNum DWORD ChanNum int Mode int Offset MPORT void da8150 CleanSingleSegmentArea DWORD CardNum DWORD NumPointsPerChan MPORT void da8150 CreateSingleSegment DWORD CardNum DWORD ChanNum DWORD NumPoints DWORD NumLoops PVOID UserArrayPtr DWORD TrigEn MPORT void da8150_CreateSegments DWORD CardNum DWORD ChanNum DWORD NumSegments PVOID UserSegmentsPtr Chase Sci
20. ent See below for data structures for creating user segments User must provide the correct array structures and pass a pointer to it along with how many sequencial segments are desired to be used After creating a complete waveform the user must call SetTriggerMode to turn on off output waveforms gt VERY IMPORTANT NumPoints must be an even multiple of 64 e g 64 128 192 etc Declaration void da8150 CreateSegments DWORD CardNum DWORD ChanNum DWORD NumSegments PVOID PtrToSegmentsList Parameters CardNum 1 lt CardNum lt 4 ChanNum 0x01 0x02 0x04 0x08 for channels 1 2 3 and 4 DA8150 NumSegments Number of segment structures see below which user has defined and wants to use PtrToSegmentsList Pointer to user array with each element with structure defined as shown below typedef struct DWORD SegmentNum Current Segment Number PVOID SegmentPtr Pointer to current user segment gt elements of one diminsional array must be of type WORD DWORD NumPoints Number of points in segment must be even multiple of 64 DWORD NumLoops Number of times to repeat segment applies to next segment DWORD BeginPadVal Pad value for beginning of triggered segment DWORD EndingPadVal Pad value for ending of triggered segment DWORD TrigEn If gt 0 then wait for trigger before going to next segment DWORD NextSegNum Next segment to jump
21. entific Company 360 221 8455 14 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator IMPORT void da8150 UpdateSegmentCmds DWORD CardNum DWORD ChanNum DWORD NumSegments PVOID PtrToSegmentsList 4 3 2 Function Call Descriptions Usage 4 3 2 1 da8150_CountCards Description Returns number of DA8150 cards present on computer Declaration DWORD da8150 CountCards void Parameters none Return Value Returns with an encoded value which represents the number of DA8150 Return Values 1 4 Number of DA8150 boards detected 0 Indicates that no boards were found but that drivers are working properly 13 Software drivers are not installed properly working correctly 13 Example DWORD Num_da8150 Boards da8150 Open amp 0x3 4 3 2 2 da8150_Open Description Loads the DA8150 software drivers and sets the DA8150 board to its default state Declaration DWORD da8150 Open DWORD CardNum Parameters CardNum 1 lt CardNum lt 4 Return Value Returns with error code A 0 means everything is fine See below for details for other values Return Values 0 Opened Windriver Successfully and DA8150 Card Found Successfully 1 Opened Windriver Successfully but NO DA8150 CARDS FOUND 2 Opened Windriver Successfully Card found but unable to open 3 Opened Windriver Successfully Board already open 6 Card number exceeds number of cards 13 FAILED TO OPEN Windriver Kernel Driver Example
22. for DWORD i 0 i lt MemoryDepth i TempArray i ceil 2047 0 2047 cos 2 pi i 64 Chase Scientific Company 360 221 8455 23 DA8150 User Manual O S e LEAN MEMORY 8 Ch 150 MSPS PCI Arbitrary Waveform Generator da8150 CleanSingleSegmentArea 1 MemoryDepth REATE SINGLE SEGMENT WITH INFINITE LOOP da8150 CreateSingleSegment 1 1 MemoryDepth 0 TempArray 0 UTPUT DATA OSE DRIVER da8150 SetTriggerMode 1 1 0 Enables out of data on brd 1 HUT DOWN OUTPUT da8150 SetTriggerMode 1 0 0 Use this to shut down output on brd 1 if NumCards gt 0 da8150 Close 1 Closes brd 1 Header File for Reference ifndef da8150_dl1H define da8150_dl1H define IMPORT extern C _ declspec dllimport endif PORT PORT void da81 PORT void da81 PORT void da81 PORT void da81 PORT void da81 PORT void da81 PORT void da81 PORT void da81 PORT DWORD da8150 CountCards void PORT DWORD da8150 Open DWORD CardNum PORT DWORD da8150 Close DWORD CardNum 50 SetClock DWORD CardNum DWORD Frequency a 50 SetTriggerMode DWORD CardNum BYTE Mode BYT 50 SetSoftTrigger DWORD CardNum 50_SetMarkers DWORD CardNum DWORD PointAddr BYTE Nibl BYTE Nib2 50 SetOffset DWORD CardNum DWORD ChanNum int Mode int Offset Ex
23. ggerl ooommm 43 277 da81 50 SAMA AA TA AA An SE 4 3 2 8 da8150_SetOffset Not Available at this time ccccceceeesceceesceseeseeseeseesecsecsececeseeseeseesecaecaecaeseceaceeeeaeeaeeaeeatenss 4 3 2 9 da8150_CleanSingleSegmentArea 2M Version Only 4 3 2 10da8 150 CreateSingleSegment cscscisccsccccescosscececescessceastestscccedcotconsuuceteonconcdedondescescancdecbecbeabessentdvacvecedeocesdeddebaesrehuadenade 4 3 2 1 1 das150 Create cemento e ai dd 4 3 2 12 da8150_Set_Atten not available 4 3 2 13 da8150 UpdateSegmentCMds Deivis Ad cris L A PROGRAMMING EXAMPLES ii aio seais 4 4 1Using Windows 95 98 NT DLE creissien iiiaio ii iini a EEEE ER S E eies S MISCELLANEOUS retetei inn aae aoe re TESEV aO EED ra E LOEO K a EES T ES OL EASES e EE EEEE ia sia 25 CALIBRATION AS A AA A E 25 SL IVIAINTENANGE coso tallas 25 5 3 CHANGES CORRECTIONS TO THIS MANUALL sccccescccesssscesssceccescecessseccssseecesscecesssecessusecessescesssecessseccssesessssecesseecestsecestseecenaes 25 O Chase Scientific Company 360 221 8455 2 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator ILLUSTRATIONS TABLES FIGURE 1 BLOCK DIAGRA Moenconnconconnonnocnnonnconnonanonncnnnonnconncnnonnnonnconccanconnonnconnoonccnncon con coca non coca non vesvi ostsee sissies soss ss 10 FIGURE 2 BOARD LAYOUT conocnncccoononnoonncnnconnonnconnonnconccnnnonnoonnonconanoncccnnonoonnonnconnonnconnoon con noon con roca ncnnccn s
24. his function call must be called after creating any segments since da8150_ CreateSegments and da8150_CreateSingleSegment will overwrite the markers with zeros if done in the reverse order Declaration void da8150 SetMarkers DWORD CardNum DWORD PointAddr BYTE Nibl BYTE Nib2 Parameters CardNum 1 lt CardNum lt 4 PointAddr RAM address location Minimum resolution is 4 clock samples Nibl 0 lt Nibl lt 0xF see board layout for connector information Nib2 0 lt Nib2 lt 0xF Return Value None Example da8150 SetMarkers 1 64 OxF OxF Place marker on all bits at beginning of 1st data segement of board number 1 4 3 2 7 da8150_SetOffset Not Available at this time Description Sets output voltage offsets on Normal and Complementary outputs on primary DA8150 board Declaration void da8150 SetOffset DWORD CardNum DWORD ChanNum int Mode int Offset Parameters CardNum 1 lt CardNum lt 4 ChanNum 0x01 0x02 0x04 0x08 for channels 1 2 3 and 4 Mode 0 Adjust offset on Complimentary Output 1 Adjust offset on Normal Output 2 Adjust both at same time Offset 250 lt Offset lt 250 Resolution 1 Units are in millivolts DC Return Value none Example da8150_SetOffset 1 0x0F 2 22 Sets both output DC offset to 22mV for card 1 all channels O Chase Scientific Company 360 221 8455 18 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform
25. imes to repeat the waveform VumLoops a pointer variable pointing to the user array containing the data UserArrayPtr and finally whether the segment will be self triggered or triggered by an external signal TrigEn The ChanNum parameter should be set to a bit mask for the channels to set with this call 1 0x01 2 0x02 3 0x04 4 0x08 Downloading Multiple Linked Waveform Segments is performed by calling daS8150_CreateSegments DWORD CardNum DWORD ChanNum DWORD NumSegments PVOID PtrToSegmentsList This function call requires the user to create a structure containing all the critical information on the segments that the user wants to download The actual structure for each segment looks like the following typedef struct DWORD SegmentNum Current Segment Number PVOID SegmentPtr Pointer to current user segment gt elements of one diminsional array must be of type WORD DWORD NumPoints Number of points in segment must be even multiple of 64 DWORD NumLoops Number of times to repeat segment applies to next segment DWORD BeginPadVal Pad value for beginning of triggered segment DWORD EndingPadVal Pad value for ending of triggered segment DWORD TrigEn If gt 0 then wait for trigger before going to next segment DWORD NextSegNum Next segment to jump to after completion of current segment activities SegmentStruct The user must create
26. itation or incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific rights You may also have other rights that vary from state to state Chase Scientific warrants products sold only in the USA and Canada In countries other than the USA each distributor warrants the Chase Scientific products that it sells NOTICE Chase Scientific reserves the right to make changes and or improvements in the product s described in this manual at any time without notice Chase Scientific Company 360 221 8455 9 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 2 HARDWARE DESCRIPTION 2 1 Introduction The DA8150 hardware consists of the following major connections e 4 300 MSPS 12 bit analog outputs SMA e 1 TTL clock inputs 830MHz 125MHz 1 SMA s OPTIONAL 100MHz 1 0GS sec e 1 TTL Trigger input SMA e 1 TTL Outputs Markers SMA 2 2 Block Diagram DA8150 8 Chan 150 MHz Abitrary Waveform Generator PCI Version 8 12 BIT 150 MHZ 2Vpp ANALOG SMA TTL Trigger Input DIA OUTPUT BUFFER 8x AOUT Connector CONVERTERS offset control all SMA 500 K Mem ch 150 MHz EXTERNAL 4 MEG Total Reference Clock CLOCKINPUT PECL Sine binary divisible SMA CLOCK 1 TTL Marker all SMA PCITARGET INTERFACE CONTROLLER Figure 1 Block Diagram Chase Scientific Company 360 221 8455 10 DA8150 User Manual 8 Ch
27. itos usses s ssis 11 da8150_manual_20906094 odt was created on 6 9 04 and last modified on 6 9 2009 O Chase Scientific Company 360 221 8455 3 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 1 GENERAL INFORMATION 1 1 Introduction The DA8150 is an 8 Channel 12 bit 150 MegaSample second Arbitrary Waveform Generator on a single mid sized PCI card It comes standard with following general features Programmable Clock Frequency from 150 MSPS 75 MSPS and 37 5 MSPS 12 bit Vertical Resolution TTL Output Marker Programmable Segment Size from 64 Words to full memory Programmable Number of Segments up to 32K External TTL clock and External TTL trigger input The outputs consist of 4 50 ohm SMA outputs Each output has independant data but uses a common clock Also to provide maximum flexibilty and performance to the user the outputs come unfiltered although the output buffer BW is approximately 100 MHz at full scale An appropriate low pass filter is generally added in line for a particular application and can be bought from companies like Mini Circuits or can be ordered and or custom made directly from Chase Scientific The DA8150 has TTL input triggering capability that allows a segment or segments of data to be output only after a trigger is present Gating is also available which will start and stop the data from being output on high or low TTL levels respectively An external TTL clo
28. nd will wait for trigger event before NextSegNum is started Chase Scientific Company 360 221 8455 22 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator The first segment is a special case and is determined by default as a triggered type if SetTriggerMode is set to mode 2 The user in this case may use an external trigger or a soft trigger to initiate the output process Return Value none Example See da8150_CreateSegments above for example 4 4 Programming Examples 4 4 1 Using Windows 95 98 NT DLL Example Program DA8150 DLL C Example Test File 32 bit Borland C 5 0 Web site http www chase2000 cm Email support chase2000 com C Chase Scientific 2004 include lt stdio h gt include lt stdlib h gt include lt string h gt include lt math h gt include da8150 dll import h pragma link da8150 dl1 1ib int main int argc char argv WORD TempArray 1048575 int NumCards 0 DWORD MemoryDepth 1024 double pi 3 14159265358979 Check to see if card available NumCards da8150 CountCards Counts number of DA8150 cards OPEN DRIVER if NumCards gt 0 then DWORD OpenErrorCode da8150 Open 1 Opens card 1 else exit 0 Else exits INITIALIZE BOARD da8150 SetTriggerMode 1 0 0 VERY IMPORTANT PUT WAVEFORM INTO ARRAY
29. not be visible depending on whether the segment is triggered or not See da8150_CreateSegments for generating multipled segments Declaration void da8150 CreateSingleSegment DWORD CardNum DWORD ChanNum DWORD NumPoints DWORD NumLoops PVOID UserArrayPtr DWORD TrigEn Parameters CardNum 1 lt CardNum lt 4 ChanNum 0x01 0x02 0x04 0x08 for channels 1 2 3 and 4 DA8150 NumPoints 0 lt NumPoints lt MaxMem 64 Must be in multiples of 64 NumLoops Set to 0 other values not available 0 Continuous UserArrayPtr Pointer to user array of WORD TrigEn High enables external trigger must also set da8150_SetTriggerMode to triggered Chase Scientific Company 360 221 8455 19 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator Return Value None Example da8150 CreateSingleSegment 1 Card Number 1 2 Channel 2 128 128 Words contained 0 Loops continuously UserArrayPointer Pointer to user data 0 Externa trigger not enabled 4 3 2 10 da8150_ CreateSegments Description Creates any number of segments up to the size of memory All segments have 64 samples of beginning pad and 64 samples of trailing pad which the user cannot access except to determine the default levels However when repeating or jumping in non triggered mode the user will not see the pad fields Each segment can be programmed for repeat counts up to 16K and can jump to any other segm
30. on Programmable Attenuator Card Option 2 Custom Gain Setting Option 3 CG400 PCI Clock Card 1 6 Technical Support Software Updates For technical support Phone 360 221 8455 Fax 360 221 8457 Email techsupport chase2000 com Mail Chase Scientific Company P O Box 1487 Langley WA 98260 For software updates Email techsupport chase2000 com Web http www chase2000 com O Chase Scientific Company 360 221 8455 8 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 1 7 Warranty Chase Scientific Company hereafter called Chase Scientific warrants to the original purchaser that it s DA8150 and the component parts thereof will be free from defects in workmanship and materials for a period of ONE YEAR from the data of purchase Chase Scientific will without charge repair or replace at its option defective or component parts upon delivery to Chase Scientific s service department within the warranty period accompanied by proof of purchase date in the form of a sales receipt EXCLUSIONS This warranty does not apply in the event of misuse or abuse of the product or as a result of unauthorized alterations or repairs It is void if the serial number is altered defaced or removed Chase Scientific shall not be liable for any consequential damages including without limitation damages resulting from loss of use Some states do not allow lim
31. tPol void da8150_CleanSingleSegmentArea DWORD CardNum DWORD NumPointsPerChan 2M Only PORT void da81 150 CreateSingleSegment DWORD CardNum DWORD ChanNum DWORD NumPoints DWORD NumLoops PVOID UserArrayPtr DWORD TrigEn 150 CreateSegments DWORD CardNum DWORD ChanNum DWORD NumSegments PVOID PtrToSegmentsList 150 UpdateSegmentCmds DWORD CardNum DWORD ChanNum DWORD NumSegments PVOID PtrToSegmentsList 150 Set Atten DWORD CardNum DWORD ChanNum DWORD Atten Value O Chase Scientific Company 360 221 8455 24 DA8150 User Manual 8 Ch 150 MSPS PCI Arbitrary Waveform Generator 5 MISCELLANEOUS 5 1 Calibration The DA8150 has no user feature to calibrate The gains and offsets are calibrated at the factory to be within specifications at 25 C and nominal voltages 5 2 Maintenance No maintenance is required However a yearly calibration is recommended if the user desires to maintain the DA8150 specified accuracy Call factory for maintainable and or extended warranty information 5 3 Changes Corrections to this manual Date Description 06 09 2004 First release 11 02 2004 Added programmable attenuator function call preliminary changes for DA8150 05 01 2009 Saved to Open Document File format using Open Office 2 0 05 08 2009 Updated function definitions to include ChanNum argument 06 09 2009 Added da8150 CleanSingleSegmentArea for DA8150 12 2M PCI ONLY

Download Pdf Manuals

image

Related Search

Related Contents

  SRK-MPPC Series User Manual  

Copyright © All rights reserved.
Failed to retrieve file