Using your code to process JETDSP signalsThe JETDSP signal processing window is not limited to using raw IDL functions. It can also accept expressions using IDL functions that you have written yourself. Making IDL procedures available to JETDSPJETDSP signal processing functions can use IDL code that you have written. There are two ways to do this:
ExampleThe following IDL code program defines an IDL function that has two arguments. If the first one exists, the function returns that value, otherwise the function returns the value of the second argument. It is useful for signal processing expressions for which a substitute default value may be used if the actual required signal was not present:
With JETDSP it is necessary to save a compiled version of your source code. This normally has the extension '.sav'. To do this:
Making Fortran and C code available to JETDSPIf you have written C or Fortran code that you would like to call from JETDSP, it must be installed so that it is available to a normal IDL session. Details of how to do this are given in IDL's External Development Guide - for example using CALL_EXTERNAL or dynamic loading to call a DLL (or a shared object on UNIX). The best way to call this code from JETDSP is to then write an IDL function that calls the externally linked function and passes the results back - and to compile and save this in the same way as the IDL function above. |