LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing live data to a saved text file

I have written a VI to send serial commands to test PCBs for my department.  The data is written to a text file with the following format: Time, Command Sent, Command Response.  I would like to be able to compare the data from a "golden" board to each board tested.  I'm sending about 130 commands and would rather have the software compare the results than doing it manually.  I only need to compare the Command Response.  I don't care about the Time and Command Sent.  Any ideas would be greatly appreciated?  I am a new user to LabVIEW so please be kind. 
 
I'm using LabVIEW 8.20
 
Thanks
0 Kudos
Message 1 of 4
(2,865 Views)
you can modify the read from spreadsheet vi to read in strings by replacing the output array and the 1st line output array to string arrays and change the format specifier to %s
 
Then you can select the columns that you want to compare and use the boolean compare (it will accept array inputs) the output will be the result array for each element compare then you can use the and array elements function to get a overall pass/fail result.  see the attached vi's
 
 
hope this helps
 
-James
 
use the .lib

Message Edited by James R on 11-16-2006 12:38 PM

Message Edited by James R on 11-16-2006 12:45 PM

- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 2 of 4
(2,859 Views)
sorry see attached files
- James

Using LV 2012 on Windows 7 64 bit
Download All
0 Kudos
Message 3 of 4
(2,835 Views)

Thank you for the reply James!  I ran the samples you sent.  They are an excellent starting point.  My response data has commas in it, so I will have to tweak the format a little.  Thanks again for the suggestions.

 

0 Kudos
Message 4 of 4
(2,808 Views)