08-14-2012 01:20 AM
I used a Event structure but the problem persists..Any suggestion????
08-14-2012 02:27 AM
First of all, you have a typical race condition in that you write a value to "select command" after the terminal has already been read from the terminal on the right. (LabVIEW does not execute left to right and you don't have a data depedency between the two parallel code fragments.
I also don't quite understand why you would select a disabled element. What's your reasoning?
Typically you configure the serial port once before the loop, and not with every iteration.
You are also trying to close a nonexisting visa session after most inner cases. I assume that you code is not complete yet.
08-14-2012 06:13 AM
"You are also trying to close a nonexisting visa session after most inner cases. I assume that you code is not complete yet."
Yes Sir....You are absolutely right my code is not ready and I am catching a race condition but I am not able to come up with different logic..My problem is simple..When I select a ""select sensor" some command should come and others will be disabled but I want to change in runtime.... But unable to solve it.... Please some help....
08-14-2012 09:15 AM
@Newbee_2 wrote:
My problem is simple..When I select a ""select sensor" some command should come and others will be disabled but I want to change in runtime.... But unable to solve it.... Please some help....
Words like "some" and "others" are not sufficient for us to explain what you want and what you don't want. For some sensor selections, your code does disable some command selections. You need to be much more specific explaining what you want and what you don't want. Can you simplify your example such that there are only very few command selections per sensor. Tell us exactly what the allowed commands are depending on the sensor selection. Tell us what you want and what you actually get.