Skip to content
Snippets Groups Projects
Commit 0f4303ab authored by Berk Silemek's avatar Berk Silemek
Browse files

Update Console/Receiver/Spectrum Instrumentation m4i.4451/readme.md

parent 04c37519
Branches
No related tags found
No related merge requests found
......@@ -9,9 +9,25 @@ It is also possible to use other software platforms for the digitizer cards such
## ADC
The file **m4iset_extrig_rms.c** contains the functions for the ADC card setup and receiver operation. The routine uses 3 arguments:
- _*pvData_ 16-bit data pointer for the received data
- _*lMemsize_ 32-bit memory length for the received data
- _*posttr_ 32-bit post trigger pointer to adjust the time window of the ADC. Please see manufacturer’s documentation for more information about post trigger.
```c
/**
* Set m4i receiver card
*
* @param *pvData 16-bit data pointer for the received data
* @param *lMemsize 32-bit memory length for the received data
* @param *posttr 32-bit post trigger pointer to adjust the time window of the ADC. Please see manufacturer’s documentation for more about post trigger.
* @Return void
*/
void m4iset_(int16 *pvData, int32 *lMemsize, int32 *posttr)
{
drv_handle hDrv; // Receiver device
char szErrorText[ERRORTEXTLEN]; // Error buffer
//Card specific parameters
...
...
...
}
```
The other two scripts **rec_m4i_fifo_tdfilter.f** and **rec_m4i_tdfilter_rms.f** implement the c routine. They need to be compiled with a Fortran complier. The first line in these files can be taken as an example i.e. copy and paste it into the OS terminal using the working folder.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment