ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure with string as a case selector

Solved!
Go to solution

Attach your main VI - I'm guessing there may be the issue

0 Kudos
Message 11 of 20
(4,247 Views)

i just created the example vi which attached 
so that it is simple to understand the problem !

0 Kudos
Message 12 of 20
(4,243 Views)

What example?  Nothing is attached.

0 Kudos
Message 13 of 20
(4,235 Views)

the one i attached in the beginning !

0 Kudos
Message 14 of 20
(4,231 Views)

The very simple one that doesn't match your screenshot in the beginning, the description of your problem, and actually executes just fine?

0 Kudos
Message 15 of 20
(4,224 Views)

this is the main code !
i am still working on it 
so it will not work and hence vi file  does not hold any importance !

0 Kudos
Message 16 of 20
(4,222 Views)

How do you control timing of your loop? I guess the reading and writing is pretty quick, therefore the loop complete quickly so you don't have the chance to see the results. Try running it on highlighted execution, and then observe the LED indicators

0 Kudos
Message 17 of 20
(4,214 Views)

The VI file does hold importance because it is the file where your code is not actually working!

 

Have you looked at the data coming in from the VISA Read and actually compared it to the cases of the case structure?  Did you do what I said and check to see whether any control codes or termination characters are interfering with your case structure comparison?

0 Kudos
Message 18 of 20
(4,213 Views)
Solution
Accepted by jay_sidd

@jay_sidd wrote:

this is the main code !
i am still working on it 
so it will not work and hence vi file  does not hold any importance !


Oh my... 

 

Right off the top of my head I would do something like this.

 

CP.PNG

 

========================
=== Engineer Ambiguously ===
========================
Message 19 of 20
(4,197 Views)

u made the day !!
kudos to u !Smiley Wink

0 Kudos
Message 20 of 20
(4,158 Views)