LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can somebody please tell me the steps to Program USB 6211 with C. Will I get the software to program the device along with the drivers CD that I got when I purchased the Device?

Solved!
Go to solution

Is it compulsary that I need to purchase the Labwindows or there is someother way to program the device using C?

Thanks,

Diya

0 Kudos
Message 1 of 30
(4,759 Views)

Hey Diya,

 

You do not need LabWindows/CVI to program our hardware in C.

 

You can use the NI-DAQmx driver which would be on the driver CD that comes with the device, or it can be downloaded here.  Once installed, there are some great examples in the Windows Start menu under Programs -> National Instruments -> NI-DAQ -> Text-Based Code Support, as well as a C Reference Help Guide.

Regards,
Jake G.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 30
(4,725 Views)

Hi Jake,

Thankyou for the Reply.

Using what can I open the example?

Do I need to install some software on my system to open those examples?(Like TurboC or Ansi C) ??

 

And why isn't my device being recognised by NI DAQ mx Base List Devices??

Do I need to upgrade the DAQ mx driver software or the one which I got with my Installer CD would work?

Thanks again for the reply.

 

Diya

0 Kudos
Message 3 of 30
(4,708 Views)

Can somebody please reply to my question.

Even if I have borland C on my system what is the interface that sends output to the DAQ Usb 6211 from my C program?

Please Help!!

Thanks in advance.

Diya

0 Kudos
Message 4 of 30
(4,673 Views)

Hey Diya,

 

If you are using DAQmx Base, what operating system and version are you using (Windows 7, Mac OS X 10.6)?

 

The Borland C programming environment should allow you tap into our API.  You can find documentation on this in the help files for our drivers (i.e. DAQmx Base).

 

Our starting guide for DAQmx Base is located here, and should help you get up and running with your 6211.

Regards,
Jake G.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 30
(4,669 Views)

Hi Jake,

 

I have NI DAQ-version 9.0.2 installed in my system.

Operating system : XP Service Pack2

I have Borland C++ installed,using which I opened the C Examples that I found in the installer CD that I got along with the device USB 6211.

Now, I have the code ready and I have the device connected to my system(through a USB Port).

Is the DAQ smart enough to take the output that is coming out when I run my C program?

I even looked at the C reference help file, but that doesnt explain any thing about the interface.

How do I create an interface for my C program and the DAQ device?

 

Thanks again,

Diya

0 Kudos
Message 6 of 30
(4,654 Views)

Hey Diya,

 

The example should be able to run as long as you have the USB 6211 and the correct channels selected.  You can see what the device name is in Measurement and Automation Explorer (MAX), which can be found in the National Instruments folder under your Start -> Programs menu. 

 

Which example are you using and what is the device name of the USB 6211 in MAX?

Regards,
Jake G.
National Instruments
Applications Engineer
0 Kudos
Message 7 of 30
(4,632 Views)

Hey Jake,

 

I just tried the first example i.e. the analog output internal clock and the MAX shows my device is detected.

Just hit RUN(C-File) and will there be an output from analog outputs of the device??

 

Regars,

Divya

0 Kudos
Message 8 of 30
(4,624 Views)

Hey Divya,

 

You should be able to run it, but if doesn't work, I found a few links that you may want to look at.

 

How Can I Use The NI-DAQmx ANSI C Function Library With Borland C and Delphi? has specific instructions on using the C library of DAQmx with Borland C.

 

Can I Make NI-DAQmx Calls From Borland Delphi? will show how to use it with certain versions of DAQmx.

Regards,
Jake G.
National Instruments
Applications Engineer
0 Kudos
Message 9 of 30
(4,601 Views)

Hi Jake,

 

From the following link :

http://digital.ni.com/public.nsf/allkb/B09727F89DA3A06C86256F430071D88E?OpenDocument

It is clear that the DAQ device is not very compatible with the Borland C? When I try executing the analog output program I just see a blank screen pop up and no output  coming out of the DAQ card.

I'm not really sure what else needs to be done .

Please Help.

Thanks,

Diya.

0 Kudos
Message 10 of 30
(4,589 Views)