LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

code optimization and OCR

Hello,

This is part of my sudoku solver.

I have problem with ocr - it works very slow it takes more than 100ms to analyse 81 rois.

I also have problem with changing strings to numbers it returns error 85 for no logical reason for me..

 

Could You also look into my code? I am beginner in labview and I am trying to write clear code.

Do You konw any places where I can see how to write bigger aplications ?

0 Kudos
Message 1 of 4
(2,126 Views)

Hi,

 

Is there any specific reason why you have used the xnode Mathscript instead of normal functions from LabVIEW? Try changing that xnode, it takes long time to execute.

Also, in order to convert a number to string you can use the "Number to decimal string VI".

 

Kind regards,

I.R.

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

I have been using math node done by this guy:

https://decibel.ni.com/content/docs/DOC-13859#

it takes 2 ms to execute function with that nodes.

But ocr takes 120 ms and thats my main problem

0 Kudos
Message 3 of 4
(2,088 Views)

Hello,
have you tried to use parallel processing as I advised you in the previous thread?

 

Regadrs,

Ondrej

NIEE AE

 

 

CLA, CTA, CLED
0 Kudos
Message 4 of 4
(2,060 Views)