Jump to content

Jeffrey Habets

Members
  • Posts

    193
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Jeffrey Habets

  1. A single plot can not have multiple colors for different datapoints.

    I think the easiest way to achieve this is to use two plots, one colored for data within the limits and one for data outside of the limits.

    You will have to split your data up into two sets of equal length where you put NaN's in the elements you don't want displayed for a certain plot.

    Images say more than a thousand words, so here's an example:

    post-906-0-11379600-1305643295_thumb.png post-906-0-48800000-1305643362_thumb.png

    Btw. I think this topic is in the wrong forum, because it has nothing to do with scripting. Maybe one of the mods can move it?

  2. LVOOP is new ground for me but I am starting to understand it much better thanks to these forums. So the only thing you need the message name for is so that you can wire it into a case selector right?

    This has me thinking of an idea for the idea exchange. What if you could wire the object right into the case selector? It would behave like a typedef with the ability to add a case for every value (child) and break if there is no default and you don't have a case for every value.

    Would anyone out there kudo an idea like that?

    I'd definitely kudo that.. Add to the idea that the internal connection of the case-selector returns the specific-child class wire, so we don't have to do the cast anymore and we're complete. :thumbup1:

  3. Hi,

    I'm gearing up to start development of our next two projects in LV2010 and noticed I'm unable to create properties and methods on XControls (either new ones or existing ones from earlier LV versions). I checked this on LV2010f2 32bit version as well as on LV2010 64bit version. See what happens in the vid linked below.

    http://screencast.com/t/IOBg5ir4y

    Same happens for method creation.. LV then creates a 'normal' VI instead of a method VI.

    I was unable to find any info or reports on this here and on the dark side..Maybe, I'm missing something here, but if this is a bug, it's quite a showstopper for me. We'll have to stay on 2009 then.

    Anyone else noticed this weird behaviour?

  4. I'd say no..

    My basic motto is: don't close what you didn't explicitly open.

    The owning VI is still in memory, even after this call to the facade finishes, so a close will probably be a nop.

    The one responsible for actually closing the ref (and thus cleaning up the VI object) is it's initial creator, a specific application instance.

    The one thing that's left is the memory location that holds the refnum (pointer to the VI object) and that should be taken care of by the garbage collector as it is for all wires that at some point on the diagram stop and their value is of nu use anymore.

    100% sure? I sure hope to be close, otherwise I'm going to have to file a bug report. :rolleyes:

    • Like 1
  5. Another option you could use (that doesnt need opening references etc) is to have the parent class VI return an error code (ie a "method not implemented" error) - that way, any override VIs will execute normally, but any classes that do not provide this functionality will error in a known way that you can catch and handle appropriately, etc.

    That's more or less what I did to have an indication of forgotten-to-implement overrides before we had the must-override option for methods. But for the use-case I have here this is not an option, since I'd have to call the method. In my use-case I need to know if it exists without actually calling it.

    The open/close ref does the trick here and for my use-case it's not to much overhead.

  6. Hi,

    I'll illustrate my question with my use-case. While implementing a variant of the command pattern I want to have commands that are optionally undoable.

    For this the command will have an Execute method that is a must-override and an Undo method that can optionally be overriden.

    post-906-027340100 1282557549_thumb.png

    What I'm looking for is a way to check at runtime (from the parent) if the child on the wire has implemented the Undo method, without calling it ofcourse.

    Just curious if this is possible.

    I know my ways to work around this, e.g. have attribute Undoable in baseclass, or introduce a CommandUndoable class (which is a child of Command) to be inherited from by undoable commands.

  7. I stayed at the Radisson the last couple of times. This year NIWeek rate was $115,-. Only a 5-10 min walk from the convention centre.

    They have Starbucks and T.G.I. Fridays.. Wifi in the room is $9,95/day, but if you ask for a code to use the free wifi in the lobby, this just might work in your room too. :-)

  8. I probably missed your first post.

    For what it's still worth.. That's how I usually do it too..

    Another way would be to have just one constructor and tell it how to construct using e.g. an enum parameter (the Report Generation VI's class does this), but this requires you to have all possible parameters for all construction actions. I wouldn't recommend that.

  9. So some developers jumped ship from Endevo/Simbio to start AddQ, took the GDS sourcecode, repackaged it as their own and added a few bells and whistles to it, without your permission. The crazy thing is that if anyone wants to add OOP farmeworks into GDS all you have to do is contribute, and if you have ideas or sugestions on new features to GDS then Mikael would love to hear it.

    I'll keep using GDS, it Rocks, and I'm looking foward to contributing more.

    Amen to that.. worshippy.gif Go GDS!

  10. Reading the @eyesonvis last blog entry about splitterbars reminded me off two Ideas about wanting to be able to use them also in tab pages.

    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/quot-Fit-to-pane-quot-for-tabpages-Tabpages-handled-as-panes/idi-p/1098417

    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Tab-Controls-with-Splitter-Bars/idi-p/990693

    Basically both ideas say: tab-pages should be panes!

    I.m.h.o I don't see enough LAVA in the kudos list, so I though I'd just give it a plug here. :)

×
×
  • Create New...

Important Information

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