///////////////////////////////////////////////// // // trd_setAliasesHV.ctl // Sets aliases to DPEs // // J.Mercado $v.131207 // ///////////////////////////////////////////////// #uses "_trdLib.ctl" main() { // ALIASES FOR HV string DPE, ALIAS; int ch, l; // Set aliases // ------------------------------------------------------------------------------------- // l = 48; // initialize ALIAS count l = 120; // initialize ALIAS count for (ch = 0; ch < 8; ch++) { // sprintf(DPE, "Iseg/can1/crate08/pos081/ch%02d",ch); // sprintf(ALIAS, "trd_hvAnodeUmon%03d",l); // DebugN(DPE+" with alias: "+ALIAS); // dpSetAlias(DPE+".Actual.VMeas", ALIAS); sprintf(DPE, "Iseg/can1/crate08/ma13/ch%02d",ch); sprintf(ALIAS, "trd_hvAnodeUmon%03d",l); // sprintf(ALIAS, "",l); DebugN(DPE+" with alias: "+ALIAS); dpSetAlias(DPE+".Actual.VMeas", ALIAS); l++; } }