I am trying to read data from the NIDAQ as I open a relay. However I do not think this is possible in vee.
I have two different modules. Ones that reads data and one that turns relays on and off. However I have to start reading the data using the ni.DAQmxReadAnalogF64 and then use the close relay function, to capture how the data changed during that time. I am able to start reading the data but it will only turn the relay on after the NI daq finished recording. Also if i put the relay open before the nidaq-read then i can not see the change since the relay opened before the read started. Any suggestions?
I have two different modules. Ones that reads data and one that turns relays on and off. However I have to start reading the data using the ni.DAQmxReadAnalogF64 and then use the close relay function, to capture how the data changed during that time. I am able to start reading the data but it will only turn the relay on after the NI daq finished recording. Also if i put the relay open before the nidaq-read then i can not see the change since the relay opened before the read started. Any suggestions?