LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to perform IF condition operation in LabVIEW like in c language, tat too with strings?

Solved!
Go to solution

Hey Hi geeks,

                      I have a small doubt. I wanna check if an input string is equal to "EI202" (say) and if it s true, a 5v signal has to b sent thro a DAQ to a relay?? jus like If condition in c language...

 

                     How can v interface a barcode scanner wit LabVIEW?? I Mean i wanna get a string input on reading the barcode on an object with the barcode scanner??

 

                    how can i get the number of days difference between two dates in LabVIEW??

 

                    Plz Plz PLz answer my questions...if u can giv me the block dia of the above problems, i ll b very very very glad abt it. am not able to proceed my final year project because of these..

 

 

 

0 Kudos
Message 1 of 6
(2,905 Views)
Solution
Accepted by topic author SWARNI

The IF equals the Case structure, connect the string to the selector, write the text in the condition and place a Write to daq inside the case.

That's very basic LV.

 

A barcode scanner = keyboard. Activate a string control and fire the barcode scanner, same as typing "barcodenumber[enter]"

 

Datetime - datetime = time difference.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 6
(2,897 Views)

To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.

0 Kudos
Message 3 of 6
(2,878 Views)

Hey Yamaeda Smiley Happy

 

thank u so so so  much fr ur reply..but can u plz explain little more as how to interface d barcode scanner to LV??

thanks again...

BYESmiley Happy

0 Kudos
Message 4 of 6
(2,851 Views)
As mentioned, there is really nothing required to interface the majority of scanners. Most scanners are recognized by the os as a keyboard. If a string control has focus, when the scanner is activated, it works just as if you typed in the barcode manually.
0 Kudos
Message 5 of 6
(2,845 Views)

Also, please use full words, not text-speak. Thank you.

0 Kudos
Message 6 of 6
(2,828 Views)