10-23-2010 01:45 AM
hello
i am beginer of labview .
my front panel is communicating with my hardware via serial port
i am also getting a data also.
i have fromated the answer also
now i have to put in the multicolumn list box.
e.g.
my serial port string is :001 01 20 23 45 45 00 05 06 00 00
Formated string 01 20:23:45/45:00:05 06 00 00
now above formated string i have to add in the multicolum listbox
1st column 01
2nd column 20:23:45/45:00:05
3rd column 06
4th column 00
5th column 00
i hope you people help me
thanks
Lokesh
10-23-2010 12:53 PM
hello
here an example in attachement
i supposed that you could have more than one acquisition so
for example i initialised array of 10 records with 5 columns
then filling it
Regards
tinnitus
10-23-2010 03:32 PM
Or just use Spreadsheet String to Array with a space as the delimiter instead of the loop with the match pattern.
10-23-2010 04:02 PM - edited 10-23-2010 04:03 PM
A couple of mistakes.
You initialize an array of 5 records with 10 elements instead of vice versa.
Dennis is right, use "spreadsheet string to array" instead. Here's a quick draft (note that the delimiter is set to \'codes, it's a space constant)
Is this loop interactive, i.e. does it need to update the records as the arrive with each iteration? If this is not the case, you should update the ItemNames only once after the loop has finished. For example as follows.
10-23-2010 04:03 PM - edited 10-23-2010 04:09 PM
Right
about interactivity it was not specified i presumed that because it is often the case
yes 5 is ten an ten is 5
modified vi
10-24-2010 01:59 AM
Thanks a lot
it is very useful for me.