Gernating A waveform

The idea is to generate a waveform using Xamarin program C# using Sine waveform for medical purposes. The waves is from a list giving by the program. The problem is with the layout to generate it as a single wave like the Heart Rate, and visualize it. Does anyone knows how to deal with this issue

Thanks

Answers

  • CheesebaronCheesebaron DKInsider, University mod

    What is the problem? Generating the function to get points for the wave or to visualize it? What have you tried?

  • FaisalAshourFaisalAshour USMember

    Well the issue is to generate first any random points to visualize it in the android app as a waveform . I don't know how to generate points and to visualize it. Thank you

  • CheesebaronCheesebaron DKInsider, University mod

    You could try to take a look at Oxyplot, it works pretty well for graphs.

  • You can very easily draw lines in 2D using a canvas. Have a look into some Canvas examples.

  • FaisalAshourFaisalAshour USMember

    While I'm looking at the 2D canvas example, I noticed that to draw an OvalShape you use the name shape OvalShape, so how about just a straight line so then I can play around with its carves to create the waves. ? what the function name should be or how.

    Thank you very much for all the help, I really need your help

  • CheesebaronCheesebaron DKInsider, University mod

    Please use some time on exploring the API yourself. You have intellisense and the Android documentation to help you, it should be fairly easy to figure out.

  • FaisalAshourFaisalAshour USMember

    Below is the code to create a Bar chart, do you know how to convert it to A line chart ?

    using BarChart;

    namespace BarChart.Android.Sample {
    [Activity (Label = "BarChart.Android.Sample", MainLauncher = true)]
    public class Activity1 : Activity {
    static readonly BarModel[] TestData = new BarModel[] {
    new BarModel () { Value = -1f, Legend = "0", Color = Color.Red },
    new BarModel () { Value = 2f, Legend = "1" },
    new BarModel () { Value = 0f, Legend = "2" },
    new BarModel () { Value = 1f, Legend = "3" },
    new BarModel () { Value = -1f, Legend = "4", Color = Color.Red },
    new BarModel () { Value = 1f, Legend = "5" },
    new BarModel () { Value = -1f, Legend = "6", Color = Color.Red },
    new BarModel () { Value = 2f, Legend = "7" },
    new BarModel () { Value = -0.1f, Legend = "8", Color = Color.Red }
    };

  • ReihanehKhaksaranReihanehKhaksaran USMember ✭✭

    @FaisalAshour I want to have the exact same thing in my app, have you found any solutions?

Sign In or Register to comment.