Jump to content

styrum

Members
  • Posts

    36
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by styrum

  1. On 11/29/2018 at 1:07 PM, MikaelH said:

    You won't believe what I had to do to get it working ;-), coding VIs that runs in the project provider application instance is not always easy.
    A VI that works fine when you run it normally, could still crash/freeze LV when it's running under the project provider application.
    I hope it will be easier in NXG.

    So, can you make a tutorial (provide links to info/examples) on specifically that topic: How to make your own project provider, how to add your own items/code to the popup menu on the items in the project editor tree, including your own New..., the same way way Open GDS and AF do? Is this the best place to start? https://forums.ni.com/t5/LabVIEW-Project-Providers/gp-p/bymqyodmkc?profile.language=en

    What specific troubles did you run into that are not covered there?

  2. In his "Don’t Wait for LabVIEW R&D…Implement Your Own LabVIEW Features!" presentation Darren Nattinger advised to not mess with project providers. So, he didn't give any links to anything on this subject. How did you figure out how to do it? Please provide links/code on how to make your own project provider. Is this the best place to start on this topic?

    https://forums.ni.com/t5/LabVIEW-Project-Providers/gp-p/bymqyodmkc?profile.language=en

    Any  advice/help/examples you can offer from your own experience making your own project provider?

    image.png

  3. Now that it looks like Microsoft deprecated ActveX Automation interface in Excel 2016, the only other interface left is .NET interop assemblies. I have tried to reproduce Excel - Write Table.vi using .NET instead of ActiveX. The result of the effort is attached. There is a big problem though: The Range.value2 property could take 'anything' without a problem when using ActiveX (it was taking any variant)! But now it wants a .NET object. And the 'To .NET Object.vi' doesn't accept a 2D array of variants! So, say getting a recordset from a database (which is returned as a 2d array of variants) and then writing it, as it is, to a new Excel workbook is no longer possible as far as I understand. This is really sad. A 2D Table of strings or doubles is still OK. So, if you need to use those, you can with the attached code

    Write Table to Excel with DotNET.vi

×
×
  • Create New...

Important Information

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