Jump to content

Argold

Members
  • Content Count

    27
  • Joined

  • Last visited

Everything posted by Argold

  1. Thanks Rolf: After the discussions here and in the thread about using Python to create user events. I think I do want to look under the hood of LabPython. But I am a bit confused about the source relation between Github and the version on the labview tools network. Both of these are 4.0.0.4 (2011) Do your know who, if anyone is maintaining it?
  2. So i did a little searching down this path, and it does look like you can make calls to/from Python via LabWindows/CVI. However I do not have that (yet) and wonder if I need to get it. I'm thinking instead if there is a similar thing like a PVI" that anyone has thought about... This actually looks promising: http://www.ni.com/white-paper/8911/en/ It talks about calling C-style DLL's from Scripts..
  3. I don't see how getting the reference from LV each run would be a problem. The communications would need to be two-way but they need to be anyway, so it should be do-able. What you suggest about passing strings to LV is what a wrapper for the clonable modules would need to do. Again, I'm looking for a solution where I can use the modules pretty much as designed (much more elegant and does not break the way they are already used within a LV framework). I'm still hoping it can be done, and thank's for all your advice so far, Eric.
  4. Thank you but No, I use user events all the time. I need the Python code to generate the User Event, I'm studying up on "PostLVUserEvent" right now. if it can be done in C, it should be able to be done in Python!
  5. Yes, pretty simple. Still looking to see if anyone knows how to generate a user event....
  6. funny, that is not there for me: In either Chrome or IE.:
  7. Thank you for taking the time to do this. FYI, my colleagues here pretty much stick with Py 2.7, telling me that many of the scientific packages have not yet been ported to 3.x. I am new to Python. I noticed that same thing on the GitHub. I spent some time with the Actor Framework a while back and decided it was overkill for even some of the big projects I do. So i ended up making my own stand-alone, cloneable/pluggable module template that depends on user events for communications. I have been developing hardware abstracted (IVI compliant) clonable modules for instrumentation in
  8. Thanks: Ok, so when I do that and select "See my Activity>Status updates" it shows "nothing here yet". I am unable to locate the place where I enter my status update.
  9. I don't see this status widget, but I would like to use it. Has it been "updated away?" Where can I set it?
  10. Thank you again Eric: Can you do me a favor and save the .vi as LV14? I choose not to upgrade under my motto: "if it ain't broke, don't fix it" Allen
  11. Thank you Eric for the reply and all the reading. I looked at Enthought and came to a similar conclusion from their marketing materials. Yes, that GitHub does look interesting. I'll check it out. I'll pass on Featherweight for now while I try to learn the basics. Later it might be interesting. On your last comment, believe it or not, I'm already there. Each of my major functions are completely stand-alone cloneable modules which are abstracted using plugins. They are launched by, and use user events to communicate with, a framework. The framework can be LabView or
  12. Thank you Rolf: It is really great to hear from the original creator and I'm glad you are keeping an eye on things. I was hoping that I could use some kind of scripting language such as Python or LUA and LabVIEW could pass references to the controls which could be overwritten by the script language. It sounds to me that that is the difficult and brittle (if not impossible) thing to do. In the meanwhile I have been trying to write a crude script Interpreter state machine completely in LabVIEW and have gotten as far as being able to handle nested FOR loops. However I am not sure
  13. Hello there: I have a big project, pretty much already coded in Labview, designed to perform monte-carlo analysis on a set of applications that use data from time synchronized measurements across the electrical power system. The project is designed to be open source and distributable using both built .exe and vipm. Therefore I include ONLY libraries that either come with LV or are OpenG (no third party tools that need to be purchased, and no TestStand). A part I have yet to code is the monte-carlo engine which needs to be end-user programmable. I have an idea for creating my o
  14. O.K. so it sounds like the preferred answer is to launch it with a VI server and time that out. It is not a matter of trust, I cannot control who the users are. I'm just trying to provide them an environment where they can develop their matlab scripts with some decent error handling.
  15. I'm writing an application where users can plug in their own matlab code via a Mathscript "wrapper". I need a way of timing out the matlab in case the user creates an infinite loop. Does anyone know if mathscript provides a native timeout (google didn't find anything when searching "mathscript timeout"). If not, does anyone have any good (hopefully simple) suggestions? Thanks!
  16. I just posted my take at updating the error handling core on: https://lavag.org/topic/10741-updating-the-labview-error-handling-core/ I can cross-post here if there is any interest. -Allen
  17. I have attached my first take on an Error library. TestError.vi demonstrates its use. The ideas behind this are: The Labview native error system can only carry one error at a time, this carries an array of errors. This uses a tag for severity <sev> and a tag for priority <pri>. I decided to make the severity tag a string rather than a enum so programmers can create their own severities on the fly. They may or may not choose to modify the error handler to accommodate these. An enum of severities might be better, I'd lik
  18. As I understand Labview convention, if the code is non-zero and the status is false, then it is a warning.
  19. To give this thread a bump, and to redirect the discussion to a different thread: I have been commenting recently on an old 2009 thread that was the result of a 2009 NI week presentation. The thread had some good code examples and a video of the presentation and some slides. I'm working through that all to understand it and possible continue the work. There was a nod to this thread in an earlier post: Unfortunately "Handling Core" is a bit of a misnomer, because the code was not about error handling but a means to carry multiple errors or much more error info (such as priorit
  20. Yes, that was the actual point of this thread and the 2009 NI week lecture that it was based on. I don't think "handling" really belonged in the title of this thread... I'm working through the example code right now and it looks kind of promising, once I wrap my head around it all, (possibly needing to do a UML diagram of both the OO-in-NEC and NEC-in-OO examples), I might take a crack at implementing the NEC-in-OO-in-NEC idea. That other thread does look interesting, I'll look through it. Because of the nature of my project, an application which has launched clones of stand-alone,
  21. Thanks again Shaun: I had a look and see what you are doing in the source string by formatting the codes into it. This is not really what I'm looking for however. Since there are multiple clones with plug-ins in my project, we may not know all the error codes at design-time. Plug-in child classes can be made by the user and new error codes may be created after code release. I'm hoping to find something following the NI week lecture from 2009. I'm looking for both multiple concurrent errors and priority/severity. As I said earlier, the idea of NEC-in-OO-in-NEC is very interesting
  22. Thanks Shaun: I'll have a look at it and get back to this thread. From the log image you posted it looks like it has a type, which I guess could be a priority or severity or possibly treated as, for example, a 2-nybble uint-8 with 16 priorities and 16 severities...
  23. So if there is any interest, I'd like to either get this thread started again or get some links to other threads or discussions. I have been programming in LV for about 6 years (I've been programming for over 30 years now in several languages). I have never been really happy with LV native error handling. I'm architecting a new, large project, leading 5 programmers, and I want to make sure we start off with a robust error system. The project will include hardware abstraction using plug-ins, clonable modules that run independently and communicate through Request and Broadcast event
  24. Where are the dependencies for the Custom GEH - Flat.lvproj? _VIE_Internal_Reuse_lib?
×
×
  • Create New...

Important Information

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