Document Description This document will guide users to quickly use the PET-7H16M module. Preceding procedure:PET-7H16M network settings. Introduction to acquisition and trigger mode: Brief description of PET-7H16M data acquisition and trigger mode. Simple to use:Simple operation through the HSDAQ Utility, collecting PET-7H16M data, and displaying the data in the utility chart.
Preceding Procedure There are two ways for the PET-7H16M module getting the power. One is through Ethernet by a PoE switch; the other is as usual through wiring by an external power. POE Power Supply Connect PC to the Ethernet port via the PoE switch.
Page 4
External Power Supply Connect PC and PET-7H16M to the Ethernet Switch. Connect the power supply to the switch and PET-7H16M. (The external power supply should be in the range of +12 VDC to 48 VDC) Network Settings The factory default settings for the PET-7H16 network are as follows:...
Page 5
1. Obtain and install the HSDAQ Utility in the following path https://www.icpdas.com/tw/download/show.php?num=2327 2. Run HSDAQ Utility Press choose “Search” from the “Tools” menu 4. The searched PET-7H16M module will be displayed on the screen of this program. PET-7H16M Quick Use Manual...
Page 6
5. Select the PET-7H16M to be set, and the following setting screen will appear. 6. Write the new setting value in the IP address/Mask/Gateway/Alias field and press the "OK" button 7. Wait for the PET-7H16M to reboot. (After reboot, the new setting...
Introduction to Acquisition and Trigger Mode PET-7H16M Data Acquisition and Trigger Mode Description Two data acquisition methods and multiple trigger modes provide high-speed acquisition of input values of the AI channel. The figure below shows the corresponding effective operating frequency range for the acquisition and trigger modes.
Page 8
Pre-Trigger (acquisition of N data samples) The A/D data is continually collected and is temporarily stored in the memory on the PET-7H16M until the trigger signal is received. Once the trigger signal is received, the collected N data samples are then transferred to the Host PC.
Page 9
Post-Trigger (acquisition of N data samples) In this mode, the A/D acquisition of the N data samples is started once the trigger signal is received. PET-7H16M Quick Use Manual...
PC disk and the data is displayed on the chart. This tool can be used as an entry test and a simple diagnostic. Steps 1. Execute the HSDAQ Utility. Enter the IP address of the PET-7H16M in the following screen and click the “Connect” button. 2. Set the parameter value of AI high speed acquisition 2.1.
Page 11
2.6. After the above steps are completed, press the “Set” button to write the setting value to the PET-7H16M module. 3. Start AI high speed data acquisition 3.1. Press the Start button. If the setting value of Sample Count is greater than 0, the acquisition will be stopped automatically when it reaches the set value.
Page 12
3.3. Select which data file to display 3.4. The top of the following UI is the waveform diagram drawn by the data. Below is the data of each channel. Each page displays 1000 data. PET-7H16M Quick Use Manual...
Before using HSDAQ.dll & HSDAQNet.dll, you must install HSDAQ_SDK_package.exe to use the dll correctly. The program and SDK get the same path. Need to restart the computer after installation. For installation steps, please refer to "PET-7H16M Standard API User Manual". Prepare Development Tools...
Page 14
In Section 1.4.1, learn more about developing C# programs using SDK in Visual Studio. In Section 1.4.2, learn more about developing VB.NET programs using SDK in Visual Studio. In Section 1.4.3, learn more about developing VC programs using SDK in Visual Studio. Demo program download path: https://www.icpdas.com/en/download/show.php?num=2328 PET-7H16M Quick Use Manual...
Page 15
1. Continuous mode acquisition and software AD trigger of high-speed acquisition 2. N sample mode acquisition and software AD trigger of high-speed acquisition 3. N sample mode acquisition and software AD trigger of data logger example. PET-7H16M Quick Use Manual...
Page 16
HS_GetAIBuffer Determine how much data is in the buffer Status Read the data from the buffer HS_GetAIBufferHex Stop Whether stop data acquisition manually Stop data acquisition HS_StopAIScan Release the device from system HS_Device_Release Exit Exit PET-7H16M Quick Use Manual...
Page 17
HS_StartAIScan (hHS); // Start data acquisition of scanning AI channel ret=HS_GetAIBufferStatus(hHS,&BufferStatus,&ulleng); // Determine how much data is in the buffer if(ret==false){ printf("Error code 0x%x\r\n",HS_GetLastError()); else if(ulleng) readsize=HS_GetAIBuffer(hHS,fdataBuffer, ulleng); // Read the data from the buffer … PET-7H16M Quick Use Manual...
Page 18
HS_StopAIScan (hHS); // Stop data acquisition HS_Device_Release (hHS); // Release the device from system PET-7H16M Quick Use Manual...
Page 19
Start data acquisition of scanning AI HS_StartAIScan channels HS_GetAIBuffer Determine total number of samples reaches Status the target count HS_GetAIBufferHex Read the data from the buffer Stop data acquisition HS_StopAIScan Release the device from system HS_Device_Release Exit Exit PET-7H16M Quick Use Manual...
Page 20
HS_StartAIScan (hHS); //Start data acquisition of scanning AI channel ret=HS_GetAIBufferStatus(hHS,&BufferStatus,&ulleng); // Determine how much data is in the buffer if(ret==false){ printf("Error code 0x%x\r\n",HS_GetLastError()); else if(BufferStatus>2) //AI buffer overflow /* 2: AD_BUF_OVERFLOW 4: AD_SCAN_STOP 8: AD_DATA_SAMPLING_TIMEOUT break; PET-7H16M Quick Use Manual...
Page 21
//The total sample of data in the buffer reaches the target count unsigned long size=targetCnt; readsize=HS_GetAIBufferHex(hHS,(WORD *)dataBuffer,size); // Read the N sample of data from the buffer HS_StopAIScan (hHS); // Stop data acquisition HS_Device_Release (hHS); // Release the device from system PET-7H16M Quick Use Manual...
Page 22
N sample mode acquisition and software AD trigger of data logger example PET-7H16M has a data logging function. The data collected by the module can be transferred to the Host PC and saved as a data log file (.bin, .txt...
Page 23
// Start to record data on the scanning AI while(;;) ret=HS_GetTotalSamplingStatus(hHS,&ulleng,&triggerStatus); // Obtain the acquisition status of the data recording process if(ret==false) printf("Error code 0x%x\r\n",HS_GetLastError()); else if(CHECK_BIT(triggerStatus,7)==true && targetCnt>0) //Number of records reaches the target count if(ulleng>=targetCnt) … break; //break the loop PET-7H16M Quick Use Manual...
Page 24
// Stop data logging HS_Device_Release(hHS); // Release the device from system /* Use the Data logger API function to read data log files */ HANDLE hlf; TCHAR tcgetfulfilelPath[MAX_PATH]={0}; int ind=HS_GetAllLogFiles(NULL,1); if(ind>0) for(int i=0;i<ind;i++) hlf=HS_LogFile_Open_byIndex(i,tcgetfulfilelPath); DWORD samplecount; char startdate[32],starttime[32]; HS_GetLogFile_AIScanSampleInfo(hlf,&samplecount,startdate,sta PET-7H16M Quick Use Manual...
The HSDAQ LabVIEW toolkit provides an HSDAQ.llb with basic sub-VIs for controlling the HSDAQ devices, and several demo programs to demonstrate how to use the sub-Vis. LabVIEW examples and related components can be obtained from the following path https://www.icpdas.com/en/download/show.php?num=2327 PET-7H16M Quick Use Manual...
Need help?
Do you have a question about the PET-7H16M and is the answer not in the manual?
Questions and answers