04-12-2016 12:01 PM
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?
04-12-2016 01:10 PM
04-12-2016 01:13 PM
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.