Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing code for cDAQ-9188

Solved!
Go to solution

Hi,

 

I was given an Ethernet chassis cDAQ-9188 and three modules to work with. I was told to find out how to control those modules without using LabVIEW, just writing my own code. The options for writing my own code are Visual Basic, C#, ANSI C or VEE. I have never work with NI hardware before and my programming skills aren't too advanced, so I'll have to start from scratch.

 

Having this in mind, I have some question:

 

1- Can I communicate and send commands to the chassis via telnet?

 

2- Can I write my own code to communicate with the chassis and modules with either of those languages? If Yes, which one should be better (more flexible and simple)? Do you have any examples as a starting point?

 

3- Which other tool or programming tool can I used to communicate with the chassis without the need of LabVIEW or Measurement & Automation Explorer?

 

Thanks

 

 

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

Hello!

 

You might want to check out Measurement Studio.  It's a useful tool for text-based programmers. Here's a link to some information about it. You can definitely use languages other than LabVIEW.

 

http://zone.ni.com/devzone/cda/tut/p/id/4807

Michael B.
Applications Engineer
0 Kudos
Message 2 of 4
(3,609 Views)
Solution
Accepted by topic author mtatim

You'll want to use the NI-DAQmx driver to communicate with the chassis.  It does not support telnet.  NI-DAQmx support LabVIEW as well as these other programming languages:

Programming LanguageVisual Studio Versions Supported by NI-DAQmx
ANSI C 2003, 2005, 2008, and 2010
Visual C++ MFC1 20052 and 20083
.NET Framework 2.0 Languages
(C# and Visual Basic.NET)
2005
.NET Framework 3.5 Languages
(C# and Visual Basic.NET)
2008
.NET Framework 4.0 Languages
(C# and Visual Basic.NET)
20104

 

When you install the NI-DAQmx driver, examples are also installed that show how to use the API.  This can help you find them: Location of ANSI C NI-DAQmx Shipping Examples and DAQmx Library File for Windows

 

You'll need to use Measurement and Automation Explorer in order to add and reserve the cDAQ-9188 chassis.  However, this can also be done programmatically using functions in the NI-DAQmx API.

Seth B.
Principal Test Engineer | National Instruments
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 3 of 4
(3,595 Views)

Thanks for your feedback!

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