Proyecto REX-2X - Radio Observatorio de Jicamarca
Proyecto REX-2X - Radio Observatorio de Jicamarca
Proyecto REX-2X - Radio Observatorio de Jicamarca
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
m_WByte=2;<br />
BytesWritten+=fwrite(&MyBasicHea<strong>de</strong>r.FullTime.millitm,1,m_WByte,MyFile);<br />
m_WByte=2;<br />
BytesWritten+=fwrite(&MyBasicHea<strong>de</strong>r.FullTime.timezone,1,m_WByte,MyFile);<br />
m_WByte=2;<br />
BytesWritten+=fwrite(&MyBasicHea<strong>de</strong>r.FullTime.dstflag,1,m_WByte,MyFile);<br />
m_WByte=4;<br />
BytesWritten+=fwrite(&MyBasicHea<strong>de</strong>r.nError,1,m_WByte,MyFile);<br />
//*****************************************************<br />
m_WByte=24;<br />
BytesWritten+=fwrite(&MySystemParam,1,m_WByte,MyFile);//Save 24Bytes of System Param<br />
//Save Radar Controller Parameters<br />
m_WByte=MyGRCParam.FixRCP.m_nHea<strong>de</strong>r_RC_length<br />
-<br />
(3*MyGRCParam.FixRCP.m_nNum_Windows*sizeof(float));<br />
BytesWritten+=fwrite(&MyGRCParam,1,m_WByte,MyFile);<br />
m_WByte=MyGRCParam.FixRCP.m_nNum_Windows*sizeof(float);<br />
BytesWritten+=fwrite(&MyGRCParam.Dyn_sfAcqH0[0],1,m_WByte,MyFile);<br />
BytesWritten+=fwrite(&MyGRCParam.Dyn_sfAcqDH[0],1,m_WByte,MyFile);<br />
BytesWritten+=fwrite(&MyGRCParam.Dyn_snAcqNSA[0],1,m_WByte,MyFile);<br />
//Save Process Parameters<br />
m_WByte=MyGPParam.FixPP.m_nHea<strong>de</strong>r_PP_Length<br />
-<br />
(3*MyGPParam.FixPP.m_nData_Windows*sizeof(float));<br />
BytesWritten+=fwrite(&MyGPParam,1,m_WByte,MyFile);<br />
m_WByte=MyGPParam.FixPP.m_nData_Windows*sizeof(float);<br />
BytesWritten+=fwrite(&MyGPParam.Dyn_sfDataH0[0],1,m_WByte,MyFile);<br />
BytesWritten+=fwrite(&MyGPParam.Dyn_sfDataDH[0],1,m_WByte,MyFile);<br />
BytesWritten+=fwrite(&MyGPParam.Dyn_snDataNSA[0],1,m_WByte,MyFile);<br />
return int(BytesWritten);<br />
}<br />
}<br />
ADQUIRE CONSOLE SOURCE CODE<br />
// SecondAdqConsole.cpp : Defines the entry point for the console application.<br />
//<br />
#inclu<strong>de</strong> "stdafx.h"<br />
using namespace std;<br />
using namespace JicaHea<strong>de</strong>r;<br />
using namespace Func<strong>Jicamarca</strong>;<br />
//*************************<br />
#<strong>de</strong>fine IPP 1999.8f<br />
#<strong>de</strong>fine H0 90.0f<br />
#<strong>de</strong>fine DH 0.6f<br />
#<strong>de</strong>fine NCh 1<br />
#<strong>de</strong>fine Profiles 100<br />
#<strong>de</strong>fine Samples 1300<br />
#<strong>de</strong>fine NTX 1<br />
#<strong>de</strong>fine RawDatSize 2*NCh*Profiles*Samples*NTX<br />
//*************************<br />
#<strong>de</strong>fine SizeOfData Profiles*(Samples+2)<br />
void PrintMainMenu(void);<br />
void StartAdq(bool);<br />
bool AllocateMemory();<br />
void FreeMemory();<br />
void NIDAQEvent(WPARAM,LPARAM);<br />
void GetFileName();<br />
void SaveRawData();<br />
Complex *gm_sBuffer =NULL;<br />
Complex *gm_sHalfBuffer =NULL;<br />
CNIDAQConfig *m_CNIConfig=new CNIDAQConfig();<br />
MyHea<strong>de</strong>r *m_JicaHea<strong>de</strong>r=new MyHea<strong>de</strong>r();<br />
bool BigError=false;<br />
bool Save=false;<br />
45