Page 1 of 1
App Developper How to use DSP Gen and XY-Chart?
Posted: Thu Feb 11, 2021 2:31 pm
by stefan.erni
Hi Ben
The DSP Generator component works great. Also the XY-Chart.
With the DSP generator I have saved my own curve under custom and can play it as desired.
Question about DSP Generator. How many values can I store in custom wave? Are there a few extra possible?
Question about XY-Chart. How can I get the chart running? (Scrolling)
regards
Stefan

- DSP_Gen_2021-02-11_15-18-21.png (84.8 KiB) Viewed 6853 times
Re: App Developper How to use DSP Gen and XY-Chart?
Posted: Fri Feb 12, 2021 10:50 am
by BenR
Hi Stefan,
Question about DSP Generator. How many values can I store in custom wave? Are there a few extra possible?
I beleive the max would be 65535 values but I may be wrong on this, I'll have a look for you.
Question about XY-Chart. How can I get the chart running? (Scrolling)
'
I'm afraid the component doesn't currently support scrolling. If you need scrolling then the data recorder window might be useful for you and will automatically display DSP data.
Re: App Developper How to use DSP Gen and XY-Chart?
Posted: Fri Feb 12, 2021 11:02 am
by Steve-Matrix
You could try programmatically changing the x-axis properties to implement scrolling. I don't know if this will work well though.
Re: App Developper How to use DSP Gen and XY-Chart?
Posted: Fri Feb 12, 2021 2:39 pm
by stefan.erni
Hi Ben, Hi Steve
Yes the data recorder window shows it scrolling but I think in the deployed App it's not working.
I can try to program something for the XYChart
For the XYChart, I have a lot of propertis but just few macros as command. Would it be possible to change some properties in runtime?
In the Embeded for the PIC and Display there is GraphCreator with scrolling, in the small oled the signal is scrolling nice. But it does not work in App Developper to use this Display or GraphCreator on the screen.
regards
Stefan

- Snag_af53ca.png (161.35 KiB) Viewed 6826 times
Re: App Developper How to use DSP Gen and XY-Chart?
Posted: Mon Feb 15, 2021 9:58 am
by Steve-Matrix
Yes, component properties can be changed at runtime. You need to use the Built-in Function "SetValue" as shown in the example image below.
The component property entry needs to be the variable name for the property which can be found by clicking on the property within the "Component Properties" window. It is displayed at the bottom, and can be copied to the clipboard by right-clicking the property and selecting "copy property variable name".

- SetValue.png (79.9 KiB) Viewed 6795 times
Re: App Developper How to use DSP Gen and XY-Chart?
Posted: Mon Feb 15, 2021 11:10 am
by stefan.erni
Hi Steve
Thank you for the Info.
I tried with change the Name of the x axis from x-axis to time ,in runtime. This works nice.
A small note

first copy the variable name and then open the component macro.
I am now trying to display an ECG signal.
regards
Stefan

- copy_var_2021-02-15_11-55-57.png (91.31 KiB) Viewed 6791 times
Re: App Developper How to use DSP Gen and XY-Chart?
Posted: Mon Feb 15, 2021 4:28 pm
by stefan.erni
Hi Ben, Hi Steve
I found a way to show a chart even if it's not scrolling.
2 things are not clear to me
With the chart set mode to 0, the chart text is not flashing but the chart update is a little bit slow.
With the chart set mode to 1, the chart text is flashing but the chart update is very fast.
Can I manage the grid in way?
How can set the grid?
Regards
Stefan