07-15-2010 09:33 AM
Hi,
I need to Convert a text file in a specific format to table.
Please find the attachment for the text file.
the table contains columns Section, Address, Data, Attribute.
Anybody please share me a sample VI to implement the above.
-mfp.
07-15-2010 09:55 AM
That's in an ".ini" file format. Use the LabVIEW Configuration VIs to read the file. There's an example that ships with LabVIEW. Have you actually tried to look? I ask because you seem to have a tendency to ask questions without any apparent effort on your part to show that you've actually tried something.
07-15-2010 09:58 AM
Hi,
You are mistaken, Sorry.
Before posting every message, i try the examples to get the issue solved.
but unfortunately, sometimes, i could not able to solve the problems, thats why i am asking for the help.
Please help.
-mfp.
07-15-2010 10:17 AM
I did just help. I told you that you need to use the Configuration File VIs to read the file. If you don't know how to use them, look at the example that ships with LabVIEW. Open the Example Finder (Help -> Find Examples), and search for "configuration". Open the example called "Read Configuration Settings File". You need to use a loop to iterate through your sections, and then read each of the keys in that section. Auto-indexing on the for-loop will create your table.
Try it. Learn to fish.
07-15-2010 11:29 PM
Sorry for disturbing again..
Anybody share me a sample VI.
-mfp.
07-16-2010 12:12 AM
Please try to understand what smercurio told you : We can help you learn how to use LabVIEW, but we are not here to help you do your home work.
If you want help, you should show us what you have attempted yet : attach an example of your code. This will help us understand where you are stuck. If you don't, you will send us a very strong negative message.
07-16-2010 12:35 AM
Okay.
Can i ask one more question?
My File contains a Key Word Named Sections, How shall i count the number of "Sections" in the file.
I need the Count Value Only.
-mfp.
07-16-2010 01:10 AM
Message received...
07-16-2010 08:48 AM - edited 07-16-2010 08:48 AM
You don't need to count anything. Honestly, did you look at the Configuration File VIs? The Get Section Names will return to you all of the section names as an array. You can auto-index a for-loop directly from this.