Closed alexporter8013 closed 5 years ago
I updated my fork with these lines to replace the current way of getting number of channels:
outdata_ref = Ref{Cuint}()
DAQmxGetTaskNumChans(t.th, outdata_ref)
num_channels = outdata_ref.x
It seems to work. Will commence a pull request once I'm finished breaking then fixing the package.
When running the getproperties function. The call takes an excessive amount of time. This isn't a problem when just using the REPL and exploring, but any type of data acquisition script will likely suffer catastrophic timing results due to the use of getproperties in every read and write call.
Recommend either a struct for a task (allows people to break things by using native calls on a task instead of high level calls) or just multiple dispatch to have a more focused ccall specifically for reads and writes.