LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing data from an array

Hi all
I have a little problem regarding the use of arrays and obtaining the integer value from an index of one of the columns. I need to implement a program that reads data from serial ports. There are four serial ports and it is assumed that independant sets of data will be retrieved from each of these. I need my program to continuously loop and check to see if the data has changed at any of the serial ports (i've got this part working). The way it can be manually determined is if the file is opened and at the top of the data there is the error number which is incremented every time the data is changed. I have put the data into a 2D array for later use and have then put just the first column into a single array in the hope of bein
g able to convert it to an integer or some form that can be compared. I need the highest error number for each peripheral to be stored (probably need separate loops/case for each serial port? - multitasking?) and when the data is next sent, i need to be able to compare it to see if the error number has changed and if it hasn't just continue looping and if it has make the new value the highest (in which case the rest of the data needs to manipulated and automatically updated in the database). I have been thrown head first into this project and to this date had only been a casual Labview programmer (V6i)
Can anyone help?
Ive attached the snippet that is for comapring the data only if anyone can build upon it (or scrap it!)
Thanks
Ridge
0 Kudos
Message 1 of 3
(2,797 Views)
To compare the error is easy,attached is a little modification to your vi with shift register and Array max and min function. I'm not sure if this is the only problem.
Message 2 of 3
(2,797 Views)
Hi,
thanks for that - yeah thats not the only problem - but without that working I couldnt implement or test any other parts. Thats the main problem and i'll see how i go from there.
Thanks
0 Kudos
Message 3 of 3
(2,797 Views)