Jump to content

Antoine Chalons

Members
  • Posts

    955
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by Antoine Chalons

  1. My company deals with a lot of regulated industries and I frequently need to send my LV application documentation to our customers.

    Most of the time, along with the Test Specs and Procedures, etc. I send a zipped file with the VI documentation in HTML format. This seems kind of cumbersome, and the "complete" VI documentation does not contain subvi's.

    Has anyone thought it would be a good idea for NI to provide a "VI Reader" program? It would be similar to software(s) that allow you to read CAD drawings, PDF files, etc. It would not actually send the code itself, but in Print you could create the entire application in "VI Reader" format. My customer would have VI Reader and would be able to look at it without being able to actually edit it.

    Observation: text programmers have the option of sending source code to anyone in a format anyone can read.

    This sounds like it might be a lot of work for NI, with limited use, (and I seriously doubt NI would make this available for free wink.gif ) but before I send this idea over there I would like to get more input.

    Thanks in advance. thumbup1.gif

    Do you mean something like VI Engineering's "VI Documentation Generator"or more like VIpreVIEW?

  2. I've been thinking about that too.. and never really knew what was the best thing to do so I went for option 1.

    One comment though, I've made many plugins for Vision Builder AI (different version from 2.5 to 3.6) and when building the plugin's llb every VI in the hierarchy goes into it, some VIs are renamed and some not.. I've never really tried to understand how and why, it could be interesting .-o

  3. I'm wondering if it's possible to programmatically create a new axis in an XY graph. I know there are built-in tools to handle axis manipulation, but I can't find a way to generate a new axis at runtime, either through a right-click menu or a property node.

    I do know about the Active Y Scale property, but for that to work the axis must already be present. I tried setting the Active Plot to "2" on a brand new plot, but it gave me an error. When I added more axes to the graph in edit mode, it would let me select "2" when I ran it- but it wouldn't -generate- the axis for me.

    Please tell me there's a way to do this... I've been pulling my hair out over here!

    I'm sorry, you can't create a new scale at runtime. The only work around is to create scales at edit time and then use the property "visible" to show hide each scale. I know it's less fun... but that's how it is.

    The "active Y/X Scale" property lets you select the scale you want to operate on. If you have 3 X scales, set "Active X Scale" from 0 to 2 to operate on these.

    post-7452-124867527331_thumb.png

    Hope this helps

  4. I tried to make an executable file from one of "VI scripting" example (Script Random Strip Chart with Diagram Cleanup.vi) but it does not work... Why? Who knows how to make correct exe-files?

    most (if not all) the scripting methods and properties are documented as "not available at runtime" I imagine this is why it's not working. Not sure though..

  5. Does anyone know how to do a real plugin style archetecture with LV.

    Here is an example based on code posted by crelf a few days ago and on JKI state machine.

    It only works in exe (mainly because I just wanted to play with plugins and also because I'm lazy).

    - start the exe,

    - open the lvproj,

    - create a new PrefPanel plugins from the template (*.vit),

    - save it in the plugins sources folder,

    - duplicate on the the existing Source Distribution build spec and modify it to use your pref panel VI,

    - build it you plugins

    - go back to the running exe, hit "home" and your new pref panel should be added in the list.

    Please ask questions, give feedback, propose improvements :)

    EDIT: just added the possibility to work as source code

    plugin concept.zip

    • Like 1
  6. Hi Everybody,

    I am having two strings in date and time format like 20.07.2009 17:00:20 PM and 20.07.2009 17:02:00 PM. I want to substract the string so as to get the date and time difference. Can anybody help me? . I am using Labview 8.0

    Pande

    Hi,

    You might want to use the "scan from string" primitive (to turn your date string into a timestamp), then cast your timestamp to DBL (actually "second") and then substract the 2 DBLs to have the timne difference in seconds.

    See this:

    post-7452-124815950129_thumb.png

    hope this helps

    • Like 1
  7. I am having a problem with subpanels. I want to be able to do the following:

    Have a main panel that includes the Subpanel.

    Load a vi into the Subpanel note that the vi may not be known until runtime but for proof of concept I hard coded a path. the problem is that it works in the developement environment but not when built into an EXE i keep getting error 1003 stating that the vi is broken or that some subvi's are missing, the subvi that is being loaded into the panel only has a while loop, stop button, and a button that displays the express vi display message to user. Ultimately i would like to be able to have a generic upper level vi and be able to load any vi that is on the machine in to it.

    I have looked around and I am implementing the design idea that crelf posted about subpanels, although i cannot find the link at the moment.

    Any suggestions

    Joe

    Hi,

    I think this is referred to as "plugins architecture", here is a page on LabVIEW Wiki that you could help you.

    I have other old links (LAVA 1.0) about plugins architecture in LabVIEW but I don't know how to find then again.. LAVA search doesn't like my search tokkens :(

    old links :

    - Calling an external LabVIEW VI from an EXE : http://forums.lavag....-EXE-t3161.html

    - Plugin architecture as exe in 7.1 : http://forums.lavag....2149#entry62149

    - Plugin architectures... : http://forums.lavag....res-t14113.html

    Hope this can hel

    EDIT :

    google cache is your friend :

    - Calling an external LabVIEW VI from an EXE

    RE-EDIT :

    Calling an external LabVIEW VI from an EXE on LAVA

    to find it I had to get the date of the last post from google cache and then I went on LAVA 1.0 content and search by date.. that's ridiculous.. the search engine REALLY sucks!

  8. [...]

    I really like this idea and I am thinking of trying it for new rewrite, I just wondered about people thoughts and comments on this as it is not really a standard design pattern.

    [...]

    Yep, I've been developing an application based on what Mr. Blum calls in his LabVIEW Style Book the "Modular Multiple-loop Application Framework" (page 283>285), each loop being based JKI SM.

    I used different techniques for passing data and events (queues and FGVs) depending on the cases, I didn't think of user event because I'm familiar with them but they could surely be a good option!

    I'm interested in looking more into that :-o

  9. To search exact phrase use: "exact phrase"

    Hmmm.. Is it a joke... I was looking for an old thread about SMS and LabVIEW (I remembered I saw one on LAVA 1.0)

    - I first tried to search Send SMS in LAVA 2.0, no interesting results...

    - Then I googled site:lavag.org Send SMS, it found the thread I wanted but when clicking the link, it would only get me to LAVA 2.0 main forum page, google cache got some data though.

    - Then I saw this thread, and tried "Send SMS", and got the thread I was looking for... :-s

    So basically we should ALWAYS put brackets for the search to work fine.. I'm a bit confused!

  10. Isnt there any other way to send text messages? I fear that my client wont be allowing softwares like skype to be installed on their systems

    Oh.. maybe I just don't use it properly but I can't get what I'm looking for with the LAVA search.. Bless google!

    I found this thread in google cache. Maybe it's been moved to LAVA 2.0.. but I couldn't find it :-S

    Hope this helps

    EDIT:

    right.. I've just figured how to use LAVA search... just dial "Send SMS" (with the brakets) in the search field, and the result are fine ;)

×
×
  • Create New...

Important Information

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