Products for USB Sensing and Control
It is currently Mon Nov 24, 2014 8:44 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Tue Aug 16, 2011 10:51 am 
Offline
Phidgetsian

Joined: Tue Aug 16, 2011 10:46 am
Posts: 7
Hello,

Is there anyone using Visual Studio 2010 and .NET 4.0? I don't believe it's possible but I'm wondering if anyone has been able to make it work.

I'm using the Phidgets Spatial 0/0/3 - 1049, but if you can get the libraries to work with 1 device it might work with another.

Thanks,
Cody


Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 11:19 am 
I don't see why it wouldn't work. You will just need to have .NET 3.5 also installed on the system alongside 4.0 to use the Phidget Libraries.


Top
  
 
PostPosted: Tue Aug 16, 2011 11:34 am 
Offline
Phidgetsian

Joined: Tue Aug 16, 2011 10:46 am
Posts: 7
Sure, but a project has a target .NET framework. And I'm wondering if the Accelerometer could work with 4.0.

Screenshot for reference


Attachments:
File comment: Changing the .NET framework in VS2010
framework.jpg
framework.jpg [ 144.74 KiB | Viewed 847 times ]
Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 11:38 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2644
Location: Canada
The libraries are compatible with .NET 2.0 and 3.5.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 11:46 am 
Offline
Phidgetsian

Joined: Tue Aug 16, 2011 10:46 am
Posts: 7
Thank you. Are there any future plans for 4.0 libraries?

Also, because the libraries are for 2.0 and 3.5 doesn't mean that it won't work in VS2010, correct?


Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 11:50 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2644
Location: Canada
Right, 2010 works fine.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 12:07 pm 
Offline
Phidgetsian

Joined: Tue Aug 16, 2011 10:46 am
Posts: 7
Any future plans for 4.0 libraries?


Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 3:09 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2644
Location: Canada
What feature of 4.0 would make it interesting enough for a dedicated library? I don't see Microsoft removing support for 2.0/3.5 development anytime soon...

-Patrick


Top
 Profile Send private message  
 
PostPosted: Tue Aug 16, 2011 4:36 pm 
Offline
Phidgetsian

Joined: Tue Aug 16, 2011 10:46 am
Posts: 7
Basically, the two pieces of hardware I'm working with (1049 included) do not work with the same .NET libraries. Also, I'm just asking if/when libraries for 4.0 will be available. Not trying to make a case for it.

Thanks for getting back to me.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 05, 2012 7:12 am 
Offline
Fresh meat

Joined: Thu Apr 05, 2012 7:00 am
Posts: 2
Hi,

I just tried to play around with phidgets for the first time and failed... Could anybody tell me how s/he got the C# libraries to work under .NET 4/MSVS 2010? Both installers I found so far [1, 2] told me they'd require .NET version 1.1.4322 and ask if I would like to obtain it from the web now. It does not matter what button I click, both close the installer. I tried to install older versions of .NET but haven't been successful.

Thanks,
iko


[1] http://grouplab.cpsc.ucalgary.ca/softwa ... v1_0_3.msi
[2] http://grouplab.cpsc.ucalgary.ca/softwa ... v1_3_5.msi


--- edit ---
Okay, I figured out that [1] has actually nothing to do with Phidgets at all.

The GroupLab.Phidgets.NET Library page [3] states that the library is deprecated. I should go to [4] and select the link for Shared Phidgets. Well, there is no "link for Shared Phidgets" -- anyway it is not recognizable as such. The only reasonable link is "Phidgets .NET", which leads to a site just containing a link to the deprecated beta again. I would appreciate some clarification on what is the most current and recommended version and how I can get it to work. Thanks!

[3] http://grouplab.cpsc.ucalgary.ca/software/phidgets/
[4] http://grouplab.cpsc.ucalgary.ca/software/


Top
 Profile Send private message  
 
PostPosted: Thu Apr 05, 2012 9:05 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2644
Location: Canada
Grouplab is definitely the wrong place to look for drivers - these at like 5-6 years old. Our current libraries work with .NET 3.5.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Fri Apr 06, 2012 2:34 am 
Offline
Fresh meat

Joined: Thu Apr 05, 2012 7:00 am
Posts: 2
Thanks for your your answer, Patrick.

I have no idea what the relation between Grouplab and Phidgets is/was, anyway I finally figured out what to do. It seems like a good idea to post the solution here for fellows running into the same problem in the future, and stumbling upon this thread, so here you are: you have to install the common drivers from [1] and then manually add the .NET assembly reference in your C# solution from the installation path (in the current version 2.1.8, it's called Phidget21.NET.dll), then you're ready to go. Also notice the Getting Started Guide, API Reference and samples at [2].

Generally, I would recommend updating the web sites I cited in my previous post above (if anybody responsible for the Grouplab sites reads this anyway) and to add some links, since they are the most promising google search results for "Pidgets programming in C#", and cause a lot of confusion for Phidget n00bs indeed.

Thanks and happy developing,
iko

[1] http://www.phidgets.com/drivers.php
[2] http://www.phidgets.com/programming_resources.php


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group