I am trying to save waveform data in a C program using NI-HWS function niHWS_StoreAnalogWfmF64. The c program is actually part of a matlab mex file. Until now I have been succesfully running 5112 digitizers using niscope, so I am sure I am not doing something obviously wrong (such as not including the niHWS.h or linking against nihws.lib).
However, the problem is with the link stage though (I think). When linking, I get the message:
undefined reference to '_niHWS_StoreAnalogWfmF64@44'
In the same c file, I am using niscope functions with no problem. They seem to link ok.
Is there something wrong with the nihws.lib file that I don't know about? I am using the lcc compiler that bundles with matlab.
thanks
V