Jump to content

shred444

Members
  • Posts

    16
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by shred444

  1. I have exe1, and I'd like to launch another exe2 which is always included during the build process.

    post-12653-0-45314700-1382447949.png

    In other words, the path of the exe2 should be something like Main.exe1/subapp.exe2. Or at least this is the path of an 'always included' vi.

    By using the system exec call, can I call this included exe directly? Is there a better way to launch exe2 from within exe1?

  2. So yes, I have thought of putting Reserved elements, but my example above was too simplistic for some of the elements I would need to parse. They could skip hundreds, like you were saying.

     

    I guess my main problem is, Why do enums need to be sequential. In all other languages, they are not.

  3. This has been discussed several times in these forums, but I have never actually found a resolution to the question:

     

    In this scenario, I have a C enumerator defining a bunch of errors:

    enum{    NoError = 0,    NotInitialized = 1,    MotorOverheated = 2,    MotorDisconnected = 4,    CommutatorError = 8}

     

    When this value is sent to LabVIEW, i'd like to parse that easily by wiring it directly to a labview enum that I have created.

     

    post-12653-0-93398900-1380898780.png

     

    Here's the problem, the C enumeration is not sequential, and LabVIEW enumerators must be.  So there is an offset.  

     

    Now if I were to use a Ring to define my motor errors, I run into the problem discussed in many threads regarding how rings do not update even if they are strict typedefs.

     

    What i end up having to do is create a conversion VI that basically uses a case structure to convert the error from the C enumerator, to a labview typedef. What a pain.

     

    post-12653-0-84073500-1380898932.png

     

    So what's the best way to do this?

     

  4. I am using a win32 function that allows me to create a parent-child relationship for popup windows.

    This means i can put a window inside another window, similar to how excel works (Multi-Document-Interface)

    When i do this, the inner child window gets screen stamped. The only way to fix it is to either minimize then expand again, or to click and drag the window down and out of view, then move it back up.

    Has anyone come into a situation like this?

    Has anyone forced windows to redraw a screen before?

    I've attached a good and bad picture as well as the parent->child vi

    post-12653-126840305098_thumb.jpg

    window - parent_child.vi

    post-12653-126840332982_thumb.jpg

  5. Has anyone else noticed slow launching times with LV2009 exe's. I'll double click the applications icon, and it will sit minimized in the status bar for quite some time. Then finally, things will start to load. For simple applications, this sometimes takes 3-4 seconds.

  6. Hi guys,

    I've got this issue thats becoming quite annoying. I've got an xcontrol that has a property called 'Get Reference'. This returns the reference of the control within the xcontrol...so i can use some of it's inherited properties (without having to recreate them myself)

    It works great. The problem is, it always makes the calling VI unsaved no matter how many times i save it. I've pinpointed it down to the exact event in the facade.vi that's causing it. (see facade.jpg) -attached

    If i do not set StateChanged? to TRUE in the Exec Change event, the reference will return 0 and i will get errors when using it in the Calling VI. But if i do set it to true, it causes the VI to become unsaved.

    Any ideas as to how i can get around this?

    I can also post code if necessary.

    post-12653-126417771791_thumb.jpg

  7. Hey guys,

    I have a function that reverts all the cells in a multi column listbox back to white. It consists of two for loops (one for each row, one for each column)

    psuedo code:

    For each rowFor each ColumnSet this row,column as active cellchange the background color of this active cell to whiteend loopend loop

    I understand that redrawing the screen is processor intensive, so i defer panel updates. The problem is, this function is still taking several seconds to complete. For a 1024 row listbox with 5 rows, it takes 3 to 5 seconds. Is there something I'm forgetting?

×
×
  • Create New...

Important Information

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