0001
0002
0003
0004 clear all
0005 close all
0006 clc
0007
0008
0009
0010
0011
0012
0013 mdsconnect('mdsplus.jet.efda.org');
0014 shot = 84744;
0015
0016 [picrh,status] = mdsvalue(sprintf('_sig7=jet("ppf/ICRH/PTOT",%d)',shot));
0017 [ticrh,status] = mdsvalue('dim_of(_sig7)'); picrh=picrh/1e6;
0018
0019 mdsclose;
0020 mdsdisconnect;
0021
0022 figure, plot(ticrh,picrh)
0023 title('JET discharge #84744');
0024 xlabel('time (s)');ylabel('P_{icrh} (MW')
0025
0026
0027
0028 mdsconnect('202.127.204.42');
0029 shot = 43326;
0030
0031 mdsopen('pcs_EAST',shot);
0032
0033 Ip = mdsvalue('\pcrl01');
0034 time = mdsvalue('dim_of(\pcrl01)');
0035
0036 mdsclose;
0037 mdsdisconnect;
0038
0039 figure, plot(time,Ip/1e6,'r-')
0040 title('EAST discharge #43326');
0041 xlabel('time (s)');ylabel('|I_p| (MA)')
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062 sinputs.remote.profile = 'PSFC_CMODWS85';
0063 sinputs.remote.profilename = NaN;
0064 sinputs.remote.link_mode = NaN;
0065 sinputs.mdsplus.ipserver = 'alcdata.psfc.mit.edu';
0066 sinputs.mdsplus.shotnumber = '1160727001';
0067 sinputs.mdsplus.tree(1).name = 'magnetics';
0068 sinputs.mdsplus.tree(1).values = {'\ip','\btor'};
0069 sinputs.mdsplus.tree(1).units = {'A','T'};
0070 sinputs.mdsplus.tree(2).name = 'electrons';
0071 sinputs.mdsplus.tree(2).values = {'\top.tci.results:nl_04','\electrons::top.tci.results.inversion.nebar_efit','\gpc2_te0','\thom_midpln:te_t'};
0072 sinputs.mdsplus.tree(2).units = {'m^2','m^3','keV','keV'};
0073 sinputs.mdsplus.tree(3).name = 'analysis';
0074 sinputs.mdsplus.tree(3).values = {'\top.mflux:v0'};
0075 sinputs.mdsplus.tree(3).units = {'V'};
0076 sinputs.mdsplus.tree(4).name = 'LH';
0077 sinputs.mdsplus.tree(4).values = {'\top.hxr.results:'};
0078 sinputs.mdsplus.tree(4).units = {'V'};
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088 soutputs = remotemdsplus(sinputs);
0089
0090 if isfield(soutputs,'err'),
0091
0092 disperr_jd(soutputs.err)
0093
0094 else
0095
0096 figure,plot(soutputs.mdsplus.tree(1).values(1).time,abs(soutputs.mdsplus.tree(1).values(1).data)/1e6);
0097 xlabel('time (s)');ylabel('|I_p| (MA)')
0098 title(['Alcator C-Mod discharge #',sinputs.mdsplus.shotnumber]);
0099
0100 end
0101