Jump to content

Joernh

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Posts posted by Joernh

  1. @ didierj

    thx, that's a good idea!! :)

    @ Phillip Brooks

    maybe i have to deal a little, but right now they don't like accepting characters by the numerics...... :angry:

    To set the data range is not the solution, because for my app it's definitely not good to coerce a value to any limit. Therefore i check the range "manually" in an eventhandler. If the value is out of range, i show a messagebox and then set the numeric to the old value.

    Regards

    Joernh

  2. Hmph, learned something new. :thumbup:

    It works because you are not replacing the enumerated value used as the page selector. You are just hiding it and instead displaying an independent (cosmetic) string in its place.

    post-2800-1140012434.png?width=400

    ....nevertheless, independent label and tab caption are properties described as not changeable during runtime (at least in the german manual), but maybe its a misstake.

    Thank you all for replying..... :worship:

    Best regards

    Joern

  3. When I try to rename a tab control's page "pagelabel" from the VI that contains the tab control I get this error:

    "Error 1073 occurred at Property Node (arg 1) in Untitled 1

    Possible reason(s):

    LabVIEW: This property is writable only when the VI is in edit mode,

    or this method is available only when the VI is in edit mode."

    Since a tab control looks like an Enum whose values are derived from the page labels, it doesn't suprise me very much that it works this way --- you cannot change an enum on the fly either. The same logic could be applied to adding or removing pages, since you cannot expect to add or remove values to an enumerated constant on the fly, you shouldn't expect to be able to do it to a tab control either.

    FWIW, you should however be able to change it from another running VI just as long as the VI containing the tab control is not running.

    thanks a lot. Think you hit the nail on the head.

  4. Thank you very much Rolf,

    your explanations seem to hit the core. I will think about....

    Solutions are: Since only the UI thread is really locked the rest of LabVIEW diagrams will actually continue to execute. No updates on the user interface will occur though and calls to non reentrant CINs and DLLs will also block here as they are also forced to execute in the UI thread. So the processing of your application really doesn't need to be affected unless you set front some panel controls to update synchronously for whatever reason as that will force the diagram to wait until the UI can be updated.

    5210[/snapback]

    ...unfortunately, it seems that not only the UI-thread is locked or even panel-independent parts of code is also executed in the UI-thread. I have a parallel while loop with a SubVI-call (parallel to the dongle-check). In the VI settings of the SubVI I chose a different execution system so far...

    The execution of this loop definitely stops during the dongle-access even though it is independent from the panel.......

    Regards,

    Joern

  5. app hangs while communicating with an ActiveX-Object

    Hi there,

    is there anybody who can help me to understand why my application freezes while communicating with an ActiveX-Object?

    I've just added a parallel while loop to my main application loop. In the added loop i do frequently access a dongle via its ActiveX-Component and it works fine, but....

    The duration of the dongle-access is about 600ms and during this time, the whole application is hanging....waiting...sleeping.... even the frontpanel.

    I thought that, because the ActiveX-Access is in a separate while loop, my application would not be influenced like that. :headbang:

    Is this a "normal" behavior of LabVIEW or where's the problem ?!

    Best regards

    Joern

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.