5 #include "isisinstrumentcontrol.h"
18 lvxml.
setValue(
"To 1",
"1240.0", status);
27 "c:\\newicp\\det_cal_025.dat",
28 "c:\\newicp\\spec_mid-tubes_025.dat",
40 FILE* output_file = fopen(
"c:\\freddie.raw",
"w+b");
41 raw_file.
ioRAW(output_file,
false);
43 input_file = fopen(
"c:\\freddie.raw",
"rb");
44 raw_file2.
ioRAW(input_file,
true);
46 for(i=0; i< raw_file.
i_mon; i++)
48 std::cout << raw_file.
mdet[i] << std::endl;
49 std::cout << raw_file.
monp[i] << std::endl;
51 for(i=raw_file.
i_det-100; i< raw_file.
i_det; i++)
53 std::cout << raw_file.
spec[i] << std::endl;
61 DAE1Sim*
dae =
new DAE1Sim();
64 cerr <<
"Raw frames are " << dec << data32 << endl;
int ioRAW(FILE *file, bool from_file)
int setValue(const char *name, const char *value, DAEstatus &status)
int loadFromFile(const char *filename, DAEstatus &status)
int setLinearTimeChannelRange(int range_number, float start, float end, float step, DAEstatus &status)
int readTables(const char *wiring, const char *detector, const char *spectra, DAEstatus &status)
bool isRunning(DAEstatus &status)
isis32_t open(const char *dae_name, DAEstatus &status)
int getValue(const char *name, char *value, int max_len, bool write_null, DAEstatus &status)
int readLabviewXMLfromFile(const char *filename)
int beginRun(DAEstatus &status)
int resetRunController(DAEstatus &status)
int saveToString(std::string &s, DAEstatus &status)
int startRun(bool clear_counters, int run_number, time_t &start_time, DAEstatus &status)
int getRawFrames(isisU32_t *value, DAEstatus &status)
int saveToFile(const char *filename, DAEstatus &status)
isis32_t close(DAEstatus &status)
int _tmain(int argc, _TCHAR *argv[])