09-06-2011 12:58 PM
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
Solved! Go to Solution.
09-08-2011 02:07 PM - edited 09-08-2011 02:07 PM
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
09-09-2011 11:47 AM
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 Language | Visual 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.
09-09-2011 02:24 PM
Thanks for your feedback!