LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opening configuration files

Hi,
In my application I have a "configure" item in my menu. When this menu is selected, a doc/exel/txt file should open. It should have a format something like shown below:
S.No Pin No. Channel Name

Under each of the columns, the user will enter the required values and I need to use them in my program. If opening a file with predescribed format is not possible, then I would like to know how to read the data column wise if, such a file already exists.

Thanx & Regards,
Srini
0 Kudos
Message 1 of 5
(3,055 Views)
you can try using either read from spreadsheet.vi or read lines from file. you should be able to read your config file with out any problems...

Dan
0 Kudos
Message 2 of 5
(3,055 Views)
Hi srini,
See when u do something Like opening a file and asking the user to enter the details,u will not be able to do any error trapping ,ie if he enters some crap what will u do,so why dont u make a user interface ur self and ask the user to enter the data,this u can write to a spread sheet and later read from it for ur use.
0 Kudos
Message 3 of 5
(3,055 Views)
Hi Vicky,
Thanx for the idea. Ithink this wuld be a good option. But I would like to know whether LabVIEW allows an application to open a word/exel document for editing by the user.Is it possible?
0 Kudos
Message 4 of 5
(3,055 Views)
srini wrote:
> Hi Vicky,
> Thanx for the idea. Ithink this wuld be a good option. But I would
> like to know whether LabVIEW allows an application to open a word/exel
> document for editing by the user.Is it possible?

Only through Active X and you need to have the actual Word or Excel
application installed as well. The Active X interface of Microsoft
application frequently changes between versions so you need to modify
LabVIEW programs regularly whenever you install a new MS Office application.

The Word/Excel file format is binary and very complicated and not suited
to be opened directly by LabVIEW. Also its documentation is sort of
limited and its file format changes even more than the Active X
interface of MS applications.

Rolf Kalberma
tter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 5
(3,055 Views)