LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add comments to the file I'll save?

Hi,

I would like to add a comment associated to a graph I've plotted before saving it. In more details: my application plots graphs, then I would like to compare this graph with other saved graphs. My aim would to be able to see the repertory where the files are saved and to see the comments linked with the saved  files  before opening  the one I want to compare  with the displayed  graph. In fact, I will have a lot of tested systems and it won't be easy to retreive the one I want just by viewing the filenames. Is it possible to do it?

Any advices are welcome, thanks anticipatively...

François Glasset.

PS: for information, I'm using LabVIEW 7.1

0 Kudos
Message 1 of 7
(3,172 Views)
Hi
 
In your case I would use a database to store all informations and a link to the plot, which may be saved as waveform (or anything else).
To load the signal, you can easily retrieve the names and the corresponding information from the database. After a correct selection, you can retrieve the path to load the signal.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 7
(3,160 Views)

Hi,

 

I agree! Try a database! It is so handy when it comes to process data! It doesn't need to be complicated, even a simple spreadsheet txt file could do the trick!

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 3 of 7
(3,157 Views)
Thanks for the good informations, I was not in the right direction!

Now I've insered the datafile, I still have some problems (In fact I'm a quite new user, with still some difficulties) I attached my code(simplified to reduce size) for a better comprehension...

First of all, I'm not able to display the  description and the pathname of all my saved data in a listbox (better, in a multicolomn listbox to display path and description in two colomns).

Second, what about splitting information from the cluster if I want to plot a saved graph? When I tried, my "XY graph wire" was automatically changed into an array of values!

thanks a lot again,

François Glasset.
0 Kudos
Message 4 of 7
(3,131 Views)
Hi again...
Well, I wrote this post a little bit too fast: after some "investigations" I succeded to retrieve a part of my data to use my graphs, but I still don't know how to display the path names of my saved data and the informations about it into a list available in the front panel. The best would be a listbox with both informations (path name and informations about it), or a tree to be able to save my data into different directories and to navigate into it, but is it possible?

Any ideas are welcome,

thanks for your help.

François.
0 Kudos
Message 5 of 7
(3,112 Views)
Hi,
 
What you did with the listbox is wrong. You transformed the path and the other
strings into an array of bytes to feed the listbox. With that you set the actual value
of the listbox but you don't change the content of it.
 
I included a vi (7.1) to show you an example of how to use a multicol. Listbox.
 
You have to use a property node change the name of the diferent items of
the listbox. After that, when a user click on the listbox, he can select one row
for example. The value returned by the listbox will be the number of the row
clicked. If multiple row can be selected (right click on the listbox front panel
to see some of the properties) it will be an array that will be returned.
 
For example, you click on the first row => you get 0 from the listbox.
 
The property I used to change the item names is of course : Item names 
It is a 2D array of strings that correspond to the item names.
 
To fill in the listbox with the path and the descriptions, you have to transform
the path into a string (path to string vi ( string => string/array/path conversion)
 
So, you could make an array of paths that you would change to an array of strings =>
Build a 2D array with this array and another array containing the descritpions =>
transpose this array (because when you build a 2D array with 2 1D array, the first array
will be the first row and the second, the second row, etc =>
Feed the listbox property node with the 2D array
 
 
 
Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 6 of 7
(3,105 Views)

Hi Dai,

Thanks a lot for all those great informations, really usefull for a rookie like me Smiley Wink

Greetings,
 
François.
0 Kudos
Message 7 of 7
(3,083 Views)