How to receive compile output in VisualDSP automation in c++?

Hi,

I'm trying to build automation project in visual DSP that will build the input files (dpg or dpj). I've used the example found in help and in similar posts and manage to develop a working program.

I would like to display to the user the compile progress (like the one in the build tab in Visual DSP).

I can't find how to get the output, but I guess that it is possible to subscribe to event for OutputWindow. I found that OutputWindow have a event called OnTextPrinted. I tried to subscribe to it, but it doesn't work as expected. 

I am not sure what the dispatch id is - if i use it as 2, I get the event but its data is corrupted.

Thanks

  • 0
    •  Analog Employees 
    on May 31, 2021 2:32 PM

    Hi,

    You can use the Automation Interface to display and get the content in the specified output window in Visualdsp++, using GetText Method and PrintText Method.

    We recommend to refer the below help page about more information and examples on ADspOutputWindow methods.
    Help > Contents > Automation > Automation > Automation API Reference >ADspOutputWindow > Methods

    We have an Engineering note, EE-235 - An Introduction to Scripting, which you can download from our EE-Notes web page at the following location:
    www.analog.com/.../EE-235.pdf

    Also Please have a look into the scripting examples,which are provided in the below VisualDSP++ installation path.
    <installation path>:\Analog Devices\VisualDSP 5.1.x\processor\Examples\Scripting Examples

    If your facing any issues, can you please share the below details to assist you better

    1. Please share us the VisualDSP version and Processor family you are using.
    2. Please share us the screenshot of the fail and share us the steps to reproduce along with the project to replicate your issue here.

    Regards,
    Nishanthi.V