Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Help me to put nidaqmxbase into lib : DAQmxBaseReadAnalogF64 never update samplesNread params

Hello,

I try to include all the nidaqmx process into a shared lib to be able to load it when i want, but DAQmxBaseReadAnalogF64 seem to change when it's use from an executable or from a shared library. I dont know how to work arround, please i need help...

My circular probleme :

- I need to daemonize my logger

- nidaqmxbase dont love his main lib (nidaqmxbase.so) be loaded before a fork

- i need to put nidaq code into lib

- But DAQmxBaseReadAnalogF64 never upate the readed sample count variable

So i dont know how many sample be readed !

I can reproduce this over OpenSuze5, Redhat11.2 and Debian5.0 and 6.0 (Nidaqmxbase.3.4)

I probably do some mistakes with the compilation flags

Source for building exe and lib (based on AcquiereNsample) and make  files is joined

1 - un tar the package

2 - cd into unziped dir

3 - do make

4 - ./acquire

Thanks in advance

Sorry for my bad english

Rom1nux

PS : if you want you can test the same process into executable here https://decibel.ni.com/content/message/24303, you can see DAQmxBaseReadAnalogF64 working well over OpenSuze5, Redhat11.2 and Debian5.0 and 6.0 if it's not daemonized !

0 Kudos
Message 1 of 1
(3,243 Views)