Jump to content

Antoine Chalons

Members
  • Posts

    955
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by Antoine Chalons

  1. I'm sure many people have been dreaming about this :

    I define a cluster with some controls in it, then I use a RCF plugin that :

    - creates a typedef of this cluster and prompts me for a name and folder (by default the same folder where the VI I am in is located),

    - creates a VI to read this typedef cluster from config file (based on OpenG VI "Read Section Cluster")

    - creates a VI to write this typedef cluster from config file (based on OpenG VI "Write Section Cluster")

    - asks me if I want to add these 2 VIs created to an existing polymorphic VI or if I want to create a new polymorphic VI with these to VIs

    - performs the modification/creation of the polymorphic VI as wished above

    with Chris Davis' "Example - Create Polymorphic VI" and tst's "Create Typdef From Constant" where not far from the truth.

    Anyone developped this already?

    Who wouldn't be ready to pay a few $ for such a RCF Plugin?

  2. I think many people in the US don't really know how their health system works. In september I was reading an article in French (or maybe it was Swiss) paper about it.

    The global picture I remember from the article is this :

    - 47 millions people in the US don't have any health insurance (16% of the people),

    - there are two "special systems", one for people over 65 and invalids and another one for the poorest people and handicapped (20% of the people), these two systems cost $500 billions,

    - the 64% left have an insurance either paid by the employer (who gets big tax discount when they pay for health insurance) or by themselves.

    The state puts "some" money (don't know how and how much) in the system but most US citizens ignore that.

    Overall it's a very expensive system (only 2 countries have a system less efficient: Turkey and Mexico).

    All the above is not what I think, but what I remember from what I read. I can't really verify all this, and I learned to not believe everything I read.

    I can talk about the French and Swiss systems, they are quite different from one another, but the basic idea of both is roughly that whoever works gets a health minimal insurance and can decide to pay for a extension (which of course covers more) and those who don't work get the minimal insurance paid by the state and can also pay for an extension to have a better protection.

    That seems rather fair to me that people who work and people who don't get the same minimal protection, that means basically that people who work pay for those who don't ; this is called solidarity.

    In France, money is taken from the salary (it's an insurance tax) and the state is managing the minimal insurance, the extension are private companies.

    In Switzerland they separate accident insurance from health insurance, the accident insurance is paid by the employer (that's compulsory for the employer) and those who don't work have to get a private accident insurance (this is surprisingly cheap). I don't really know of the Swiss health insurance works because being French and working in Switzerland I don't get the French health inurance, I get the accident insurance (which I use a lot because I play rugby) paid by the company and and paid for a private heath insurance that covers the same as the french minimal one.

    Now what's fair and what US citizens what... I'm not going to judge on that. Like Val I'm just saying some systems do work so feel free to have a look and get inspiration to try to make an even better system.

  3. Basically I have found that I cannot set the app class property Srvr.Port within a LV2009 executable. The property node executes without error

    but I have verified that the VI Server Port is not being set and thus always remains at the default of 3363.

    Do you mean you try to modify the application's vi server port at runtime?

    I've never tried to do that, without really thinking about it I was assuming it wouldn't be possible so I set the application's vi server port in the ini file next to the exe.

    e.g.

    [exe_name]

    server.tcp.port=xxxx

    server.app.propertiesEnabled=True

    server.vi.propertiesEnabled=True

    server.tcp.access=+*

    server.tcp.enabled=True

    server.vi.access=+*

    server.tcp.paranoid=False

  4. Hi,

    Working on win XP Pro with LV 8.6, if I go to "Start >> Run..." and send the command "taskkill xxx.exe", xxx gets killed. Normal.

    If I now open the system exec.vi, type the same command, xxx stays, the error out cluster says "no error" the "return error" indicator says -1073741515 and I get this message from windows : This application has failed to start because framedyn.dll was not found. Re-installing the application may fix this problem.

    I get the same thing with other commands (e.g. tasklist).

    On my colleague's computer (same config) commands work from LabVIEW and Windows. What's wrong on my computer? Do I really have to re-install LabVIEW

    EDIT: but some command still work from system exec.vi, such has "C:\Program Files\...\Labview.exe" and LabVIEW is launched... :throwpc:

  5. yeah, I'm much happier now.. here is what I do :

    1. check file extention
    2. check that file name contains the string tokken
    3. then check option exclusion (re-entranct?, has non-dynamic caller?)
    4. for items which satisfies 1, 2 and 3 :

    • if the item is under "dependencies" then it's moved to the newly created "Smart Folder"
    • if the item is alreay referenced in the project (I mean in another folder than "dependencies"), then an hyperlink to it is created in the "Smart Folder"

    Will post it to LAVAcr soon :)

  6. This looks like an awesome feature. Can't wait to see the results.

    Hmmm.. I'm not really happy with what I could get so far, but here's what I have : http://screencast.com/t/VIgQ4Z9w

    To make it easier at first, for each found item I create an hyperlink, it works fine for VIs, but it's anoying to have "VI name (VI path)" in the project window. Another drawback is that if you double click a VI that is inside a LLB it won't open - seems to me that this is an OS issue.

    Maybe the hyperlink is not a good idea in the first place... it was just easier because I didn't have to check if the item was already in the project (I mean not in the dependencies) and also I didn't have to care about Auto-populating folders. The root issue being that we can't have 2 items with the same name in a project :(.

    If anyone has ideas, suggestions, comments... please tell me!

  7. I can answer the "how to create a folder" question - Get the My Computer reference from the project (probably a property), then call the "Add Item" (or whatever it's called) method on that. It accepts a string input for the type of item (probably "Folder" in your case. If you want to be sure, iterate over a tree which has folder and get the type property for each item).

    Thanks, this is exacly what I was looking for :)

  8. I saw many discussion about how to organise the VIs (and other type of file) in the lvproj window.

    Now we have the auto-populating folder, the snap-shot folder, the virtual folder and the dependencies (am I forgetting another something ?), everyone has his way of using these options.

    Until recently I was mostly using auto-populating folders in order to have the same hierarchy in my lvproj and in the windows explorer but I am now using more and more the virtual folders, they're cool but they're cool enough...

    What I'd like to have a "smart folder" for which I could define a set of conditions to meet for a file to appear in it.

    Conditions could be :

    - an extension,

    - a string token in the name of the VI,

    - a date range for the date of last modification,

    - a range of file size,

    - does VI has documentation,

    - who made the last modification,

    - etc... to be continued...

    Of course a file could appear in several "smart folders"... which is unfortunately not the case now for virtual folders.

    :shifty: Mac users certainly use "smart folders" in Mac OS X.. well that what I'd like in the lvproj, anyone else's interested ?

    I'm on my way to develop this with scripting, if anyone is interested, help will be very welcome here!

  9. In MAX, opening the item "software", we can get the version for all the NI drivers installed on the computer.

    How can we get that from LabVIEW?

    Mainly I'd like to read versions for the following :

    - NI-DAQmx

    - NI-Vision

    - NI-IMAQ

    - NI-IMAQdx

    - MAX

    Anyone knows how MAX populates the "software" tree item?

  10. Hi all,

    I'd like to know if anyone has ever used WinXP Embedded on a PXI controller, apparently NI is recommending this OS (Running LabVIEW on Windows XP Embedded, What Is Windows XP Embedded and Why Should You Care?, NI-DAQmx Support on Windows XP Embedded) but we can't purchase a PXI controller with WinXPe pre-installed.. this seems a bit surprising to me : "I recommend this, but it's not in my product list"

    Anyone can share some experience about LabVIEW + DAQmx running on WinXPe?

    One more thing I read about WinXPe SP2, is the HORM "hibernate once, resume many", to boot up quickly in a specific configuration, that looks interesting for an industrial system, anyone ever used it?

    Thanks for sharing experience about that :)

  11. Does this happen when reporting posts in one specific forum, or everywhere? I'll look into this. It's most likely some permissions flag not set right.

    I haven't tried every forum but, all the forum have tried give me an error* when I try to report a post to moderators.

    The post I was trying to report is this one, because the attached files can't be downloaded ; this happens for all the LAVA 1.0 post I think :(

    * : [#10136] You do not have permission to report the item you are attempting to report.

  12. A few weeks ago I made a feature suggestion on NI website, basically I was asking for an inspection template file type (like we have *.vit in LabVIEW, having a *.vbait in Vision Builder AI), if you (or anyone else) need the same thing I encourage you to make a feature suggestion too.

    I speak regularly with NI Vision team and at the moment they don't concider this as an important feature.. Help me make them change their mind!

  13. I've tried to do that to but couldn't fine a way...

    when you want to open a certain file with a certain application in Windows, you can try to run a command "application_path" "file_path"

    for instance : "C:\Windows\notepad.exe" "C:\text.txt" would work ; but when you launch VBAI, after the splash screen you need to select between configuration and inspection before you can select the file you want to open.

    So... yeah... sorry, I have no solution for you. If you find one, please let me know!

  14. Hi all,

    I'm developing a small vision application based on NI's Smart Camera and VB AI. The number of integrated digital I/O is not enough for my needs so I've been looking for an Ethernet Digital I/O module and found the Acromag 989EN. It looks fine because it supports Modbud TCP/IP.

    I was wandering if anyone ever used this device or could suggest another one with similar features..

    Thanks in advance for any info.

  15. Since ages I am missing the context menu entry "Finish this VI". It should simply finish programming the code for the selected VI according to my ideas and the requirements. Does anyone has such a function?. Any idea how to make it?

    you've just ruined my 2010 april's fool idea... :lol:

×
×
  • Create New...

Important Information

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