From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BAR Code QR Code Problem

Solved!
Go to solution
Dear All,
I am doing a project. I need to detect QR Code and Bar code. The issue I am having is that i cannot detect them simultaneously. I press one button for Bar Code, it gets scanned and detected, and then I have to press another button for QR code, then it gets scanned and detected. As a result, I cannot get them saved in one row. I get data like the picture attached. The problem in this is that the barcode represent student ID, and when i search the data base using barcode no. , I dont get anything, because that row has got no QRCode. I want them to appear in one row. PLEASE HEL ME! Thx.

 

Download All
0 Kudos
Message 1 of 30
(3,260 Views)

Hi ali,

 

well, you need to write them in one line instead of two…

 

You should not use "default if unwired" output tunnels on your case structures when you don't want to write empty strings into your table!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 30
(3,249 Views)

Dear Gerd,

Thank you for the reply. Yes, iknow that I need to write them in one row/line and that is the problem. Both the codes are not detected at one time, so both the codes get acquired in different rows. I want of of them in one line! Thx.

 

Qasim

0 Kudos
Message 3 of 30
(3,243 Views)

Hi Qasim,

 

as said before:

DON'T USE "default if unwired tunnels" in your case structures!

Instead you should always output the last read result…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 30
(3,236 Views)

I will try it and get back to you soon. thanks alot!

0 Kudos
Message 5 of 30
(3,233 Views)

Dear Sir

 

i am working with Mr Qasim on this project

 

what do u mean by the default unwired sir..

 

Actually when i didnt let any wire unwired. when the true case is done and i press false case

this also i wired

 

can u please be more specific what u mean with default unwired.

 

shall we share the VI

0 Kudos
Message 6 of 30
(3,218 Views)

Hi zah and Qasim,

 

this is an example of what I'm talking about:

Unbenannt.png

 

Btw: you should clean up your VI too. Using the AutoCleanup button might give a start!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 30
(3,213 Views)

ohh okay, we should not use this.. but many places i used this to wire

 

should i try to redo it one by one.

 

i use the auto clean up. what i saw when i use that is like the case structure kept changing places and when i run my VI. again the same problem

 

 

i did try also to remove the default i use. i attach the snapshot of it.

in the true case, i remove the default like in the attach sec 1.

 

then when i went to the false case, the wire is hanged. i dont know with what i have to wire it

like in the attach of sect 2

Download All
0 Kudos
Message 8 of 30
(3,206 Views)

Hi zah,

 

you have to provide a value to the tunnel in each case!

 

As said before in message #4:

Instead you should always output the last read result…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 30
(3,198 Views)

okay

i see

 

sir what do u mean by that  ' Instead you should always output the last read result…

 

output the last read.. ( last read meaning)

 

meaning in the false condition , i should put an output as wat?

 

an example will be really apreciated sir

0 Kudos
Message 10 of 30
(3,191 Views)