LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving data from excel.

Hi all,

 

can anyone give me some pointers with this please?

 

I'd really appreciate the help.

 

Thanks.

0 Kudos
Message 11 of 19
(789 Views)

Hi,

 

In your database file, which column contains the serial number? Is it the first?

 

If you MCPC number is 2 and you search for the serial number 1 in your database, you would like to get the first two rows that contains the serial number 1? 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 12 of 19
(780 Views)

Hi

 

thanks for the quick repsonse.

 

My serial number is in column 2 (12345/  2) for example.

 

If MCPC is 2 i'd like to get row 1 of 12345/  2 and then the next row after it.

 

Thanks again!

 

G

0 Kudos
Message 13 of 19
(777 Views)

Nice=) I get it now. What would you like to happend if you enter the serialnumber for the last row and your MCPC number is more than 1? Will it only display the last row or add some blank ones?

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 14 of 19
(775 Views)

To be honest i'd like it to high light an error that it is not correct.

 

This is going to be used to populate a test certificate to a customer. I dont want the chance of missing data!

0 Kudos
Message 15 of 19
(772 Views)

Hi,

 

Please test the VI I have attached. I needs more work and maybe less Rube Goldberg code, but it should get you started. 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 16 of 19
(761 Views)

You should add a File Path Constant so you don't have to select it every time you run the code. Also you should create a stronger check for matching serial number. It took me a while to realize that there was 2 spaces between 12345/ and 1. Maybe remove white spaces when you do the searching or something like that.  

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 17 of 19
(759 Views)

That works a treat!!

 

One Million thankyous!

 

You have seriously made my day!

 

I am starting to realise i do not know enough about data and how to manipulate it!!

0 Kudos
Message 18 of 19
(750 Views)

You're welcomeSmiley Happy

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 19 of 19
(746 Views)