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: 

Check String Control for Content

Solved!
Go to solution

Hello! I am using Labview to communicate via GPIB. I would like to send a certain command only if a specific string control is empty. I was wondering if there is any basic or straightforward way to check if a front panel string control is either empty or if it has content? Thanks in advance! 

0 Kudos
Message 1 of 4
(2,619 Views)
Solution
Accepted by topic author jfherrm

"Empty string?" under comparison pallette.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(2,612 Views)

Use a case strucure and wire the string to the selector. See example.

StringCase.JPG

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

What would you like to do if the string is empty?

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