Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Heart Rate Monitor → Thread

   

HRM display and sensor problem build

Rank

Total Posts: 2

Joined 2016-04-01

PM

Hi,

My name is Lucas and I'm actually using ANT for a project at my University.
I began from scratch and after using SimulANT+ to get data from my sensors, an heart rate belt, I took a look at the source code.

And now is my problem, I found that this link : ANT+ HRM display and sensor examples provides a Simulator with an HeartRateDisplay and an HeartRateSensor.

I tought that I just had to build it and launch it, but I got some problems building the HeartRateDisplay.
Here's the error I get : Error Images
These two lines are the problems :
heartRateDisplay.HeartRateDataReceived += HeartRateDisplay_HeartRateDataReceived;
heartRateDisplay.TurnOn();


I tried to build the project, to clean it, using another version of Visual Studio (I'm on Win7, Visual Studio 2015 Community)

So if anyone knows what I have to do, I would be glad to hear you.
That may not be very clear, It's my first two weeks using ANT+ so I'm kinda new to it but I really need to solve this to advance.

Thanks,
Lucas
     
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Did you check the class HeartRateDisplay, if there is a similar event and method like the ones, which VS cannot find? Maybe they've just renamed class members.

Cheers,
OMB      
Rank

Total Posts: 2

Joined 2016-04-01

PM

Hey,

Yeah I checked it but there was no look a like function.

Anyway,changing the Internal Framework resolved the problem ^^
I was using .Net 4.5 and downgrading to .Net 4.0 worked !
I don't really know why but I'll keep it like this.

Thanks for the reply !
Lucas.