LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create session id from different string controls

how to create session id from different string controls
0 Kudos
Message 1 of 7
(3,356 Views)
fais,

Can you please post more information on this issue? I am not sure what you are asking for in your question. Thank you.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 7
(3,356 Views)
well i have some control strings, like Name,surname,
date of birth and date. with this strings i would like
to genrate session id that takes date in yymmdd format,then first two alphabets of surname,then name, then date of birth. so which lab view functions should i use for that ?
0 Kudos
Message 3 of 7
(3,356 Views)
fais,

Please create the VI you are talking about and save some default data into all of the controls. Also on the front panel, place the session ID that should be generated by that data. Now, post your VI to a response so I can download it. I can then take this VI and help you create the functionality. (Please post what version of LabVIEW you are using.)

My guess it that you are going to need to use a good number of string concatenations as well as a few string indexes to get parts of strings out. As for the date, you can use a Property node with the Numeric Text.Text property to get the actual string displayed on the front panel for the date and parse out the parts that you want.

Randy Hoskin
Applications Engineer
National Instruments
h
ttp://www.ni.com/ask
0 Kudos
Message 4 of 7
(3,356 Views)
thanks for your reply. well i am sending you the vi and i need the generated string that should be in following format.
yymmdd first 2 alphabets of last name first 2 alphabets of first name yy of birth.
i am using labview version 6.1.
with regards
0 Kudos
Message 5 of 7
(3,356 Views)
Try this and let me know how it works.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 6 of 7
(3,356 Views)
thanks a lot it is working
0 Kudos
Message 7 of 7
(3,356 Views)