05-05-2008 12:15 PM
05-05-2008 12:25 PM
Thanks Neil for the main.cpp example.
Now things are more clear.
I think the current unscaled binary read functions that return binary numbers (i16) should return "fixed" linearized binary numbers. Or new functions, to keep compatibility with these "raw data non linear" functions already documented. They are not much useful as they are, imposing to the programmers more and more work.
I noticed the example reads binary, fixes them using a polynomial (very good idea to kill offset, drifts and non linearity in one shot) but return floats, what should not be the goal.
When you scale data, to convert it to volts, current, temperature or any other unit, then it shoud return floats after the additional scalling. But binaries (i16 numbers) should be fixed and return binaries (i16 as well) "linearized" to keep compatibility with the Traditional drivers and API.
Lavio
05-06-2008 04:51 PM
Because we do not have a series M board (only series E right now) I was not able to test the "fixing" or "scaling" routines and then one last question....a doubt that, after thinking about what NI is doing, raised more clear now.
Using the polynomial returned by the NI functions, does it ONLY "fix" offsets and non linearities or does it ALSO SCALE the binary numbers, returning voltage for example (if the channel was set to read voltage) ??
I need to be sure about this. Probably it is the last thing about this issue, to finalize it (this, because as I wrote, we do not have a M board to test right now and the one we had was delivered to a client).
Thanks, Lavio
05-08-2008 01:20 PM - edited 05-08-2008 01:22 PM
05-13-2008 04:53 AM
05-13-2008 08:39 AM - edited 05-13-2008 08:42 AM
05-13-2008 11:55 AM - edited 05-13-2008 11:58 AM
06-07-2008 02:01 PM
... user clicks the start button in out system
ScanOn(1) (14:14:42) ---> function to start the acquisition
[PG39MCSV 3.0.7 NAT: ] DAQmxError(-50103) [IniciarVarredura, StartTask AI]: The specified resource is reserved. The operation could not be completed as specified. (06-Jun-2008 14:15).
Fire com Status<>running
Fire com Status<>running
... it repeats for ever...
06-07-2008 02:01 PM
... user clicks the start button in out system
ScanOn(1) (14:14:42) ---> function to start the acquisition
[PG39MCSV 3.0.7 NAT: ] DAQmxError(-50103) [IniciarVarredura, StartTask AI]: The specified resource is reserved. The operation could not be completed as specified. (06-Jun-2008 14:15).
Fire com Status<>running
Fire com Status<>running
... it repeats for ever...
06-07-2008 02:12 PM