LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl in Linux

Hi,


Does anyone know if XControls are supported under Linux?


I'm using one in Linux (created in Windows), and it is working just fine. But under Linux, you can't actually create one. Also when the XControl is in an executable, the executable disappears when the XControl is on a dynamic vi and the vi is closed.


Are these bugs, or did I take "OS compatible" too literally?


Regards,


Wiebe.
0 Kudos
Message 1 of 16
(3,741 Views)

Hi Wiebe,

XControl is only supported in LabVIEW 8.x professional development system for Linux but not the full development. So you will not be able to create Xcontrol with full development.

Can you provide more information on the executable behavior with xcontrol including the operating system?

Tunde.

0 Kudos
Message 2 of 16
(3,715 Views)
Hi,


We decided to by the Full Development, with a seperate Application Builder. (To save a few bucks, turned out nice). So that explains why I can't make new XControls.


The behaviour is quite simple...


In my application, I open vi references, and start the vi's when required. The vi itself opens a reference to itself to prevent it from being removed from memory. When done the dynamic vi's close their panels and their references. This works fine, except when the dynamic VI has an XControl on it's panel.


When the dynamic vi has an XControl on it's panel, the development version works fine. When we build an executable, the entire executable disapears when the panel with XControl is closed.


If we don't close the panel from the program (the vi will simply terminate, and we can close the panel manually) the exe doesn't crash. But we can't live with this. It's a fancy MMI, and that's just not fancy...


Btw. the XControl itself works as long as it's panel is open. I haven't tried other XControls, but the one I'm using is nothing special. I also didn't test if the exe crashes with any panel that is closed, or just with dynamic vi's.


I use the XControl to display a string with highlighted characters. For now, I can do this with a normal string indicator and some property nodes. This is actually almost the same as the XControl. But I had other things in mind with XControls, that aren't possible in "normal" LabVIEW. Guess I have to improvise, unless someone has a workaround.


Regards,


Wiebe.
0 Kudos
Message 3 of 16
(3,709 Views)
Btw.

LabVIEW 8.2 Full Development
CentOS (100% Red Hat binary compatible)

Regards,

Wiebe.
0 Kudos
Message 4 of 16
(3,709 Views)
Well, this is a shock.

Under windows the executable crashes as well. Would it help if I automatically send the report?

Regards,

Wiebe.
0 Kudos
Message 5 of 16
(3,707 Views)
And also:

LabVIEW 8.2 Professional
Windows XP Professional

(And also: Windows XP Embedded, but that not supported 😉

Regards,

Wiebe.
0 Kudos
Message 6 of 16
(3,710 Views)

HI Wiebe,

Based on the information provided, I modified an Xcontrol shipping example project (attached) below for Windows XP. The project has a VI ("Run Dual Mode Thermo XControl.vi") that uses an Xcontrol. The VI also opens reference to itself (using "Vi server reference") in order to set the (FP.Center) invoke node. The "Call Dynamic VI (Run Dual Thermo).vi" calls this VI dynamically (and closes afterward).

I created an executable (xcontrol executable.exe) for the ("Call Dynamic VI Run Dual Thermo.vi") and was able to run the executable without any error message.

I will suggest you attach a small section of your application that reproduces issue perhaps I might be doing something different.

You can also send in the error report using the automated email system for further investigation.

Tunde

0 Kudos
Message 7 of 16
(3,698 Views)
But, do you start the VI "Run Dual Mode Thermo XControl.vi" dynamically? And then, before you close the reference in "Run Dual Mode Thermo XControl.vi", have it close it's panel.


I'll see if I can make a small project...


Regards,


Wiebe.
0 Kudos
Message 8 of 16
(3,671 Views)
Hi,
 
Here is an example of the crash. Under development env. everything is fine. When an exe is build, it crashes under Linux and Windows. The XControl doesn't do anything, I just put a numeric control on it's facade.
 
If you can find a workaround (to use XControl with dynamic panels), I'd appeaciate if you let me know.
 
Regards,
 
Wiebe.
0 Kudos
Message 9 of 16
(3,645 Views)
Tunde,
 
I just tried out your code, and it also crashes.
 
I simply start the executable, and click the STOP button. Then I have to send a report... The application is crashed.
Perhaps this it is something you didn't try? Or are you using 8.2.1? If that helps I'll upgate without wasting a moment.
 
Regards,
 
Wiebe.
0 Kudos
Message 10 of 16
(3,644 Views)