LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert string to boolean help

Thanks James!!!

0 Kudos
Message 11 of 27
(1,231 Views)

I apologize for the delayed response, I attempted to add case structure around each Boolean sequence. The LED stayed on, even after switching. I'm currently out of office tested positive for COVID. But I was also going to try the tank as another visual indicator, and see if that might be work better. I appreciate all the help, thank you!!!!

 

0 Kudos
Message 12 of 27
(1,214 Views)

All you need is a radiobutton indicator containing your six LEDs.

(Make the container transparent and nobody will see the difference)

 

altenbach_0-1642960317541.png

 

(If you don't want a radiobutton, use a cluster with six similarly arranged LEDs, an initialized FALSE array where you replace an element with TRUE based on "n-1", then use array to cluster for display. )

Message 13 of 27
(1,202 Views)

Thank you for being patient with me, I was able to configure VI per your instructions. Only issue is that the position doesn't update but the LEDs and tank indicates the correct selection. Please refer to attachment for example, please advise at your earliest convenience.

 

 

0 Kudos
Message 14 of 27
(1,167 Views)

I'm running into more issues now, its not updating the position or changing radio buttons, only the tank is indicating the position. Please help!!!

0 Kudos
Message 15 of 27
(1,158 Views)

As has been said before, you should "save for previous" before attaching. I cannot open VIs saved in LabVIEW 2021.

0 Kudos
Message 16 of 27
(1,139 Views)

OK, I was able to convert your VI and it is completely hopeless. You need to first learn the basics!!!

 

  • I made you a nice radiobutton indicator with six booleans and you made one with a single boolean. That won't work!!! Do you even know what a radiobutton control is?
  • Why does your event structure have two tunnels for the exact same value. One tunnel is sufficient.
  • If the timeout is always -1, you can delete the timeout event.
  • You are not parsing the response from the serial device at all.
  • Five of your six LEDs are not connected to anything. They will never light up!
  • Did you notice all these coercion dots? Do you know what they mean?
  • Use arrays instead of a pile of indicators! (6x less code in your case!)
  • Do you really think it is reasonable to read up to 100k characters of you are expecting a few?
  •  

Attached is a simple draft that show you a few basic techniques. Study it until you understand every detail.

 

You can change the position control and the indicators will follow:

 

  1. updating the radiobutton control
  2. updating a cluster of booleans that looks the same!
  3. updating one of six LEDs in an array
  4. Updating one of six tanks in an array

Any one of these techniques is suitable to solve your problems!

 

altenbach_0-1643323644410.png

 

Message 17 of 27
(1,129 Views)

Great morning NI Support,

 

  I apologize for the confusion, please review attached VI. Attached is the copy that I updated last night, I was able to get the Boolean LED and tank to cycle and initiate LED and tank to represent flow and position. I really new to this, and need a lot of training. I tried to copy the radio buttons you provided but messed up the format that's why the Boolean LED had no connection to the case structure. So, instead I hide the response because its stop showing the position. I showed the chemist this version I created they found it easier to use. The VI attach works with no errors, I know you took the time to evaluate the VI to come up with the a solution. If you can break down further how to create the array and cluster that would be great, but for now the VI attached they found easy to use, and good representation of valve position, with tank to represent flow. The next problem is how do I create the VI for multiple serial valve connections? The current set up is using COM 4 for serial for (1) valve actuator, I want to control more than (1) valve actuator. I appreciate all the help, and I have thick skin so I can take constructive criticism in order understand how to build the VI desired. I attached a screenshot of the VI made just for the instance that your unable to open VI made with labview. I would never made this far without your support, please advise at your earliest convenience.

 

 

0 Kudos
Message 18 of 27
(1,116 Views)

Sorry here is the screen shot.

0 Kudos
Message 19 of 27
(1,110 Views)

@Manny904 wrote:

Sorry here is the screen shot.


  • If the timeout is -1, it will never execute and the loop will never spin.
  • Why is there a 1s wait?
  • You still have all that garbage code. Did you even look at my example?
  • You are still completely lacking all the basics of LabVIEW programming. You need to start with the tutorials first!!!
0 Kudos
Message 20 of 27
(1,101 Views)