Jump to content

Black Pearl

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Black Pearl

  1. At first, I was going to post the code with each VI (and folder) marked if it's GPL or BSD. I never thought about any of the code to be non-open (or pwd protected). Currently I'm thinking of releasing it under GPL first. This allows me to show/share an early version of the project. When some clean-up is done, I'll seperately release some of the reusable code under BSD. They can get a seperate entry in the CR, so confusion should be minimal. I'll also place a license-stamp on the description of each VI, so nobody should by mistake place a GPL'd version in his project. The project (tool) as s
  2. I'm not sure if this works, but you can give it a try: Type cast the ref to a more specific type (e.g. string control) before registering the event. Felix
  3. I could replicate the behavior I saw with a unit cast. VI is attached. Initial Position of the BD is Left=0. After I create the 'Convert Unit', the Pos is Left=6. Observations made in 7.1. Felix BD_Moved.vi
  4. Thanks, that's what I'm looking for. Seems not to be implemented in 7.1. I have a style (String) for Node and a Style (numeric) for Scale. But nothing for Constant or Control. Maybe it's available through GetProp. Felix
  5. Jim, I'm aware of this and was reading is prior to posting. It's the main reason I want some VIs of this project (reusable components) to be licensed under BSD. Felix
  6. Is there a way to distinguish between Controls of the same Type such as: * Round LED, Square LED, Toggle ... * String Control of Classic, MOder or System? Felix
  7. I actually should patent my idea to script broken wires! Felix
  8. has scripted a broken wire...

  9. Thanks for the explanation. That makes sense. I did some testing tonight, I could create a broken wire with a tunnel in the middle. I'm aware that it is a pretty unusal idea to script broken wires. Felix
  10. Hg I mentioned earlier is also OS/free. It's also known as 'mercurial' and is a distributed RCS like git and bazaar. You also get an explorer extension: TortoiseHg. If you go by SVN, I think that JKI's SVN plugin is worth the money. For Hg, I had to write something similar on my own- Felix
  11. Attached a quick draft of what I had envisioned (on the BD ). Just a simple click to mark it. I like the idea to use this with a database. This would open the concept to other issue tracker, task planner, ... Felix
  12. Forget about the ShiftRegister, I found a bug in my code. I was using the BD instead of the Loop for calculating the offset. Still Everything I drop inside a for loop is moved by one to the bottom and to the right. Using nested for loops, it only happens once (the inner loop is moved, but not the contents in respect to it). Felix
  13. Hmm, seems to be on the BD level already: Create For loop, Create ShftReg, Create Const on BD -> fine (on first look) Create Const on BD, Create For Loop, Create ShftReg -> ShftReg is Offsetted. I'll need to look at the numbers to get more details. Felix
  14. ok, found it in the GPL FAQ: I heard that someone got a copy of a GPL'ed program under another license. Is this possible?The GNU GPL does not give users permission to attach other licenses to the program. But the copyright holder for a program can release it under several different licenses in parallel. One of them may be the GNU GPL. The license that comes in your copy, assuming it was put in by the copyright holder and that you got the copy legitimately, is the license that applies to your copy. I would like to release a program I wrote under the GNU GPL, but I would like to
  15. Had another idea and it did show correct: The original diagram is covering the area of the 'i'-Term. So I need to use the i-Term as the reference postion. Still don't know exactly how to do this, but at least I've a new point to continue experimenting. Felix
  16. My own approach for larger projects is documented here on the dark side. A very diffrent design pattern class, which is pretty useful on larger app's is dynamical calls via VI server. Currently I'm using (studying) this for recursion, but more commonly you'd see this implemented as 'plugins' and for 'lazy loading'. Going OOP, that'd be the factory design pattern. Felix
  17. This is a bit of a tricky issue you normally won't notice. But when I create a node on a diagram (For Loop), it's not exactly at the position I want it but there is an offset by 1 pixel. Furthermore, during this process Position and Bounds of the diagram also change. This issue isn't really noticable in most cases, but it becomes pretty severe when creating Shift Registers (I get offsets >100 pixels). This only happens when I have a node above the loop. Deeper investigation of this issue hints me, that this has to do with automatic resizing the diagram. Just creating the for loop gives me
  18. To simple questions I'd like to get some ideas/experience: Q1: How to create a tunnel? For ShiftRegisters (Child Class of Tunnel), there is a method Loop.Add ShiftRegister. For a simple tunnel, I didn't find one. Is it as simple as just to wire through the structures boundary? Q2: Creating a broken wire. The create wires metjod needs a sink Term to be called, but how to create a loose end? I was thinking about creating a temporal variant control (indicator) terminal to wire it 'valid' first and then delet the variant. Felix
  19. When working on a project, I normally try to make a feature working first. In this process I leave some VIs in a messy state or apply incomplete bug-fixes on other vi's. So I'd like to mark these VI's as 'needs attention', so at a later stage (when ideas arn't bubbling fast or I'm tired) I'd come back. This idea is scaling up the more I think, as I'd like to put priorities for 'clean-up' done, and also add other marks like 'reuse candidate' or more specific 'TODOs' like 'make Icon' or 'document'. Any standard solutions or should I code my home-brewed tool? Home-brewed: I was thinking about
  20. I'm working on an OS project (soon coming into the CR) and thinking about the licensing options. I would prefer a 'strong', 'viral' OS license for the App itself, such as GPL. But there are some reuse candidates, which I'd like to be able to use in other projects as well (non-GPL, propretarian). So preferable those VIs would be licensed under BSD. Anyone has suggestions how to correctly deal with this? Felix
  21. I found that Hg works a little bit better than SVN. When I rename a vi from LV, SVN did mess up and force me to merge. Hg has an option 'guess renames' to avoid this. The second issue why I prefer Hg is that I'm able to clone me repo on a USB memory stick and work at a customers site with this local repo and push the changes back when I'm back in office. Felix
  22. Congratulations from me as well. And happy holidays. Felix
  23. Hi shb, I did improve the code dealing with activating another program and check if the Ctrl-Key is still pressed when the VI is Activated (again). Monitoring the Key-up while LV is not the active App won't work (if I don't want to rely on windows). Also I managed to make packages in 7.1. Feedback always welcome. Felix
  24. 1. Hmm, I get from ClassName 'BooleanConstant' and the like. But your code in the other thread already does this, so propably I misunderstand your question. 2. Not possible. Constant has the Lable property, it's parent GObject has not. Other childs of GObject have it as well, but you need to downcast them explecite as well. Felix
  25. I did some tests with 7.1 on a password protected VI. You can't copy a control. But you can read a lot of information: * Type Descriptor * Lable.Text * GetImage * GetTermImage Felix
  • Create New...

Important Information

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