discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] saving internal (to a block) variable values to a


From: sumitstop
Subject: Re: [Discuss-gnuradio] saving internal (to a block) variable values to a file
Date: Tue, 23 Oct 2012 14:07:29 -0700 (PDT)

Well I am pretty sure that your query is more complicated than what I am
thinking, but I did the following just to check. Inside the work function of
howto_square_ff.cc

I pasted following lines 

        ofstream outdata;
        int i; // loop index
        int num[5] = {4, 3, 6, 7, 12}; // list of output values
        outdata.open("/home/sumit/example2.dat");
        for (i=0; i<5; ++i)
        outdata << num[i] << std::endl;
        outdata.close();

compiled it ...

And I got them written in example2.dat 

Anyways I am curious to see if you get some effective reply :) 
        




--
View this message in context: 
http://gnuradio.4.n7.nabble.com/saving-internal-to-a-block-variable-values-to-a-file-tp38118p38125.html
Sent from the GnuRadio mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]