Jump to content

jcarmody

Members
  • Posts

    947
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by jcarmody

  1. Yair, The beautiful thing is that Joe's solution makes the typedef constant to use with the OpenG VIs. My current workflow has me creating/editing an ini file and then creating/editing a typedef'd cluster. This makes the cluster for me and, as long as I can fit it neatly in my LabVIEW\projects folder, I see myself using it whenever I need to work with config files. What does MGI have for this? Jim
  2. I wasn't referring to the OpenG alternatives to the NI VIs, I was thinking about the Read and Write Ini cluster VIs. This snippet uses the Read Ini Cluster VI and the typedef from your program to do read the ini file in two steps (you'll need to convert the variant). I don't think there's any need to abstract out the config files, unless someone else has a use-case, because I'm only going to use the typedef control. But I'm going to do that every time I have a config file so your work will help me a lot.
  3. I love it. This'll go in my LabVIEW\project folder. I like using the OpenG config file VIs but still have had to make the typedef cluster. Excellent idea. Thanks, Jim
  4. You don't have to manage Fogbugz; they host it for you.
  5. Yippie!!! From the Washington Post. (tl.dr. - jury acquitted drug dealer when police testimony appeared fabricated) How do you think it would go after the following, hypothetical conversation? Judge: I hold you in contempt of court! Me: Ya think?
  6. Would you share the answer now? I understand what's been discussed but haven't learned if I should learn to use Singletons. Thanks, Jim
  7. The Data Type property seems to hold the data, not the type. The Data Type of the States wire contains the Variant "". I've managed to get the data type, having found a reference that said it is found in the low byte of the first element in the Type Descriptor array. This turns out to be 26 in most cases, but not all, so I still need help. Here's an 8.2 version. Insert_AS2Q.llb
  8. FIRST has made it into pop-culture! Here's a link to the comic on XKCD.
  9. It doesn't behave well if I use it in the Idle state (inside the Event Structure), even after I change the To More Specific Class. Back to the drawing board.
  10. I've made this into a JKI RCF plugin to simplify (my) life when writing a VI with a JKI State Machine. I don't often duplicate cases to make a new one, and I use Linked Tunnels so my tunnels are all wired, but I have to put the Add State(s) to Queue.vi into the new case manually. I've resorted to leaving it outside the State Machine (initializing the Shift Register) so I have one handy to ctrl-click/copy/drag. I suspect that's why JKI put it there in the first place. It only takes a few seconds but I've wanted a RCF plugin for a long time. (This was one of the first RCF ideas I had.) You install this like you would any other RCF plugin. To use it, select the State String wire, activate the RCF and select "Insert AS2Q" and it'll insert the SubVI eight pixels from the output tunnel (just where my OCD likes it ). Two questions: 1) How can I test the data type of the wire? I don't want to activate this plugin unless a String wire is selected. 2) Am I the only one that thinks this will be useful? Thanks, Jim Insert_AS2Q.llb
  11. Almost, but it doesn't give me the position of the terminals relative to the wire's owner. This is what I worked out after I found that the Case Structure is the Terminal's owner's owner.
  12. I've written a VI to insert the Add State(s) to Queue SubVI and wire it into the States string of a JKI State Machine. My problem is that I can't figure out how to calculate the position relative to the owner of the wire, so I've hard coded an offset. It works well enough, but I don't like it. Could you look at what I've done and see if you can help me position the SubVI properly? If I could only find the position of the wires owner I think I could finish this. To test this: download the BD Minion, run it, go to a VI with a string wire, select the string wire then press the "Add States to Queue" button. Jim BDMinion.vi
  13. If you can use portable media, you can install OpenG & JKI packages onto a PC that's not connected to the internet.
  14. I just received a summons to report for Jury Duty next month.
  15. When you say you can't see both elements in the combo box, are you saying that only one is in the drop-down list or that you want to see both of them without clicking on anything?
  16. First of all, this is cute! Use the boolean Not, instead. I think your problem is that the solenoid VI isn't showing. Right? You can make the form into a dialog and that'll make it work, or you can customize the properties of the window. Use File -> VI Properties (or ctrl-I) and select Window Appearance category. OR You can also simplify the logic in solenoid.vi. I added the Wait function.
  17. I'm not sure I follow the description of your problem. My first thought was that you're trying to do this: ... which clearly works for me. What am I misunderstanding?
  18. I don't believe so. Dragging from the web directly to a BD works in IE. I use Opera and have to download snippets then drag them in; I think Firefox is the same.
  19. Martin, I was nervous when I took the exam, so I understand (at least, in part) how you're feeling. Your four years of experience may put you ahead of where I was (with <1 year) when I passed it. The graders were, thankfully, more compassionate than I would have been were I grading my own submission. I don't want to lull you into a false sense of security, but also want to let you rest assured that it's a fair test of your ability to implement the fundamentals and not a horrible weeding-out process. Good luck . Jim
  20. I started with plans to include all multi-frame structures but immediately eliminated support for Stacked Sequences and soon found that an Event Structure's frame names aren't accessible. I asked a question about this on NI's API community here, and it was added to a list of desired access to properties/methods here. I thought there was another discussion with more comments, but I haven't been able to find anything. I don't know if anything new was exposed in LV2009 because I don't have it yet. It's on my list of features to add.
  21. This might be perfect for monitoring my chicken barn during out-of-town trips! Seriously.
  22. It's not in the code, but it didn't work. I tried again (just to be sure). Jim
  23. I tried this in my GetCCTSnippet (to extract a pre-LV2009 snippet made with the CCT), but it didn't work. It might have something to do with what I was doing with the Block Diagram. I'm interested to know if it works for your app.
×
×
  • Create New...

Important Information

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