Jump to content

Antoine Chalons

Members
  • Posts

    957
  • Joined

  • Last visited

  • Days Won

    34

Posts posted by Antoine Chalons

  1. One thing about your code, why don't you use the VI reentrantly? By allowing 'Share clones', you can drop the VI strait into itself, without the need of explicit VI-server calls.

    I have no good answer to that... Was it possible in LV8.6? I think the first time I made those VIs it was in LV8.6 and then I just upgraded the LV version without modifying the code.

    Another addition would be to have basically the same code for waveform attributes (I have that around as well).

    Sounds like a good idea to me.

    Any other idea anyone?

  2. Hello,

    I recently used TDMS files in a customer application and for that purpose I made VIs to write/read clusters containing parameters to/from TDMS file.

    These VIs are basically *copies* of the Read Variant Key.vi and Write Variant Key.vi from the OpenG Variant Configuration File palette so I thought it would be a good idea to add it to OpenG.

    Hopefully it could help someone.

    PS: haven't tested these VIs extensively (with all possible data types in LabVIEW) but they do work fine with big clusters containing 1D and 2D arrays.

    Read Property Key from TDMS File.vi

    Write Property Key to TDMS File.vi

    • Like 1
  3. Let's not get too passionate... clearly Steve Job's does work, that's just stating the obvious, now that doesn't mean the product out-stands other products.

    iPad will let you do what Steve wanted you to do with it, if you try to do something he didn't want you to do it will be very hard.

    Mac addict will tell you how much they love their iPads but I think you have to be an Apple-Aware person to use it, people who have never touched a mac often struggle with the iPad - my dad is one of them (well in did touch macs but that was before LabVIEW was released for Windows).

    Surely other products could fit your needs, it's more how much of a mac person you are that matters when chosing between iPad and others.

    note : I am a mac person but I don't have an iPad, I've used a few at friends' and I know no one who got another tablet.

  4. Hmmm... apparently there is an issue with the number you're passing in, have you tried to use the international format +"country code""number"?

    Also I'm not sure what could have changed with the versions... I developed with 1.0.31 and you have 1.0.36... there shouldn't be issue with that but you can still search the documentation here : https://developer.sk...erence#COMMANDS

    Here's the example I made at the time, I tested it, it was working fine.

    post-7452-0-83583400-1317389001.jpg

  5. One way to get an idea of the addons you're using in your project in to create an installer, in the "additional installers" section, by default all you need is included - I believe.

    Hope this helps

    PS : I know some people always exclude all the additional installers so that their application's installer only installs their EXE and they give the list of all that's required to the customer who can then get it from either NI's website or the CDs they receive with the hardware.

  6. The cluster contains two references, but they're different kinds of references. Hence, the Cluster to Array is complaining, since it only works when the cluster contains elements of the same datatype. You can see in the Build Array that there's data coercion on both so that they are being "downcast" to the common datatype of a "lowly" "Control Refnum".

    I understand that.

    And yes, what I'd like is a smater "cluster to array", by the way here's my use case :

    post-7452-0-50123800-1313768373_thumb.pn

    I'm lazy and I'd like to have the best of both worlds - so to speak.

    A smarter "cluster to array" is one step, the second step would be for the property/invoke node to accept arrays of references. I think there is already an idea for that (not sure though).

  7. You can start from the examples that ship with VDM (Vision Development Module, that you have I assume).

    The example are fairly basic but they show how to use the different functions from the palette (character sets and all that stuff).

    One of the big challenges in real world OCR applications is often to find a reference in the image to place the ROI, do you already have image samples in which you will have to find and read text?

    Hope this helps

  8. Share what you know, learn what you can.

    Knowledge is the only matter that grows when shared.

    If you want to go quickly, go alone. If you want to go far, go together.

    These are fairly know and I like then a lot.

    I've been trying to modify them slightly to relate them to LV or LAVA or NI, but I could come up with anything nice, maybe someone will be more creative than me :-o

    • Like 2
  9. Gentlemen, don't be fooled into thinking that process will be easy.

    Unfortunately there is no easy way to kick an XControl alive to receive an event without interacting w/ it's front panel interactively somehow.

    Technically the XCtl code goes practically idle until one of the 'Official' XCtl events gets fired.

    You can register user events into the panel till you're blue in the face, but the facade won't wake up untill there is some other kind of interaction w/ the panel.

    And even then the panel won't be registered for the events that were already fired because the Event Registration Refnum will have gone invalid.

    fwiw, I hope you prove me wrong, but that's just one of those rough edges to the XCtl

    ~,~

    Thanks for the warning, I haven't had time to come back to that piece of code yet but when I do, I'll come back to this post.

    Cheers

×
×
  • Create New...

Important Information

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