App Developper How to use DSP Gen and XY-Chart?

For general Flowcode discussion that does not belong in the other sections.
Post Reply
stefan.erni
Valued Contributor
Posts: 1065
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 201 times
Been thanked: 224 times

App Developper How to use DSP Gen and XY-Chart?

Post 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
FC9_App_DSP_gen.fcfx
(17.94 KiB) Downloaded 650 times
DSP_Gen_2021-02-11_15-18-21.png
DSP_Gen_2021-02-11_15-18-21.png (84.8 KiB) Viewed 6845 times

BenR
Matrix Staff
Posts: 1951
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 697 times

Re: App Developper How to use DSP Gen and XY-Chart?

Post 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.

Steve-Matrix
Matrix Staff
Posts: 1548
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: App Developper How to use DSP Gen and XY-Chart?

Post 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.

stefan.erni
Valued Contributor
Posts: 1065
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 201 times
Been thanked: 224 times

Re: App Developper How to use DSP Gen and XY-Chart?

Post 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
Snag_af53ca.png (161.35 KiB) Viewed 6818 times

Steve-Matrix
Matrix Staff
Posts: 1548
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: App Developper How to use DSP Gen and XY-Chart?

Post 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
SetValue.png (79.9 KiB) Viewed 6787 times

stefan.erni
Valued Contributor
Posts: 1065
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 201 times
Been thanked: 224 times

Re: App Developper How to use DSP Gen and XY-Chart?

Post 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
copy_var_2021-02-15_11-55-57.png (91.31 KiB) Viewed 6783 times

stefan.erni
Valued Contributor
Posts: 1065
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 201 times
Been thanked: 224 times

Re: App Developper How to use DSP Gen and XY-Chart?

Post 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
Attachments
FC9_App_DSP_Gen1_XY_Chart1.fcsx
(22.08 KiB) Downloaded 484 times

Post Reply