LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

INI file with section name without data

I have created an ini file using LabWindows CVI 2013 and want to create a section name that has no data similar to this:

 

[INTERFACE]

Interface Type = Serial

 

[GPIB]

 

[SERIAL]

 

 

Any ideas on how to create the [GPIB] and [SERIAL] sections without any data?

Also, is there a way to add comments to the the sectionName as well as to the tagName data?

0 Kudos
Message 1 of 3
(3,581 Views)
What have you tried so far?
Daniel Dorroh
National Instruments
0 Kudos
Message 2 of 3
(3,574 Views)

This is what I fould I had to do:

 

      /* create section names */
      Ini_PutInt(HandlerConfigObj, "GPIB",   "Dummy", 0);
      Ini_PutInt(HandlerConfigObj, "SERIAL", "Dummy", 0);
      Ini_RemoveItem(HandlerConfigObj, "GPIB",   "Dummy");
      Ini_RemoveItem(HandlerConfigObj, "SERIAL", "Dummy");

 

Seems like there should be a function to create just the section name.

0 Kudos
Message 3 of 3
(3,572 Views)