Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

what to install for .Net C# development

I'm using a USB6009 device. From what I've read, there is good .Net support for using the various DAQmx method.

 

Can someone tell me which installer to download so I can have the .Net support from Visual Studio? I don't need to complete suite of tools just the .Net and Visual Studio support. (other people in my company use the other tools targeted for experimenting with the various hardware devices. I know I'm using USB6009 IO device and I need to talk to it via C#. 

 

I am using VS2010 and VS2008

 

NI has a vast number of products and I've spent a good 30 minutes trying to figure out what I need. BUt I'm still not sure.

 

0 Kudos
Message 1 of 4
(3,861 Views)

Hello Mitch7,

 

After looking at your question, I believe the best option for you is to download DAQmx 9.2.2 for USB-6009. Unfortunately, DAQmx 9.2.2, which is the latest driver, doesn't currently support .NET programming in Visual Studio 2010 but it does support ANSI C programming in it. If you have Visual Studio 2008, you should be able to program with your USB-6009 without any issues with DAQmx 9.2.2.


Jim St
National Instruments
RF Product Support Engineer
Message 2 of 4
(3,848 Views)

Jim,

 

Thanks for the link. I ran that installer, found the assemblies it instaled, and then added references to those assemblies from my project.My project now runs and I can use the DAQmx calls.

 

Keep in mind that over the past few weeks, I have run other NI installers to get the functions that are used by the existing unmanaged C++ working. That NI installer took about 15 minutes and installed a whole bunch of services and also screws up the ipconfig on my PC after a reboot (It adds a default route of 0.0.0.0. when the PC restarts. This is a known problem BTW).

 

A couple of more questions:

 

1) On a clean system, is that the only installer I would need to run? Or do I even need to run the installer? Can I just redistribute the assemblies?

 

2) The installer put everything under "d:\temp\NiDaq_installed". This is a strange locations. Most of theNI  docs I've read mention that they should have been put under program files\National Instruments ...  I ran the installer as an administrator. Any idea why it is under D:\temp?

 

3) I am hoping that for deploying our product to a customer, we only need to copy the assemblies and dlls, and not force the customer to run an NI installer. Is that possible?

 

My dev machine is Win7 64 and I am using VS2010 for most work. I do have VS2008 also installed.

 

 

Mitch

 

 

 

 

 

0 Kudos
Message 3 of 4
(3,839 Views)

Hello Mitch7,

 

Not a problem. As for your questions, I have answered them below:

 

1) On a clean system, is that the only installer I would need to run? Or do I even need to run the installer? Can I just redistribute the assemblies?

If you want to develop on a new machine, you will need to have the full DAQmx driver installed. Moving the assemblies will not be enough to give you access to the cards.

 

2) The installer put everything under "d:\temp\NiDaq_installed". This is a strange locations. Most of theNI  docs I've read mention that they should have been put under program files\National Instruments ...  I ran the installer as an administrator. Any idea why it is under D:\temp?

Not I am not sure why this is under this temp folder. Usually the temp folder can have the extracted installed documents for DAQmx. Has a National Instruments folder been created?

 

3) I am hoping that for deploying our product to a customer, we only need to copy the assemblies and dlls, and not force the customer to run an NI installer. Is that possible?

For deploying this on a different machine as an exe, you don't need to have the full driver installed only the run-time. There are two different run-times that include MAX or don't include it. I would HIGHLY advise installing MAX because if the customer has any problems with the cards, this will be the best way to debug the problem.  I have also found a Knowledgebase explaining how to install this runtime after installing exe.


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 4 of 4
(3,822 Views)