01-24-2012 09:40 AM
hi,
How to design and list out in ascending order from minimum to maximum with 6 inputs in Labview?
This is easy to write it in C++, but not in Labview,may be I am new to Labview. i manage to get the 1st and the 6th after compared, but i cant get 2nd, 3rd, 4th, 5th.
and can i write c++ language in Labview VI ?
thanks.
Solved! Go to Solution.
01-24-2012 09:45 AM
Try this:
01-24-2012 09:48 AM
01-24-2012 09:50 AM
Here you go.
You can write code in C++ and call it from within LabView using a Code Library function, but it is totally unnecessary and more difficult.
01-24-2012 09:53 AM
..or put your list of competitors into a cluster:
01-24-2012 10:30 AM
Thank a lots
01-24-2012 02:28 PM
Hi Staffs,
When I was a wee G-babe I was still thinking in C so I coded up a bubble sort that rated as "Ugly" for the first The Good The Bad and the Ugly" show from years ago.
LV will also sort arrays of clusters using the first element in the cluster to do the sort and tie-breakers are handled by the second element in the cluster etc.
A lot cleaner than a bubble sort.
ben
03-16-2012 09:30 AM
Hi,
how to make this Vi, can show the name and time by ascending order ? eg. 1st Competitor A 15133
how to make it to show Name and time , ( time already have but how to show name )?
like this one only show time , how to show the competitor that finish 1st by ascending order ?
03-17-2012 03:06 AM
03-18-2012 12:01 PM
Hi,
I read before , but I don't understand about cluster. But never mind, I will have look on cluster. Thanks A lot!
Regards,
Sam