-
Posts
3,905 -
Joined
-
Last visited
-
Days Won
34
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Jim Kring
-
closed review Filter Error Codes (Error Package)
Jim Kring replied to Wouter's topic in OpenG Developers
The pitty is that in almost every instance where I use Clear All Errors, I use Merge Errors to merge in upstream errors. So, I think it's a really useful design pattern. My vote would be to make the Error In a required input. -
Need LVOOP Object VIs in lvdata library
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Hi Yair. Thanks for the clarification. I see what you mean. I'd be curious to know if this is much faster. -
Need LVOOP Object VIs in lvdata library
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Yes, the VIs that ship with LabVIEW do support determining if a variant contains an LVClass instance. I'm fine using this where needed, but I'd love to have a native implementation in the OpenG LabVIEW Data Tools Library. -
Need LVOOP Object VIs in lvdata library
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Hi Yair. Great idea! I've posted something similar, here: Need LVOOP Object VIs in lvdata library -
closed review Filter Error Codes (Error Package)
Jim Kring replied to Wouter's topic in OpenG Developers
Here's a conpane that gets one step (another pixel or two) closer. Clear All Errors.vi One comment that I want to make, that's actually a case for note adding an Upstream Error, is that it's possible to easily misswire the Error in (error to be cleared) and the Upstream Error. And, if misswired, the result is exactly the opposite of what users would intend -- that would lead to quite an insidious bug. However, Error In (error to be cleared) should probably be made a Required Input, which would certainly help users identify if they accidentally misswired in a way that left Error In (error to be cleared) unwired. -
Feedback on OpenG MD5 Library 4.1.0.8 Release
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Ya, I wasn't blaming you -
Feedback on OpenG MD5 Library 4.1.0.8 Release
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
I don't see anything wrong with having well-designed icons for OpenG VIs, as long as they all look consistent -- right now I think that the font of "MD5" doesn't really fit with the icon designs of other OpenG VIs. -
Feedback on OpenG MD5 Library 4.1.0.8 Release
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
I'm not in love with the current icon, but there really isn't any sexy way of saying "MD5 DIGEST" Yes, I think we should keep the Poly Selector, because the poly instances change between string encoding, not data type. This means: 1) You can't change between implementations by wiring up different input data types. 2) there's really no other good way (besides the Poly Selector) to convey to users that it's a poly VI with other implementations and let them choose between the different implementations. -
I know it's only been about 5 minutes since the OpenG MD5 Library version 4.1.0.8 was released, but I was so excited that I had to try it out and wanted to make a couple suggestions to continue this wave of improvement Place Hexadecimal MD5 instance by default When the MD5 Message Digest is dropped from the palette, the Binary MD5 instance is placed, since this is the top-most instance of the Poly VI. I'm not sure if this is by design. I expected that Hexadecimal MD5 is more commonly used and that this should be the default instance when dropped. Use Instance VI Icons to distinguish instances There is currently no difference between the Hexadecimal MD5 and Binary MD5 instance VIs. One can only tell the difference if the Polymorphic VI Selector is visible and many people like to hide that, since it takes up a lot of space. If the Use Instance VI Icons option were enabled and the two instances' icons were different (to reflect the output MD5 encoding), then it would be really helpful.
-
closed review Filter Error Codes (Error Package)
Jim Kring replied to Wouter's topic in OpenG Developers
That's right. It's a real space saver to not have to merge errors as a separate function call. And, this is a standard that I hope can be adopted, if others agree that it makes sense. Note: I think we should add this "upstream error" to the "Clear All Errors" function, too. -
closed review Filter Error Codes (Error Package)
Jim Kring replied to Wouter's topic in OpenG Developers
Great question! We actually had a long debate about this at JKI, back when this function was designed. If I recall correctly, here is the thinking behind it: it avoids the possibility of accidentally confusing (miss-wiring) the filtered error details with error out most of the time (e.g. the scalar error code to filter use case) you only care about the Boolean output error filtered? (e.g. wiring it up to a Case Structure's case selector or similar) so we decided to make that raw Boolean an output of the VI, rather than requiring the user to unbundle it from the filtered error details. in the case where you want more information about the filtered error (like if you passed in an array of error codes to filter and need to know which one occurred), then you can unbundle the code or source string from the filtered error details cluster. We didn't include the Boolean error filtered? in the filtered error details cluster since that would be redundant (the Boolean is already an output of the VI). And, if we did actually add the Boolean error filtered? to the filtered error details cluster, then it would look a lot like an error cluster and we would then probably want to name the Boolean status (since that's what it's called in a normal error cluster), which does not convey the intent nearly as well as calling it error filtered?. And, after years of using this VI, I don't have any complaints about the design of the VI (and haven't heard any complains from others at JKI) -
closed review Filter Error Codes (Error Package)
Jim Kring replied to Wouter's topic in OpenG Developers
Hi All, This is a great discussion! In an effort to support this, JKI has decided to donate (to the community via BSD license) a couple relevant VIs into the mix, in the hope that they might contribute some design inspiration to this discussion: JKI - Clear All Errors and Filter Error Codes.zip The first VI is called Filter Error Codes and filters either a scalar or array of integer error codes. It also returns the information about the error that was filtered, which is useful for handling that error. This is what the array implementation looks like: And, here's what the scalar implementation looks like -- you can see it just calls the array implementation. The second VI is called Clear All Errors, which is just like NI's Clear Errors, but a lot more compact, which is nice Cheers! -
There are some instructions, here and here.
- 1 reply
-
- 1
-
I'm wondering if there's anything like the LabVIEW add-on for Lego Mindstorms NXT, but for Lego Wedo, that lets you directly control the WeDo motors and sensors with LabVIEW. If so, that would be super cool. Our Lego WeDo Robots Construction Set arrived and my daughter and I are having a blast building stuff. But, I forgot to order the WeDo Robotics Software that's used to write programs and control the robots, so we're not having nearly as much fun as we could be [update: I found a thread on ni.com that lead me to a Tufts University Center for Engineering Education and Outreach page with a link to a downloadable WeDo LabVIEW Module zip file containing the required VIs and DLLs. I was able to make them work on Windows , but not on Mac yet (the .framework wouldn't load)]
-
closed review String To Character Array (String Package)
Jim Kring replied to Wouter's topic in OpenG Developers
My preference would be to start simple and only address the most basic, and widely useful, functionality of splitting the input string into an array of single characters. If it's determined that people would benefit from additional functionality, it can always be added later. But, we don't want to risk adding features that people won't need, since every feature must be designed, documented, tested, and maintained, which takes development resources away from other high-value features/activities. -
closed review String To Character Array (String Package)
Jim Kring replied to Wouter's topic in OpenG Developers
That's true, that it's implied by virtue of it being in the string palette, but it's name is not scoped to "OpenG String.lvlib" so there's the possibility of a name collision with some other OpenG VI. Also, if someone is using QuickDrop (Darren Rocks!!!) then they won't know that "to Character Array" takes a String as an input. -
closed review String To Character Array (String Package)
Jim Kring replied to Wouter's topic in OpenG Developers
Should this VI be called "to Character Array" or "String to Character Array"? If there is any interest in making the VI polymorphic, to accept other input data types, then "to Character Array" is preferable (I think). However, if it will only work on strings, it seems that it might make sense to make the name specific and go with "String to Character Array". That said, are there any other input data types that we might want to support? I don't want to over-engineer this, but it's a question worth asking. -
Need LVOOP Object VIs in lvdata library
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Ya, that's a good place to do it yourself. -
Need LVOOP Object VIs in lvdata library
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Tim: Basically it's a fancy way of saying "flatten" (and "unflatten"). Here's a Wikipedia link to a more formal definition. For example, you could convert an object into a cluster and then write all its data to an INI file using the OpenG Variant Configuration File IO VIs. -
It would be nice if there were some VIs for dealing with LVOOP Objects, at run time. One VI that I would love is one that could convert an LVOOP Object to a cluster (and vice versa). Ya, I know that this would violate encapsulation (shhh... don't tell AQ), but it would allow us to do stuff like create flexible object serialization tools.
-
bug Get Default Data from Variant
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Hi Jon, As long as it's somewhere on the root palette, I'll be a happy camper But, I don't think it should go on the VVariant palette, since that is for VIs that deal with variant data (at run time) inside of the variant inputs/outputs (at edit time). It makes sense if you think about it really hard, but is guaranteed to make your head hurt. For example, in the snippet, below, you end up with a VVariant (a Variant containing a Variant containing a String). -
bug Get Default Data from Variant
Jim Kring replied to Jim Kring's topic in OpenG General Discussions
Hey Jon, I'm not sure if putting it in the Type Descriptor subpalette is the best place (since this palette is for VIs that take Type Descriptors as inputs). I think that it probably makes sense to put it on the main, top-level palette. -
There's a VI in the lvdata package called Get Default Data from TD (that accepts a type descriptor input), but there's no equivalent (wrapper) for variant data input. I suggest that a Get Default Data from Variant VI be added to the library, for symmetry (and the fact that it would be useful -- I've needed such a function recently). Get Default Data from Variant.vi
-
OpenG Cryptography Library