help-octave
[Top][All Lists]
Advanced

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

Re: Problem using the hanning function in embedded mode


From: Sergei Steshenko
Subject: Re: Problem using the hanning function in embedded mode
Date: Sun, 23 Dec 2012 11:31:24 -0800 (PST)

>________________________________
> From: Nicanor García <address@hidden>
>To: "address@hidden" <address@hidden> 
>Sent: Sunday, December 23, 2012 9:10 PM
>Subject: Fwd: Problem using the hanning function in embedded mode
> 
>
>
>
>
>---------- Forwarded message ----------
>From: Nicanor García <address@hidden>
>Date: 2012/12/23
>Subject: Re: Problem using the hanning function in embedded mode
>To: Sergei Steshenko <address@hidden>
>
>
>
>Hello Sergei,
>
>
>I have tested the program and I'm sure the audio signal is getting correctly 
>from the GUI into Octave as a vector of doubles, the problem occurs as soon as 
>I call hanning() which returns zeros.
>
>
>
>2012/12/23 Sergei Steshenko <address@hidden>
>
>
>>
>>
>>
>>
>>>________________________________
>>> From: Nicanor García <address@hidden>
>>>To: address@hidden
>>>Sent: Sunday, December 23, 2012 6:46 PM
>>>Subject: Problem using the hanning function in embedded mode
>>
>>>
>>>
>>>Hello, I'm currently developing a standalone audio signal processing 
>>>application and I'm using octave for the processing part. I'm working in 
>>>Ubuntu Linux (though I'll be moving soon to Linux Mint), and using QtCreator.
>>>
>>>
>>>My process involves taking the FFT of the series of windows of a signal, and 
>>>for that I'm also using the hanning function to get a hanning window.
>>>
>>>The code works perfectly when run from octave in console, but when I try to 
>>>use it in the application I detected that the hanning function returns only 
>>>zeros. The same happens with the hamming function.
>>>
>>>This only happens when I use the embedded mode in the program.  And is the 
>>>only problem involving Octave I have detected.
>>>
>>>I searched throughly in all the resources provided by Octave and across the 
>>>web and found nothing about this issue, so I'm asking here for your help.
>>>
>>>Thank you very much.
>>>
>>>_______________________________________________
>>>Help-octave mailing list
>>>address@hidden
>>>https://mailman.cae.wisc.edu/listinfo/help-octave
>>>
>>>
>>>
>>
>>AFAIR, Octave is not thread-safe.
>>
>>Without knowing how your GUI and Octave exchange data it is impossible to 
>>diagnose what's going wrong.
>>
>>Regards,
>>  Sergei.
>>
>>
>
>
>
>
>
>2012/12/23 Nicanor García <address@hidden>
>
>Hello Sergei,
>>
>>
>>I have tested the program and I'm sure the audio signal is getting correctly 
>>from the GUI into Octave as a vector of doubles, the problem occurs as soon 
>>as I call hanning() which returns zeros.
>>
>>
>>
>>2012/12/23 Sergei Steshenko <address@hidden>
>>
>>
>>>
>>>
>>>
>>>
>>>>________________________________
>>>> From: Nicanor García <address@hidden>
>>>>To: address@hidden
>>>>Sent: Sunday, December 23, 2012 6:46 PM
>>>>Subject: Problem using the hanning function in embedded mode
>>>
>>>>
>>>>
>>>>Hello, I'm currently developing a standalone audio signal processing 
>>>>application and I'm using octave for the processing part. I'm working in 
>>>>Ubuntu Linux (though I'll be moving soon to Linux Mint), and using 
>>>>QtCreator.
>>>>
>>>>
>>>>My process involves taking the FFT of the series of windows of a signal, 
>>>>and for that I'm also using the hanning function to get a hanning window.
>>>>
>>>>The code works perfectly when run from octave in console, but when I try to 
>>>>use it in the application I detected that the hanning function returns only 
>>>>zeros. The same happens with the hamming function.
>>>>
>>>>This only happens when I use the embedded mode in the program.  And is the 
>>>>only problem involving Octave I have detected.
>>>>
>>>>I searched throughly in all the resources provided by Octave and across the 
>>>>web and found nothing about this issue, so I'm asking here for your help.
>>>>
>>>>Thank you very much.
>>>>
>>>>_______________________________________________
>>>>Help-octave mailing list
>>>>address@hidden
>>>>https://mailman.cae.wisc.edu/listinfo/help-octave
>>>>
>>>>
>>>>
>>>
>>>AFAIR, Octave is not thread-safe.
>>>
>>>Without knowing how your GUI and Octave exchange data it is impossible to 
>>>diagnose what's going wrong.
>>>
>>>Regards,
>>>  Sergei.
>>>
>>>
>>
>
>_______________________________________________
>Help-octave mailing list
>address@hidden
>https://mailman.cae.wisc.edu/listinfo/help-octave
>
>
>

Please bottom-post ( https://en.wikipedia.org/wiki/Posting_style ).

I do not know how you tested your code. The fact that code works in single 
thread, or part of it works, does not mean it works in multi-threaded 
environment.

As I wrote, not knowing the exact details of data exchange and synchronization 
it's impossible to say what the problem is.



Regards,
  Sergei.


reply via email to

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