mdsplus icon indicating copy to clipboard operation
mdsplus copied to clipboard

jScope reads signals as flat lines

Open kgerickson opened this issue 3 years ago • 2 comments

Here is some data stored in a test tree:

IDL> mdsopen,'rtmhd_kstar',900001
% Compiled module: MDSOPEN.
% Compiled module: MDSVALUE.
% Compiled module: MDSCHECKARG.
% Compiled module: MDSISCLIENT.
% Compiled module: MDSIDLIMAGE.
IDL> x=mdsvalue('input.fft:counter')
IDL> print,x
   286564188   286564189   286564190   286564191   286564192   286564193   286564194   286564195   286564196
   286564197   286564198   286564199   286564200   286564201   286564202
IDL> 

Here is that data as displayed by jscope: Screen Shot 2021-06-29 at 7 43 22 PM

Here is the Point mode showing that it is using the same value for all points: Screen Shot 2021-06-29 at 7 45 20 PM Screen Shot 2021-06-29 at 7 45 31 PM

Note that floats work. But this node is a signal of unsigned ints (so Uint32Array recorded as a signal over time).

kgerickson avatar Jun 29 '21 23:06 kgerickson

We can look at this.  It looks to me like the integers are being converted to singles and coming out with the same value.  If you change what you as for to be:

x - 286564000 or to be x+0.0D0  what happens

On 6/29/21 7:49 PM, kgerickson wrote:

Here is some data stored in a test tree:

IDL> mdsopen,'rtmhd_kstar',900001 % Compiled module: MDSOPEN. % Compiled module: MDSVALUE. % Compiled module: MDSCHECKARG. % Compiled module: MDSISCLIENT. % Compiled module: MDSIDLIMAGE. IDL> x=mdsvalue('input.fft:counter') IDL> print,x 286564188 286564189 286564190 286564191 286564192 286564193 286564194 286564195 286564196 286564197 286564198 286564199 286564200 286564201 286564202 IDL>

Here is that data as displayed by jscope: Screen Shot 2021-06-29 at 7 43 22 PM https://user-images.githubusercontent.com/14148090/123881271-598d4000-d912-11eb-83ef-8ae15a0b938f.png

Here is the Point mode showing that it is using the same value for all points: Screen Shot 2021-06-29 at 7 45 20 PM https://user-images.githubusercontent.com/14148090/123881487-d28c9780-d912-11eb-9b04-773b1fe1be27.png Screen Shot 2021-06-29 at 7 45 31 PM https://user-images.githubusercontent.com/14148090/123881488-d4eef180-d912-11eb-96e6-12a001cf6799.png

Note that floats work. But this node is a signal of unsigned ints (so Uint32Array recorded as a signal over time).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MDSplus/mdsplus/issues/2334, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY5AZOI6VLRIXSKVDTBLRDTVJLZBANCNFSM47RGZ2TA.

-- Joshua Stillerman Research Engineer MIT Plasma Science and Fusion Center 617.253.8176 @.*** @.***>

joshStillerman avatar Jun 30 '21 13:06 joshStillerman

The subtraction of a large int works. The addition of a zero double does not.

kgerickson avatar Jun 30 '21 16:06 kgerickson