MIRC6:2011OSUpgradeChat: Difference between revisions

From Monnier Group Research Wiki
Jump to navigationJump to search
Monnier (talk | contribs)
No edit summary
Monnier (talk | contribs)
No edit summary
Line 8: Line 8:


JDM: Why is new mirc crashing when reading large arrays?
JDM: Why is new mirc crashing when reading large arrays?
----


XC: There are two initializations of two pointers in the code, and if I comment them out, the code seems to  
XC: There are two initializations of two pointers in the code, and if I comment them out, the code seems to  

Revision as of 00:22, 15 May 2011

Use this page to update our running list of questions and problems with upgrading MIRC from gentoo/rtai to debian/xenomai.

Please use your initials to write questions and when they are responded to. we should move answered questions to the top.




JDM: Why is new mirc crashing when reading large arrays?


XC: There are two initializations of two pointers in the code, and if I comment them out, the code seems to run smoothly. I have paste the two initializations here:

1. bzero(bkgndBuffer,daq.rows*daq.cols*daq.nreads*daq.numberOfFrames*sizeof(float) );

2.

    for (n1=0;n1<daq.cols/2; n1++) {
      for(k2=0; k2< daq.rows/2; k2++){
        lf = (exc.lambda-(exc.bandwidth/2.0)) + exc.bandwidth*k2/(daq.rows/2-1);
        lf = exc.lambda/lf;
        for (k1=0;k1<daq.cols/2; k1++) {
          *(xtransform+k1+k2*daq.cols/2+n1*(daq.cols/2*daq.rows/2)) =
            (float complex)  (lf*cos(2*PI*lf*k1*n1/(daq.cols/2))) +
            I*(float complex)(lf*sin(2*PI*lf*k1*n1/(daq.cols/2)));
          *(xtransform_re+k1+k2*daq.cols/2+n1*(daq.cols/2*daq.rows/2)) =
            (float)  (lf*cos(2*PI*lf*k1*n1/(daq.cols/2)));
          *(xtransform_im+k1+k2*daq.cols/2+n1*(daq.cols/2*daq.rows/2)) =
            (float)(lf*sin(2*PI*lf*k1*n1/(daq.cols/2)));
        }}}
    for (n2=0;n2<daq.rows/2; n2++){
      for (k2=0; k2< daq.rows/2; k2++){
        *(ytransform+k2+n2*daq.rows/2)=
          (float complex)  (cos(2*PI*k2*n2/(daq.rows/2))) +
          I*(float complex)(sin(2*PI*k2*n2/(daq.rows/2)));
        *(ytransform_re+k2+n2*daq.rows/2)=
          (float)  (cos(2*PI*k2*n2/(daq.rows/2)));
        *(ytransform_im+k2+n2*daq.rows/2)=
          (float)(sin(2*PI*k2*n2/(daq.rows/2)));
      }}



JDM: Assuming we can compile code in our own home accounts, how do we actually execute RTScheduler and spooler with the correct permissions/authority? use sudo? login as root?


JDM: so who can compile and install new libraries in /usr/local? what is the process?