LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

An Implementation of a simple priority queue

Implement a priority queue, data being read from spreadsheet, reads first row correctly splits into 2 elements, bundles into cluster, and into cluster array to be sorted by array sort. Why is it not reading the second row of the spreadsheet and doing the same? Thanks..
Download All
0 Kudos
Message 1 of 4
(3,103 Views)
First of all, by wiring the constant 10 to the Read From Spreadsheet VI, you're reading all ten rows. You don't need the while loop in that case. You could also wire a -1 and get ALL rows and then process the resulting 2D array. You are also using the Index Array improperly, you've wired constants which means you're going to get the same row/column everytime. Use a For loop to process each row.

I've attached a sample vi that takes your spreadsheet data and sorts by the first column





Message 2 of 4
(3,095 Views)
For those that don't want to download it, here's a SS:

Message Edited by Bill@NGC on 11-16-2006 02:19 AM

Message 3 of 4
(3,102 Views)
Thank you 🙂
0 Kudos
Message 4 of 4
(3,064 Views)