03-26-2013 06:04 AM
Hi.
First, I hope I have posted this in the most suitable board.
Recently I got involved in a project at my university as a programmer for a research group which study modal analysis. They are utilizing National Instrument measuring equipment and TEDS compatible accelerometers. This research group want to make measurements with a sensor array consisting of (around) 50 accelerometers. They want to make the measuremnts in MatLab with the session based interface in the data aquition toolbox.
The thing is that im developing an interface between MatLab and NI-DAQmx which can be utilized by my mex built-in MatLab functions (C/C++ language). Up until now I have been able to extract basic TEDS of several individual sensors and return this to MatLab as a MatLab struct. But I'm having trouble with getting information about the sensor type (accelerometer, microphone, etc...), the sensitivity of the sensor, and the physical units of sensitivity. This information I would like to use to auto setup channels in MatLab DAQ-toolbox, such that I only have to scan the array of available sensors, and then set each channel up in my MatLab-DAQ session.
I have been looking at functionality in the NI-DAQmx C reference -> C Properties -> Physical Channel Properties under TEDS. Here I found functionality for retreiving basic TEDS information which works great, furthermore I found functionality for retreiving the TEDS bitstream and templateID, but I'm having trouble decoding information. My reference for decoding information from the TEDS sensor is IEEE 1451.4 and The IEEE 1451.4 Standard for Smart Transducers but the data return from NI-DAQmx functions does not seems right.
In desperation for a solution to this problem I have looked at NI-DAQmx C reference -> C Properties -> Channel Properties which I didn't have any luck with either for retrieving the required information.
I have also been searching this forum and google for something that might give me hint on how to retrieve information and if neccesary decode the information required.
The reason for being so hardheaded about solving this problem is that, when I use NI MAX software to read sensors TEDS info, it is possible for NI MAX to retrieve information that I require. And to knwoledge is NI MAX using NI-DAQmx interface to communicate with the hardware, so this should not be impossible to do.
Hope someone can give me some hint on how to go around/solve this problem.
Regards,
Kent