From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

XControl - Unicode Ring Text: some questions...

Solved!
Go to solution

It is my first "real" XControl and I have some questions.

 

Open "Main Test.vi" and run the VI.

 

XControl Main Test.png 

 

Question 1: The value of my XControl is always 65535 (U16), and in this case it is supposed to be between 0 and 3 (four elements).  What I am doing wrong?

 

 XControl 65335.png

 

Question 2:  Why when I drop a new XControl on the front panel, the size is bigger than it should be?

 

XControl Size.png

 

Question 3:  Do you suggestions to improve this XControl?

 

0 Kudos
Message 1 of 5
(3,449 Views)

Question 1: I am ashamed. It is a "less than zero" instead of "greater or equal" ...

 

XControl less than zero.jpg

 

0 Kudos
Message 2 of 5
(3,423 Views)

Hey J-M,

 

For question 2: Are you using LabVIEW 2013 SP1 or just LabVIEW 2013? 

 

For question 3: You can check out this documentation on X controls:

 

http://www.ni.com/tutorial/3198/en/

Matt G.
Product Manager
National Instruments
0 Kudos
Message 3 of 5
(3,378 Views)

Hi Griffindor,

 

Question 2: I am using LV2013 SP1 and I have the same behavior with LV2015.

 

I already read this tutorial.

 

 

0 Kudos
Message 4 of 5
(3,348 Views)
Solution
Accepted by topic author J-M

Jean-Marc,

 

I updated your code and appears to fix the problems.  I did not try everything out, so do not know if my "fixes" broke something you already fixed.

 

Basically, I did the following:

 

  1. Changed the string control to fit to pane
  2. Instead of using Vi reference in your Display State change event, I used the control reference from the contatiner cluster.
  3. Modified your Vi which resized everything to set the XControl container size to the string size.  This may need to be played with by a couple of pixels incase the borders cause some issues.  At first glance, it is OK.

See attached.

 

Matthew

 

Message 5 of 5
(3,336 Views)