I'm currently researching AVAS algorithm.I hava a base AWE project which developed on Standard AVAS_v10c.
I can build this project succeed, but it can't make a sound. I think may be some compoent doesn't work well, just like WavePlayerFlash.
WavePlayerFlash will load wav file form flash, now i want to use AWE default wav file, so which compoent can in place of WavePlayerFlash?
2:16pm
Hi chao_cui_15902,
Please let me know whether you are trying to run your AWD in Native mode or on an embedded device.
I have tried opening your AWD in the most recent release 8.2025.2.A and it is missing CANOpv5 and WavePlayerFlash, which suggests that you are using an older version of AWE Designer. I've found version AVAS_v10c and it is our previous generation AWE6, which is around 3 years old.
Can you give me a bit more information about what you are doing? i.e. are you developing a new layout, or are you trying to update or maintain an existing design?
Also please review our application notes on the various wave players available in the current AWE8 Sound Design Module pack.
Wave Player
Sound Design Modules
Sound Design Pack's Wave Player Modules with Embedded Examples
Thanks,
Gary
10:47pm
Hi Gary,
Thanks for your reply.
I am trying to update this AWD file in 8.2025.2.A. I found that 8.2025.2.A doesn't have CANOpv5 and WavePlayerFlash .
So I wan't to find other component in place of them. Can you give me some advice?
At the same time, I use AVAS_v10c to run this project , it build succeesful, but doesn't make a sound. I use native mode.
Best wishes!
3:27pm
Hi Chao Cui,
Regarding the WavePlayerFlash, please see WaveLoopPlayerFlash or WaveOneShotPlayerFlash depending on your needs. My previous comment includes links to the application notes.
If you have sufficient RAM available you may also try the "FFS" versions of the modules which copy the WAVE data from Flash to RAM which generally reduces CPU load when the WAV Players are active, at the expense of RAM.
Use "BufferSourceV2" for a raw CAN bus input. In Native mode this doesn't really do anything as far as interfacing to the outside world, but you can put static values in it.
SourceV2
Also see ControlOp V2 which allows you to add logic functions to incoming values.
ControlOpV2
Thanks,
Gary
2:53am
Hi Gray,
Thanks for your reply.
I had used ControlOpV2 and WaveLoopPlayerFlash to regard CANOpV5 and WavePlayerFlash.
But when I try to build the project, it called “The left and right sides have a different number of elements.”
I have used module test to find which component has issue, but when test some components, module test may get stuck.
Best wishes,
Cui Chao
1:08pm
Hi Cui Chao,
I can reproduce this error, however it is not coming directly from any module code.
It is coming from MATLAB, the description being:
"It usually appears when you’re trying to perform an element-wise operation or assignment between arrays (vectors, matrices, etc.) that don’t have matching sizes."
I would start by taking a close look at modules which include tables, such as:
Also, try dividing the layout into two separate parts to see if the error follows a specific set of modules. Keep going until you narrow down which one is causing the issue.
Thanks,
Gary
3:00am
Hi Gary,
Thanks for your advice. I delete FIR module and it make a sound succeed.
Can you tell me where the FIR component doesn't match my layout? I copied this component directly from base project which developed by AWE6, but it still throws an error.
By the way, can you give me a demo layout about ControlOpV2's usage?
Best wishes!
Cui Chao
8:47pm
Hi Gary,
I try to replace wav files which use in WaveLoopPlayerFlash, but it throws an error that WaveLoopPlayerFlash1 module failed to initialize with errorCode=-51.
what's the meaning of errorCode=-51? I search in WaveLoopPlayerFlash's useguide, but find nothing useful....
Best wishes!
Cui Chao
10:39am
Hi Cui Chao,
-51 is E_ILLEGAL_FILE_ATTRIBUTE (found in Errors.h) and happens when you are not using a 16-bit WAV file.
Let me know if this solves your problem.
Thanks,
Gary
8:40pm
Hi Gary,
Thanks for your reply, this issue can be closed.
Best wishes!
Cui Chao