03-14-2012 05:23 AM
I've been given an NI-cDAQ9178 ... and a few modules,
NI-9215, NI-9227, NI-9481, NI-9485
I've also been given the NI-DAQmx 9.4 driver.
I've found a massive header file 'NIDAQmx.h"
and what appears to be a standard '.lib' file "NIDAQmx.lib"
I too have the req-spec to write a regression test suite to control some hardware using the above, in ANSI-C
Given that I'm C proficient, so understand what to do with those files and hope to be using MinGW 'C' or even OpenWatcom 'C'
... Where do I even start looking on how to control these things?
... I need more than a list of primatives ... I need to know what I'm doing.
03-14-2012 09:56 AM
Did you look at any of the examples (C:\Program Files\National Instruments\NI-DAQ\Examples) or open the help (Start>All Programs>National Instruments>NI-DAQ>Text-Based Code Support)?
03-14-2012 12:05 PM
Hi Dennis,
Yes, I took a look! Through reams and reams of nothing that appears relevent.
Call me thick but it's not transparent or obvious what's going on.
I just want to do something simple to start with ....
have a number of these hardware modules ... but to start with I would just like to flip a couple of relays on my 9481 ...
Nothing too difficult ... I could do it easier by flipping a couple of bits on a parallel port connected to a opto-isolated switch.
But I have to use this NI-cDAQ box.
I just can't find any examples where something that simple is going on.
8^|
03-14-2012 01:34 PM
You should perhaps begin with the DAQmx Getting Started to get familiar with the basic concepts. A pretty simple exmple is the Write Digital Chan in \Digital\Generate Values. This writes to multiple lines at once but can be changed to a single line.
03-15-2012 08:57 AM
And has around a 2ms delay.
Many thanks for your help.
This isn't going to be a 10min job as I'd hoped.
8^)