#include "UALClasses.h"
using namespace IdsNs;
int main(int argc, char *argv[])
{
//Open the database
IDS imas(12, 2, -1, -1);
imas.open();
IDS::core_profiles ids = imas._core_profiles;
//Get the slice corresponding to the passed time
ids.getSlice(1.0, 2);
printf("Time %g",ids.time(0));
printf("Value: %g",ids.x.y(0));
// Close the pulse file
imas.close();
} |