background image

www.omega.com  

e-mail: [email protected]

User’s Guide

OME-PCI-1602 

PCI Data Acquisition Board
Windows Software Manual

Shop online at

Содержание OME-PCI-1602

Страница 1: ...www omega com e mail info omega com User sGuide OME PCI 1602 PCI Data Acquisition Board Windows Software Manual Shop online at ...

Страница 2: ...ncourt France TEL 33 0 1 61 37 29 00 FAX 33 0 1 30 57 54 27 Toll Free in France 0800 466 342 e mail sales omega fr Germany Austria Daimlerstrasse 26 D 75392 Deckenpfronn Germany TEL 49 0 7056 9398 0 FAX 49 0 7056 9398 29 Toll Free in Germany 0800 639 7678 e mail info omega de United Kingdom One Omega Drive River Bend Technology Centre ISO 9002 Certified Northbank Irlam Manchester M44 5BD United Ki...

Страница 3: ...P1602_ShortSub2 32 3 2 3 P1602_GetDllVersion 33 3 2 4 P1602_GetDriverVersion 33 3 3 THE M_FUNCTIONS 34 3 3 1 P1602_M_FUN_1 34 3 3 2 P1602_M_FUN_2 35 3 3 3 P1602_M_FUN_3 36 3 4 THE DIO FUNCTIONS 38 3 4 1 P1602_Di 38 3 4 2 P1602_Do 38 3 5 THE D A FUNCTIONS 39 3 5 1 P1602_Da 39 3 6 THE A D FIXED MODE FUNCTIONS 40 3 6 1 P1602_SetChannelConfig 40 3 6 2 P1602_AdPolling 40 3 6 3 P1602_AdsPolling 41 3 6 4...

Страница 4: ...52 3 9 2 P1602_FunA_ReadStatus 54 3 9 3 P1602_FunA_Stop 55 3 9 4 P1602_FunA_Get 55 3 10 THE SINGLE BOARD BATCH CAPTURE 56 3 10 1 P1602_FunB_Start 56 3 10 2 P1602_FunB_ReadStatus 57 3 10 3 P1602_FunB_Stop 58 3 10 4 P1602_FunB_Get 58 THE CONTINUOUS CAPTURE FUNCTIONS 59 3 10 5 P1602_Card0_StartScan 59 3 10 6 P1602_Card0_ReadStatus 60 3 10 7 P1602_Card0_Stop 60 3 10 8 P1602_Card1_StartScan 61 3 10 9 P...

Страница 5: ...ns These DLLs are standard Win32 DLLs 32 bits and can be called from Visual C C BC Visual BASIC Delphi BCB and LabVIEW These DLLs can perform a variety of data acquisition operations including z Get software version z Initialization z Digital Input Output z A D conversion z D A conversion 5 ...

Страница 6: ...are installation The software is designed to support the entire OME family of data acquisition hardware so during the installation you will be asked to specify your particular hardware OME PCI 1602 board in this case During the installation process you will also be prompted to enter the operating system you will be using After installation the following folders will be created on your computer 6 ...

Страница 7: ...es Manual Folder Contains hardware user manuals software user manuals and technical notes Diag Folder Contains card diagnostic programs Inf Folder Contains tech notes and INF file for the plug and play installation only available for operating systems that support plug and play 1 2 Reference Please refer to the following user manuals for more information CallDll pdf Calling the DLL with VB5 VC5 De...

Страница 8: ...cyComputeError 6 define HighAlarm 7 define LowAlarm 8 define AdPollingTimeOut 9 define AlarmTypeError 10 define FindBoardError 11 define AdChannelError 12 define DaChannelError 13 define InvalidDelay 14 define DelayTimeOut 15 define InvalidData 16 define FifoOverflow 17 define TimeOut 18 define ExceedBoardNumber 19 define NotFoundBoard 20 define OpenError 21 define FindTwoBoardError 22 define Thre...

Страница 9: ...litude WORD wAdClock WORD wAdNumber WORD wAdConfig float fAdBuf float fLowAlarm float fHighAlarm EXPORTS WORD CALLBACK P1602_M_FUN_2 WORD wDaNumber WORD wDaWave WORD wDaBuf WORD wAdClock WORD wAdNumber WORD wAdConfig WORD wAdBuf EXPORTS WORD CALLBACK P1602_M_FUN_3 WORD wDaFrequency WORD wDaWave float fDaAmplitude WORD wAdClock WORD wAdNumber WORD wChannelStatus WORD wAdConfig float fAdBuf float fL...

Страница 10: ...gicScanFinish WORD wStatus DWORD dwLowAlarm DWORD dwHighAlarm EXPORTS WORD CALLBACK P1602_StopMagicScan EXPORTS WORD CALLBACK P1602_DelayUs WORD wDelayUs EXPORTS WORD CALLBACK P1602_Card0_StartScan WORD wSampleRate WORD wChannelStatus WORD wChannelConfig WORD wCount EXPORTS WORD CALLBACK P1602_Card0_ReadStatus WORD wBuf WORD wBuf2 DWORD dwP1 DWORD dwP2 WORD wStatus EXPORTS void CALLBACK P1602_Card...

Страница 11: ...lPhys DWORD dwTotalPageFile DWORD dwAvailPageFile DWORD dwTotalVirtual DWORD dwAvailVirtual EXPORTS WORD CALLBACK P1602_AllocateMemory HGLOBAL hMem WORD Buffer DWORD dwSize EXPORTS WORD CALLBACK P1602_FreeMemory HGLOBAL hMem EXPORTS WORD CALLBACK P1602_StartScanPostTrg WORD wSampleRateDiv DWORD dwNum SHORT nPriority EXPORTS WORD CALLBACK P1602_StartScanPreTrg WORD wSampleRateDiv DWORD dwNum SHORT ...

Страница 12: ...rm 8 Global Const AdPollingTimeOut 9 Global Const AlarmTypeError 10 Global Const FindBoardError 11 Global Const AdChannelError 12 Global Const DaChannelError 13 Global Const InvalidDelay 14 Global Const DelayTimeOut 15 Global Const InvalidData 16 Global Const FifoOverflow 17 Global Const TimeOut 18 Global Const ExceedBoardNumber 19 Global Const NotFoundBoard 20 Global Const OpenError 21 Global Con...

Страница 13: ...ByVal wAdConfig As Integer wAdBuf As Integer As Integer Declare Function P1602_M_FUN_3 Lib P1602 dll ByVal wDaFrequency As Integer ByVal wDaWave As Integer ByVal fDaAmplitude As Single ByVal wAdClock As Integer ByVal wAdNumber As Integer wChannelStatus As Integer wAdConfig As Integer fAdBuf As Single ByVal fLowAlarm As Single ByVal fHighAlarm As Single As Integer Declare Function P1602_M_FUN_4 Lib...

Страница 14: ..._Start Lib P1602 dll ByVal wClockDiv As Integer wChannel As Integer wConfig As Integer Buffer As Integer ByVal dwMaxCount As Long ByVal nPriority As Integer As Integer Declare Function P1602_FunB_ReadStatus Lib P1602 dll As Integer Declare Function P1602_FunB_Stop Lib P1602 dll As Integer Declare Function P1602_FunB_Get Lib P1602 dll P0 As Long As Integer Declare Function P1602_Card0_StartScan Lib...

Страница 15: ...Buf1 10000 As Integer Global Buf2 10000 As Integer Global Card0Buf0 10000 As Integer Global Card0Buf1 10000 As Integer Global Card1Buf0 10000 As Integer Global Card1Buf1 10000 As Integer Global AdNumber As Integer Global CR Global LF 15 ...

Страница 16: ...r 3 M_FunExecError 4 ConfigCodeError 5 FrequencyComputeError 6 HighAlarm 7 LowAlarm 8 AdPollingTimeOut 9 AlarmTypeError 10 FindBoardError 11 AdChannelError 12 DaChannelError 13 InvalidDelay 14 DelayTimeOut 15 InvalidData 16 FifoOverflow 17 TimeOut 18 ExceedBoardNumber 19 NotFoundBoard 20 OpenError 21 FindTwoBoardError 22 ThreadCreateError 23 StopError 24 16 ...

Страница 17: ...ichBoardActive WORD stdCall Function of M_Fun series function P1602_M_FUN_1 wDaFrequency WORD wDaWave WORD fDaAmplitude Single wAdClock WORD wAdNumber WORD wAdConfig WORD fAdBuf PSingle fLowAlarm Single fHighAlarm Single WORD stdCall function P1602_M_FUN_2 wDaNumber WORD wDaWave WORD wDaBuf PWord wAdClock WORD wAdNumber WORD wAdConfig WORD wAdBuf PWord WORD stdCall function P1602_M_FUN_3 wDaFreque...

Страница 18: ...wLowAlarm LongInt var dwHighAlarm LongInt stdCall function P1602_AddToScan wAdChannel WORD wConfig WORD wAverage WORD wLowAlarm WORD wHighAlarm WORD wAlarmType WORD WORD stdCall function P1602_SaveScan wAdChannel WORD wBuf PWord WORD stdCall procedure P1602_WaitMagicScanFinish var wStatus WORD var dwLowAlarm LongInt var dwHighAlarm LongInt stdCall function P1602_StopMagicScan WORD stdCall function...

Страница 19: ...FunA_ReadStatus WORD stdCall function P1602_FunA_Stop WORD stdCall function P1602_FunA_Get var P0 LongInt var P1 LongInt WORD stdCall function P1602_FunB_Start wClock0Div WORD wChannel0 PWord wConfig0 PWord Buffer0 PWord dwMaxCount0 LongInt nPriority SmallInt WORD stdCall function P1602_FunB_ReadStatus WORD stdCall function P1602_FunB_Stop WORD stdCall function P1602_FunB_Get var P0 LongInt WORD s...

Страница 20: ...me P1602_Do function P1602_Di external P1602 DLL name P1602_Di function P1602_Da external P1602 DLL name P1602_Da function P1602_SetChannelConfig external P1602 DLL name P1602_SetChannelConfig function P1602_AdPolling external P1602 DLL name P1602_AdPolling function P1602_AdsPolling external P1602 DLL name P1602_AdsPolling function P1602_AdsPacer external P1602 DLL name P1602_AdsPacer function P16...

Страница 21: ..._ReadStatus procedure P1602_Card1_Stop external P1602 DLL name P1602_Card1_Stop function P1602_FunA_Start external P1602 DLL name P1602_FunA_Start function P1602_FunA_ReadStatus external P1602 DLL name P1602_FunA_ReadStatus function P1602_FunA_Stop external P1602 DLL name P1602_FunA_Stop function P1602_FunA_Get external P1602 DLL name P1602_FunA_Get function P1602_FunB_Start external P1602 DLL nam...

Страница 22: ... Win VIEW MFUN1 VI Æ Driver VI NOTE 1 Tested under Windows 95 98 NT and LabVIEW 4 0 2 The demo1 VI will call MFUN1 VI to perform M_Functions The M_Functions can send out an arbitrary waveform to the D A output port and perform A D input at the same time If you connect D A channel_0 to A D channel_0 the M_Functions can measure the D A output back The output response is shown in Fig 8 and the connec...

Страница 23: ...Fig 9 The connection diagram for DEMO1 VI call MFUN1 VI Fig 10 The connection diagram for MFUN1 VI call DLL M_FUN_1 23 ...

Страница 24: ... wFlag 0 wAddrCtrl int iLine DWORD dwDaNum 90 dwAdClk 24 WORD wTotalBoard wInitialCode void READ_CMD char short ASCII_TO_HEX char void TEST_CMD HWND int int int int LRESULT CALLBACK WndProc HWND UINT WPARAM LPARAM void SHOW_WAVE HWND hwnd int WINAPI WinMain HINSTANCE hInstance HINSTANCE hPrevInstance PSTR szCmdLine int iCmdShow static char szAppName P1602 Demo1 HWND hwnd MSG msg WNDCLASSEX wndclas...

Страница 25: ...t i switch iMsg case WM_CREATE window initial NOTICE call P1602_DriverInit to initialize the driver Initialize the device driver and return the board number in the PC wInitialCode P1602_DriverInit wTotalBoard if wInitialCode NoError MessageBox hwnd No P1602 card in this system P1602 Card Error MB_OK hdc GetDC hwnd SelectObject hdc GetStockObject SYSTEM_FIXED_FONT GetTextMetrics hdc tm cxChar tm tm...

Страница 26: ...nd NULL TRUE wFlag 0 break wFlag 1 cBuf xCaret 0 if xCaret 0 xCaret 0 yCaret READ_CMD cBuf TEST_CMD hwnd xCaret cxChar yCaret cyChar xCaret 0 yCaret iLine if yCaret cyBuffer InvalidRect hwnd NULL TRUE break case x1B escape pressed InvalidRect hwnd NULL TRUE xCaret yCaret 0 break default other KEY pressed cBuf xCaret char wParam HideCaret hwnd hdc GetDC hwnd SelectObject hdc GetStockObject SYSTEM_F...

Страница 27: ..._CMD char szCmd DWORD nT1 nT2 nT3 nT4 nT5 if szCmd 0 0 return only press Enter nT1 ASCII_TO_HEX szCmd 0 HEX format nT2 ASCII_TO_HEX szCmd 1 nT3 ASCII_TO_HEX szCmd 2 nT4 ASCII_TO_HEX szCmd 3 nT5 ASCII_TO_HEX szCmd 4 dwDaNum nT1 10000 nT2 1000 nT3 100 nT4 10 nT5 nT1 ASCII_TO_HEX szCmd 6 HEX format nT2 ASCII_TO_HEX szCmd 7 nT3 ASCII_TO_HEX szCmd 8 nT4 ASCII_TO_HEX szCmd 9 dwAdClk DWORD nT1 1000 nT2 1...

Страница 28: ...k z if Æ accept current setting of wDaFreq and wAdClk Enter key 0 The steps to compile and link the demo program are described in Sec 1 3 All demo programs share similar setup code as above The separate testing functions are placed in TEST_CMD Only the code that would be placed in TEST_CMD is shown in subsequent listings in this manual 28 ...

Страница 29: ...apture functions z The Plug Play functions z Other functions The functions of the fixed channel mode are as follows 1 P1602_SetChannelConfig 2 P1602_AdPoling 3 P1602_AdsPolling 4 P1602_AdsPacer The functions of the MagicScan mode are as follows 1 P1602_ClearScan 2 P1602_StartScan 3 P1602_AddToScan 4 P1602_SaveScan 5 P1602_ReadMagicScanResult data in 16 bits HEX format data in float format The func...

Страница 30: ...as follows 1 P1602_FunB_Start 2 P1602_FunB_ReadStatus 3 P1602_FunB_Stop 4 P1602_FunB_Get The continuous capture functions are as following 1 P1602_Card0_StartScan 2 P1602_Card0_ReadStatus 3 P1602_Card0_StopScan 4 P1602_Card1_StartScan 5 P1602_Card1_ReadStatus 6 P1602_Card1_StopScan Group 1 for card_1 continuous capture function Group 0 for card_0 continuous capture function 30 ...

Страница 31: ...ing Time Configuration Code Bipolar 10V 1 10 us 0 Bipolar 5V 2 10 us 1 Bipolar 2 5V 4 10 us 2 Bipolar 1 25V 8 10 us 3 OME PCI 1602F Configuration Code Table Bipolar Unipolar Input Signal Range Gain Settling Time Configuration Code Bipolar 10V 1 5 us 0 Bipolar 5V 2 5 us 1 Bipolar 2 5V 4 5 us 2 Bipolar 1 25V 8 5 us 3 31 ...

Страница 32: ...nput Parameter fA 4 bytes floating point value fB 4 bytes floating point value z Return Value return fA fB z Demo Program DEMO1 C 3 2 2 P1602_ShortSub2 z Description Calculates C A B in SHORT formats SHORT 16 bits signed number This function is provided to test DLL linkage Syntax short P1602_ShortSub2 Short nA Short nB z Input Parameter nA 16 bits value nB 16 bits value z Return Value return nA nB...

Страница 33: ... the software version number of Nappci VxD for Windows 95 98 or Napwnt SYS for Windows NT z Syntax WORD P1602_GetDriverVersion WORD wDriverVersion z Input Parameter wDriverVersion address of wDriverVersion wDriverVersion 0x200 Æ Version 2 0 z Return Value NoError OK DriverHandleError the NAPPCI VxD open error for Windows 95 98 the Napwnt SYS open error for Windows NT DriverCallError call NAPPCI Vx...

Страница 34: ...ampling clock 8000000 wAdClock samples sec wAdNumber Number of A D data to be read wAdConfig A D input range configuration code Refer to Section 3 1 Configuration Table fAdBuf the starting address of fAdBuf which store the A D data fLowAlarm low alarm limit if fAdBuf fLowAlarm Æ LowAlarm fHighAlarm high alarm limit if fAdBuf fHighAlarm Æ HighAlarm z Return Value NoError OK DriverHandleError Invali...

Страница 35: ...er to Section 3 1 Configuration Table wAdBuf the starting address of fAdBuf which store the A D data z Return Value NoError OK DriverHandleError Invalid VxD SYS handle DriverCallError VxD SYS function call error ExceedBoardNumber invalid board number FindBoardError no OME PCI 1602 board AdControllererror embedded controller handshake error M_FunExecError M_Functions return code error ConfigCodeErr...

Страница 36: ...ut fDaAmplitude Amplitude of D A output NOTE the hardware jumper J1 must be set to 10V wAdClock A D sampling clock 8000000 wAdClock samples sec wAdNumber Number of A D samples to be read wAdChannel 1 scan 0 no scan wAdConfig configuration code Refer to Section 3 1 Configuration Table fAdBuf the starting address of fAdBuf which store the A D data fLowAlarm low alarm limit if fAdBuf fLowAlarm Æ LowA...

Страница 37: ... Demo Program DEMO9 C 37 ...

Страница 38: ...K FindBoardError cannot find the OME PCI 1602 board ExceedBoardNumber invalid board number z Demo Program DEMO1 C 3 4 2 P1602_Do z Description This function will write the 16 bit data to the digital output D O port This function will refer to the current active OME PCI 1602 board Use the P1602_ActiveBoard to select the active board z Syntax WORD P1602_Do WORD wDo z Input Parameter wDo the 16 bits ...

Страница 39: ...z Input Parameter wChannel 0 for channel_0 D A 1 for channel_1 D A wDaVal 12 bit data sent to D A port 0 minimum and 4095 maximum The D A output can be 5V or 10V depending on the setting hardware jumper JP1 The software cannot detect the state of JP1 the user must be aware of its state z Return Value NoError OK FindBoardError cannot find the OME PCI 1602 board ExceedBoardNumber invalid board numbe...

Страница 40: ...CI 1602 board AdControllerError MagicScan controller hardware handshake error z Demo Program DEMO1 C 3 6 2 P1602_AdPolling z Description This function will perform a single A D conversion by software polling The P1602_SetChannelConfig function can be used to change channel or configuration code used by the P1602_AdPolling function This function will refer to the current active OME PCI 1602 board U...

Страница 41: ...e P1602_ActiveBoard to select the active board z Syntax WORD P1602_AdsPolling float fAdVal WORD wNum z Input Parameter fAdVal starting address of A D data buffer 16 bit the data will be automatically converted to volts based on the setting of the P1602_SetChannelConfig function wNum number of A D conversions to be performed Return Value NoError OK ExceedBoardNumber invalid board number FindBoardEr...

Страница 42: ... precisely reconstructed This function will refer to the current active OME PCI 1602 board Use the P1602_ActiveBoard to select the active board z Syntax WORD P1602_AdsPacer float fAdVal WORD wNum WORD wSample z Input Parameter fAdVal starting address of the A D data buffer 16 bit the data will be automatically converted to volts based on the setting of the P1602_SetChannelConfig function wNum numb...

Страница 43: ...the current active OME PCI 1602 board Use the P1602_ActiveBoard to select the active board z Syntax WORD P1602_ClearScan z Input Parameter void z Return Value NoError OK ExceedBoardNumber invalid board number FindBoardError cannot find the OME PCI 1602 board AdControllerError MagicScan controller hardware handshake error z Demo Program DEMO11 C 43 ...

Страница 44: ...n will refer to the current active OME PCI 1602 board Use the P1602_ActiveBoard to select the active board z Syntax WORD P1602_StartScan WORD wSampleRate WORD wNum z Input Parameter wSampleRate A D sample rate 8M wSampleRate wSampleRate 24 Æ sample rate 8M 24 330K wNum Number of MagicScan cycles to perform z Return Value NoError OK ExceedBoardNumber invalid board number FindBoardError cannot find ...

Страница 45: ...id z Demo Program DEMO11 C wStatus 0x00 Æ MagicScan initial condition idle state 0x01 Æ MagicScan operation started 0x02 Æ MagicScan stage 1 controller timeout 0x04 Æ MagicScan stage 2 controller timeout 0x08 Æ MagicScan FIFO overflow 0x80 Æ MagicScan function OK wLowAlarm Æ 32 bits corresponding to 32 channels Æ 0 no low alarm Æ 1 is low alarm wLowAlarm 0 Æ all channels OK no low alarm wLowAlarm ...

Страница 46: ...eter wAdChannel A D channel number wConfig the configuration code Refer to Section 3 1 Configuration Table wAverage the digital average filter factor wLowAlarm 16 bit low alarm data wHighAlarm 16 bit high alarm data wAlarmType 0 no alarm 1 high alarm 2 low alarm 3 in alarm 4 out alarm z Return Value NoError Ok ExceedBoardNumber invalid board number FindBoardError cannot find the OME PCI 1602 board...

Страница 47: ... invalid board number FindBoardError cannot find the OME PCI 1602 board AdChannelError invalid A D channel z Demo Program DEMO11 C Code Fragment WORD wV0 100000 A D ch 0 buffer WORD wV2 100000 A D ch 2 buffer wRetVal P1602_ClearScan For OME PCI 1602L wRetVal P1602_AddToScan 0 0 1 0 0 0 CH 0 to scan wRetVal P1602_SaveScan 0 wV0 wRetVal P1602_AddToScan 2 0 1 0 0 0 CH 2 to scan wRetVal P1602_SaveScan...

Страница 48: ...Value void z Demo Program DEMO11 C wStatus 0x00 Æ MagicScan initial condition idle state 0x01 Æ MagicScan operation started 0x02 Æ MagicScan stage 1 controller timeout 0x04 Æ MagicScan stage 2 controller timeout 0x08 Æ MagicScan FIFO overflow 0x80 Æ MagicScan function OK wLowAlarm Æ 32 bits corresponding to 32 channels Æ 0 no low alarm Æ 1 is low alarm wLowAlarm 0 Æ all channels OK no low alarm wL...

Страница 49: ...I 1602 cards in the system z Return Value NoError OK NoFoundBoard can not detect any OME PCI 1602 FindBoardError handshake check error DriverHandleError the NAPPCI VxD open error for Windows 95 the Napwnt SYS open error for Windows NT DriverCallError call NAPPCI VxD return error Call Napwnt SYS return error z Demo Program All DEMO programs 3 8 2 P1602_DriverClose z Description Returns all resource...

Страница 50: ...put Parameter wBoardNo OME PCI 1602 board number wAddrTimer wAddrCtrl wAddrDio wAddrAdda refer to the OME PCI 1602 Hardware manual chapter 3 for details z Return Value NoError OK FindBoardError handshake check error ExceedBoardError wBoardNo is invalid z Demo Program DEMO1 C 3 8 4 P1602_WhichBoardActive z Description Returns the board number of the active board z Syntax WORD P1602_WhichBoardActive...

Страница 51: ...r wBoardNo board number z Return Value NoError OK ExceedBoardError wBoardNo is invalid z Demo Program All DEMO programd The P1602_ActiveBoard function will effect all functions except the following 1 P1602_FloatSub2 2 P1602_ShortSub2 3 P1602_GetDriverVersion 4 P1602_DriveInit 5 P1602_DriveClose 6 P1602_GetConfigAddressSpace 7 P1602_Card0_StartScan 8 P1602_Card0_ReadData 9 P1602_Card0_Stop 10 P1602...

Страница 52: ...e sample rate is 8M wClockDiv0 wChannel0 0 no scan 1 scan for each channel of the first board wConfig0 configuration code for each channel of the first board Refer to Section 3 1 Configuration Table Buffer0 buffer to store the A D data of the first board dwMaxCount0 sample count for the first board wClockDiv1 the A D sample rate divisor for the second board the sample rate is 8M wClockDiv1 WChanne...

Страница 53: ...AD_PRIORITY_LOWEST 1 THREAD_PRIORITY_BELOW_NORMAL 0 THREAD_PRIORITY_NORMAL 1 THREAD_PRIORITY_ABOVE_NORMAL 2 THREAD_PRIORITY_HIGHEST Other THREAD_PRIORITY_NORMAL z Return Value NoError OK FindTwoBoardError cannot find out two OME PCI 1602 boards z Demo Program DEMO20 C 53 ...

Страница 54: ...Status z Description This function will read the status of the batch capture process z Syntax WORD P1602_FunA_ReadStatus void z Input Parameter void z Return Value 0 data is ready 1 data not ready z Demo Program DEMO20 C 54 ...

Страница 55: ...Demo Program DEMO20 C 3 9 4 P1602_FunA_Get z Description This function will retrieve the number A D samples acquired z Syntax word P1602_FunA_Get DWORD P0 DWORD P1 z Input Parameter P0 output the number of A D samples that have been acquired for the first board P1 output the number of A D samples that have been acquired for the second board z Return Value NoError OK z Demo Program DEMO20 C 55 ...

Страница 56: ... board wConfig0 configuration code for each channel of this board Refer to Section 3 1 Configuration Table Buffer0 buffer to store the A D data of this board dwMaxCount0 to specify the data length of this board nPriority Thread priority The value of nPriority ranges from 2 THREAD_PRIORITY_LOWEST 1 THREAD_PRIORITY_BELOW_NORMAL 0 THREAD_PRIORITY_NORMAL 1 THREAD_PRIORITY_ABOVE_NORMAL 2 THREAD_PRIORIT...

Страница 57: ..._ReadStatus z Description This function provides the status of the batch capture z Syntax WORD P1602_FunB_ReadStatus void z Input Parameter void z Return Value 0 data is ready 1 data not ready z Demo Program DEMO21 C 57 ...

Страница 58: ...eturn Value NoError OK StopError Stop Error z Demo Program DEMO21 C 3 10 4 P1602_FunB_Get z Description This function will retrieve the number of A D samples that have been acquired z Syntax word P1602_FunB_Get DWORD P0 z Input Parameter P0 output the number of A D samples that have been acquired z Return Value NoError OK z Demo Program DEMO21 C 58 ...

Страница 59: ... on this function z Syntax WORD P1602_Card0_StartScan WORD wSampleRate WORD wChannelStatus WORD wChanelConfig WORD wCount z Input Parameter wSampleRate A D sample rate 8M wSampleRate wSampleRate 240 Æ sample rate 8M 240 33KHz wChannelStatus 0 no scan 1 scan for each channel wChannelConfig configuration code for each channel Refer to Section 3 1 Configuration Table wCount number of A D data for eac...

Страница 60: ...ce order 012 N012 N 012 N wBuf2 in channel sequence order 00000 11111 22222 NNNNN dwP1 reserved dwP2 reserved wStatus 1 thread start 2 TimeOut 8 FIFO overflow 0x80 thread finish z Return Value 0 data is ready 1 data not ready z Demo Program DEMO13 C 3 10 7 P1602_Card0_Stop z Description This function will stop the continuous capture function z Syntax void P1602_Card0_Stop void z Input Parameter vo...

Страница 61: ... z Syntax WORD P1602_Card1_StartScan WORD wSampleRate WORD wChannelStatus WORD wChanelConfig WORD wCount z Input Parameter wSampleRate A D sample rate 8M wSampleRate wSampleRate 240 Æ sample rate 8M 240 33KHz wChannelStatus 0 no scan 1 scan for each channel wChannelConfig configuration code for each channel Refer to Section 3 1 Configuration Table wCount number of A D data for each scan channel z ...

Страница 62: ...e order 012 N012 N 012 N wBuf2 in channel sequence order 00000 11111 22222 NNNNN dwP1 reserved dwP2 reserved wStatus 1 thread start 2 TimeOut 8 FIFO overflow 0x80 thread finish z Return Value 0 data is ready 1 data not ready z Demo Program DEMO14 C 3 10 10 P1602_Card1_Stop z Description This function will stop the continuous capture function z Syntax void P1602_Card1_Stop void z Input Parameter vo...

Страница 63: ...z Input Parameter wDelayUs number of us to delay 8191 Max wDelayUs 1 Æ delay 1 µs wDelayUs 1000 Æ delay 1000 us 1 ms wDelayUs 8191 Æ delay 8191 us 8 191 ms maximum delay wDelayUs 8192 Æ invalid delay will return error z Return Value NoError OK ExceedBoardNumber invalid board number FindBoardError cannot find the OME PCI 1602 board InvalidDelay dwDelayUs 8191 z Demo Program DEMO1 C z Long Time Dela...

Страница 64: ...mo7 z demo9 one board M_function_3 demo z demo10 two boards same as demo9 z demo11 one board MagicScan demo z demo12 two boards same as demo11 z demo13 one board continuous capture demo z demo14 two boards continuous capture demo Windows 95 98 NT only z demo15 all installed boards D I O test for board number identification z demo16 one board performance evaluation demo z demo17 one board MagicScan...

Страница 65: ...e shall not exceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable for consequential incidental or special damages CONDITIONS Equipment sold by OMEGA is not intended to be used nor shall it be used 1 as a Basic Component under 10 CFR 21 NRC used in or with any nuclear installation or activity or 2 in medical applications or used on humans Should ...

Страница 66: ...ocity Indicators Turbine Paddlewheel Systems Totalizers Batch Controllers pH CONDUCTIVITY pH Electrodes Testers Accessories Benchtop Laboratory Meters Controllers Calibrators Simulators Pumps Industrial pH Conductivity Equipment DATA ACQUISITION Data Acquisition Engineering Software Communications Based Acquisition Systems Plug in Cards for Apple IBM Compatibles Datalogging Systems Recorders Print...

Отзывы: