08-16-2010 09:41 PM - edited 08-16-2010 09:42 PM
hi,
can any one help me to make a page which acts as Data Entry page for me?
(I mean,have free space for the user to type detaile like
Name:.......
Date:.......
age:........etc.....,
and also I need to know how to save these data that are a mix of digit & texts?
PS:I already have a saving system in my main application that saves the Voltages for me from when I start the appl till I stop it,but I also need these log-in data,to be added some where,even to the same excel that is saving my V?
Solved! Go to Solution.
08-17-2010 03:14 AM
There are many ways to do this.
You could prompt the user to enter his/her details before data acquisition starts using the prompt user for input VI. Then depending on how you want to save it (binary, text or spreadsheet), build a string array and then use write to (binary, text or spreadsheet) VI.
08-17-2010 08:00 AM
From an architecture stand point make a typedf cluster (personal info cluster) with all the required fields (string name, int age.......) then I would break down the functions on this datatype that are required "personal info cluster to string.vi" that returns a string from (just an unbundle by name and a few string formators) and build up froim there. Using the ytpdef cluster will make your application very scalable and easy to maintain in the longrun.
08-17-2010 10:01 AM
i'd agree with falkpl that putting all the controls in a cluster (and then optionally saving it as a typedef) is the simplest user interface solution.
To save that data to excel you can then turn your dates/numbers into strings using the standard vis in the numbers and date/time palette. Then perhaps save the whole of it as a 2-D array with one column of Labels and one column of data:
[[Name][Michael]]
[[Date][2010-8-17 9:47:00]]
etc.
if you make a typedef of the cluster you could then create a nice sub-vi to do the saving for you. I've attached a proof-of-concept vi in LV7.1
08-17-2010 10:01 PM
thx for your advices,