04-26-2009 05:31 PM
04-26-2009 06:31 PM
Could you post an image of your VI (.PNG format)? I don't have 8.6 here, but it doesn't sound like what you are doing is hard.
Thanks.
-Matt
04-26-2009 06:57 PM - edited 04-26-2009 06:59 PM
Wow, that's LabVIEW... but almost not really a LabVIEW question.
If you really want to manipulate your strings using MathScript nodes, you may need to mention 'using MathScript' in your subject.
Someone who has a bit of experience using MathScript nodes or MATLAB may be able to help you with your chosen method.
This is how I'd read a spreadsheet, sort it, then write it back again...
04-26-2009 11:15 PM
04-27-2009 11:36 AM
I agree with troy that mathscript is probably the wrong tool for all this. Can you explain what the VI is actually supposed to do?
04-27-2009 11:47 AM
04-27-2009 11:55 AM
I am not going to dissect your mathscript code, so please be a bit more specific in your specification.
What is the input?
What is the desired output?
Your file has two columns, a name and a number.
leaf34 wrote:
Is there way without mathscript?
Of course! I suspect all you probably need is some graphical code the size of a postage stamp. 😉
04-27-2009 12:41 PM
04-27-2009 01:44 PM
You could set them up as an array of clusters and then use the LabVIEW sort function -- it will sort based on the first element of the cluster, so you would need to build two different arrays of clusters (one with the name first, the other with the time first).
04-27-2009 02:52 PM - edited 04-27-2009 02:53 PM
leaf34,
It sounds like you are trying to create a tournament bracket? Is this the kind of output you are looking for?