So I am tinkering with a flexible data logger. Of course I need some way of persisting the channel information. I have noticed that if you create a project scoped DAQmx task then in a compiled application LV adds in the NI-DAQmx.ini file with all the task/channel information.
Does anybody know of any VIs (perhaps tucked away in VI.lib or something) that I could use to read this information? The ini is nicely section formatted etc so I can use the OpenG or similar VIs to read it, but I was hoping there would be code already written somewhere to interpret these rather than write my own from scratch (especially the typedefs...).
NI-DAQmx.ini
Started by neil, Feb 22 2012 03:59 PM
4 replies to this topic
#2
Posted 27 March 2012 - 09:39 PM
There are several VI's located in the file operations VI's that allow you to create and read configuration files, I think these would allow you to do what you are looking for.
#3
Posted 02 April 2012 - 11:19 AM
rehelmin, on 27 March 2012 - 09:39 PM, said:
There are several VI's located in the file operations VI's that allow you to create and read configuration files, I think these would allow you to do what you are looking for.
I think what neil is looking for is something that reads the specific format of the NI-DAQmx.ini file, not something for configuration files in general.
#4
Posted 02 April 2012 - 12:18 PM
Is this what you are looking for
NI System Configuration API Help
It is an API that allows you to access tasks
NI System Configuration API Help
It is an API that allows you to access tasks
#5
Posted 02 April 2012 - 12:31 PM
crelf that is exactly what I am after. I figure it must exist somewhere as the ini file is automatically parsed by the built application.













