Jump to content

Neil Pate

Members
  • Posts

    1,156
  • Joined

  • Last visited

  • Days Won

    102

Posts posted by Neil Pate

  1. Thanks guys! This is good news as I was not really very excited to wrap every single other function exported by the DLL.

     

    I think I will wrap up the Initialise function (this is the one that requires the two callback pointers), and then implement the two callback functions as simple functions to PostLVEvent.

  2. I need to implement a certain comms protocol into some software I will be creating. This has been provided for me as a DLL. The problem is that the DLL uses callbacks for the message processing functions, which I cannot easily do from LabVIEW. So my idea was to create a small wrapper DLL which implements the callback functions but sends the data to LabVIEW using PostLVEvent.  I will have DLL_A  (supplied by my customer), and DLL_A_Wrapper (created by me)

     

    Now, something I do not know, can I call DLL_A functions directly from within LabVIEW or do I need to wrap all the DLL_A functions as well?

     

    I suppose my question is more like, when LabVIEW loads my wrapper DLL, do two copies of DLL_A exist in memory?

  3. Came across this thread today when looking for a solution to this issue.  This has been happening to me occasionally.  I have not found a solution yet.

    I am not looking for a 'Remove from Project' menu item but rather a 'Remove from Library' option when trying to get rid of a method I no longer need.

    The offending method cannot be dragged out of the class.

    If I delete it, the class complains and I cannot remove the reference to it still.

    The only solution I have found is to hack the .lvlcass XML and manually remove any reference to the method.

     

    This definitely needs a CAR.  I am seeing this in LV2015 so it is still broken.

     

    I can confirm I have also seen this behaviour recently with LV2015. Manually editing the .lvclass was the only thing that worked for me.

  4. Hi all,

     

    I have seen something today I was not expecting.

     

    If I probe a notifier wire, in the probe window I get two different messages in the Probe Display on alternate executions of the same piece of code:

     

    I get this:

    Notifier name: 
    Latest notification: 
    Number waiting: 0
    Refnum (in hex): 0x08800000
     
    and then I get an empty value in the probe display, with the value in the table reading: "Unnamed - 0 waiting - 0x880000
     
    So both tell me the same thing, but I wonder why I get this alternating effect. It is very noticeable in the probe window as the blue line that highlights the current probe is skinny and then fat.
     
    This is LV2015.
     
    Am I doing something strange in my code or have others seen a similar effect.

    post-7375-0-65619700-1447240043.png

    post-7375-0-94603700-1447240064.png

  5. You certainly can run the code as you wish.

    A VI does not need to be running to be inserted, but if you do this and then run it there is a nasty transition when the VI changes to running.

    The refs are not related at all. The subpanel will not do anything with the inserted VI ref. Inserting a different VI does not destroy the original VI ref. You can get a ref to the inserted VI from the subpanel. Hold onto the VI ref if you want to do other stuff to the VI like aborting it etc

  6. Hi all,

     

    I remember some time ago a discussion somewhere (cannot remember where) about the possibility of a Variant To Data figuring out which data type to output depending on what type the output was wired into.

     

    Even though the type input is shown as a bold input (i.e. "required"), it is possible to leave this off. I have always manually placed down the desired output type, just as a force of habit more than anything else.

     

    It seems that as long as there are no other structures in the way the Variant To Data is able to figure out the type it is being wired into, so is there any sense in placing a type constant?

     

    Interested to hear what others do here.

  7. Yeah I kinda expected it...

     

    It's a bit annoying really, it is not like Windows 10 was all of a sudden released on the world with no notice.

     

    So strangely I was poking around in my Vision pallette and even though I had to switch off my Pc during the installation the IMAQdx VIs are there. Will probably go up in smoke if I try and run them though :lol:  

     

    Edit for grammar

  8. Hi All,

     

    I have recently cobbled together a new PC, and have put Windows 10 on it (which I really like).

     

    Everything works quite nicely, but have had a lot of trouble installing NI Drivers. I have the August 2015 Software Reference Library USB stick, and cannot install DAQmx or Vision without the installer hard-crashing my PC (power off required!).

    I have no issues installing other software (LabVIEW, toolkits, TestStand etc) off the USB stick.

     

    I was able to get DAQmx to install by using one I downloaded, but this technique has failed me for the Vision drivers.

     

    Anybody else experience this behaviour? I would suspect it is just something about my system the installer does not like. I have a pretty new Skylake based CPU so perhaps that could be it?

     

    Kind regards

    Neil

  9. Hi there,

     

    Has anybody used the OPC UA client that is part of the DSC toolkit? I am trying to use it to connect to a PLC and am getting error -336653 "The status of the OPC UA server is uncertain"

     

    I am able to create a local OPC UA server in LabVIEW and connect to this with no issues from the LabVIEW OPC UA client, and can connect to the PLC just fine using a different client.

     

    After speaking with NI it looks like this may be a permission issue, but I have tried all the obvious things in the OPC UA client (like client and server certificates), with the same result.

     

    Any tips?

     

    Crossposted 

    http://forums.ni.com/t5/LabVIEW/OPC-UA-client-cannot-connect-to-PLC/td-p/3195246

  10. Yeah I want to try and use FTP to download things like DAQmx without having to go through the NI downloader which I find gets quite choked sometimes.

     

    Thanks for the FTP link, that will be useful for LabVIEW related stuff.

  11. Hi All,

     

    I am trying to get a new PC back up to a usable state (installing software etc). Am having some trouble accessing the NI.com FTP site. Using filezilla I can access ftp.ni.com with no problems, but cannot get find support/softlib where the juicy bits get downloaded from.

     

    As I said this is a new PC so I had to create the FTP connection from memory, have I done something stupid like not put the right authentication or something?

  12. I am also getting on OK with Win 10.

     

    The start menu behaviour annoyed me so I installed Start10 which makes it behave more like a hybrid of Windows 7 (which I thought worked quite well) and Win 10. You can pin as normal, I have multiple versions of LabVIEW pinned.

  13. I agree the problem stems from calling them "wires". In LabVIEW all wires obey data-flow, period.

     

    Queues and other reference type constructs are not wires, they have a wire to represent the their reference, and that wire does obey dataflow, but the actual implementation of the queue does not live on the wire.

     

    So, I do am not really that keen on the name "Channel Wires". I would have been totally fine with just "Channels". However, I am pretty sure I will just get used to them.

  14. I am thinking of putting together a benchmarking application that can be used to roughly gauge a PC/target's performance. Kind of like a FutureMark 3DMark but for LabVIEW code.

     

    Has anybody done anything like this? I know we all do lots of informal benchmarking of code to test performance of different algorithms, I am suggesting pick certain algorithms and then benchmark against different hardware/OS etc.

     

    Does anybody have any recommendations for test suites to run? I was thinking things like encryption algorithms, linear algebra, large FFTs etc, mass compile etc 

     

    Would love to hear thoughts on this.

     

×
×
  • Create New...

Important Information

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