I bought a Concept2 a couple of weeks ago and have been trying to get it to talk to my laptop ever since. I have downloaded the SDK and the PMI active-x controls and I am trying to work my way through the 147 page manual, but I am stuck on the first exercise.
The manual explains the process via VBA inside excel (which is something I am quite familiar with) but I don't have excel on my laptop, so I am trying to do it via VB in MS Visual Studio instead, which I have never used before. The manual says it should be fine though, and I like expanding my horizons so a project outside of excel is probably good for me.
So I created a new "Windows Forms Application" in Visual Studio.
Following the instruction manual, in section 2.4, I have brought the active-x controls into my project.
I have then dragged the IFace control into my userform, and per the manual (which is working in excel) thats good enough for my first program to run and show me a force graph.
However when I connect it to the PM5, I get an error message which from the googling I have done is pretty generic and is an SEHException. I assume that in Excel VBA takes care of the more technical stuff for me, where as in VB I am expected to know what I am doing.
My guess is that I need to make some changes in either of the two other files which are included in my Windows Forms Application project to reference the right library or something. The first is "My Project" which appears to be some sort of advanced options, and the second is "App.Config" which currently contains:
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
I know that there isn't a problem with the connection between the PM5 and the laptop because I have been able to get tijmenvangulik's web based tool which he linked on 2nd November to recognize my rowing. His code flew several miles over my head though.
Thanks,
Phil