LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

log-in / Data Entry

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(2,958 Views)

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.

0 Kudos
Message 2 of 5
(2,939 Views)

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.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 5
(2,929 Views)
Solution
Accepted by topic author always smile

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

0 Kudos
Message 4 of 5
(2,918 Views)

thx for your advices,

0 Kudos
Message 5 of 5
(2,898 Views)