Jump to content

shred444

Members
  • Posts

    16
  • Joined

  • Last visited

  • Days Won

    1

shred444 last won the day on March 29 2013

shred444 had the most liked content!

shred444's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I have exe1, and I'd like to launch another exe2 which is always included during the build process. 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. Good find, Here's the link for others to upvote: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-sparse-enums-to-LabVIEW/idi-p/925224
  3. 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.
  4. 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. 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. So what's the best way to do this?
  5. it looks like since the redesign, attachments have been lost for older posts. here's an example: Post: http://lavag.org/topic/7002-multiple-glyphs-columns/ Attachment: http://lavag.org/old_files/post-121-1202760621.vi Anyone else have this issue?
  6. 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 window - parent_child.vi
  7. 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.
  8. Jeffrey, You're the man. That worked. Thanks
  9. 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.
  10. ahh hah, user activation...that is what i was looking for. Thanks!
  11. I'd like to create a dynamic shortcut menu for a control on the front panel. This is easy to do prior to running by right clicking ->advanced->Runtime shortcut menu->edit. But i'd like to do this during runtime, exactly the way you can do it for a vi's runtime shortcut menu. I am unable to get a Menu Reference for that actual control. Has anyone done this before?
  12. QUOTE (normandinf @ Oct 25 2008, 04:09 PM) -2,-2 worked perfectly. Thank you
  13. 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.