Jump to content


- - - - -

NI-DAQmx.ini


4 replies to this topic

#1 neil

    Very Active

  • Members
  • PipPipPip
  • 209 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2011
  • Since:2004

Posted 22 February 2012 - 03:59 PM

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...).

#2 rehelmin

    One hit wonder!

  • Premium Member
  • 1 posts
  • Version:LabVIEW 2011
  • Since:2010

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 crelf

    I'm a LAVA, not a fighter.

  • V I Engineering, Inc.
  • 5,535 posts
  • Version:LabVIEW 2011
  • Since:1993

Posted 02 April 2012 - 11:19 AM

View Postrehelmin, 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.
Posted Image

#4 ASTDan

    Extremely Active

  • Members
  • PipPipPipPip
  • 338 posts
  • Version:LabVIEW 8.6
  • Since:2009

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

#5 neil

    Very Active

  • Members
  • PipPipPip
  • 209 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2011
  • Since:2004

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.