LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and edit a data file

Greetings all. I really need some help with this as I am under a big time constraint. I have not had much experience with file handling. I need to be able to manipulate a data file in the following ways. Display a matrix of model numbers along with their associated parameters. There will be 4-6 parameters for each, consisting of both numeric and text data. I also need to be able to edit any of the models listed, delete any model, add a model, etc... It will then have to be saved back to the original data file. I know I can create the original file with Notepad, tab delimited. Can someone please help me with this? I am not sure how to approach it. The user can not be prompted for the file or path. I can provide the proper path for any VI that is provided. Please help...
 
example of data file
 
Model               ratio                excitation                resistance                boost
 
model1             16                     22                           142                          no
model2             1x/8x                 16                           98                            yes
 
etc..
etc..
 
 
Thanks
0 Kudos
Message 1 of 7
(4,006 Views)
hello,

I've made a quick example just to give you a boost. I hope that this will give the initial start to help you creating the application.

I was developed on Labview 8.2
Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 7
(3,984 Views)
You don't mentions which version of LabVIEW that you are using. Here's something simple in 7.1 that uses the Read/Write Spreadsheet File modified for string data. LabVIEW 8.2 functions are polymorphic and you don't need to edit them to read strings. The data is just displayed in a table. The read writes to a local variable of the table so that it can be a control that can be changed by the user and then saved.
0 Kudos
Message 3 of 7
(3,980 Views)
Thank you both for your help so far. Jorge... any chance you could post this vi in version 7.1? It is all I have just now. We do have version 8.01 but I have to wait another week or so before I can install it. Even still, I would not be able to look at version 8.2. I would like to be able to view both examples that have been posted so that I can learn as much as possible. If it is not possible to post the vi in V7.1, any chance of posting images of each frame of the vi??
 
Thanks again.
0 Kudos
Message 4 of 7
(3,965 Views)
Sorry!

Using Labview 8.2 I only can save to 8.0.

To do something in 7.1 I should have a Labview 7.1 installed on my PC. And I can't do that. But what I've done it's  very similiar to what the other example. I only had created the delete button.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 5 of 7
(3,961 Views)

Jorge... Can I ask you one more favor please? Would you mind uploading the vi you created as a version 8.0 vi? I now have 8.0 on my system. I used the other vi to get an idea on how to do what I need, but when I tried to add the delete function I keep messing it up. I also want to try to add an insert function also.

 

Thanks... I sincerely appreciate it.

Frank

0 Kudos
Message 6 of 7
(3,938 Views)
ok,

In attach follows the 8.0 version. I think that not all the things are going to work

Software developer
www.mcm-electronics.com





PORTUGAL
Message 7 of 7
(3,924 Views)