function readdummy,value ;This is an example function to demonstrate how to read data into JETDSP ;using the signal processing functions. ;This defines the return structure that needs filling with the values. resultStruct={JetProcSignal $ ,data:ptr_new() $ ,time:ptr_new() $ ,x:ptr_new() $ ,type:'' $ ,tAxisType:0 $ ,xAxisType:0 $ ,multigraph:0 $ ,n_multi:1 $ ,slice:'' $ ,status:0 $ } ; Assume success, this will be changed if we have an error. resultStruct.status=1 ; As an example create a 2D signal with a data vector and time vector. ; Create a time vector. This could be read from a file, ; or got from another function. time=findgen(101)/100 ;Create the data vector, again this could come from a file or function. data=sin(time*value)*time*value ;Now we will put this data into the return structure. resultStruct.time=ptr_new(time) ;Put the time vector in. resultStruct.data=ptr_new(data) ;Put the data vector in. resultStruct.type='2D' ;This example is always a 2D signal. return,resultStruct end