Jump to content

Tim_S

Members
  • Posts

    873
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by Tim_S

  1. You will want to check out the examples that ship with LabVIEW; there are good instrument/RS232 examples included. As for installing the driver... if there isn't an installer or if it's not a package (see VIPM) then you will just put the driver in "C:\Program Files\National Instruments\LabVIEW xxxx\instr.lib".

    Tim

  2. It really shouldn't matter that much. LabVIEW code is compiled regardless of whether you're in the development environment or the run-time environment. Are you trying to determine differences between different machines?

    Executables typically do not have their block diagrams; this speeds up performance and can give you slightly different timing.

  3. Here's an update on this. I recreated the base object and plugins from scratch and, I thought, identically. The recreated code worked without issue. Tech support's response was:

    "With the first version of the code you sent me, we found that the problem was caused by the fact that you were typecasting a class that was embedded in the packed project library to a class that was outside of a packed project. library. By packing all of your classes into packed project libraries as you did in your rewritten plugin code, the error was no longer present."

    I'm not sure how I created this condition as I've not reviewed the code yet. Tech support is filing a CAR related to this in addition to the CAR on the broken VI after one run.

    Tim
  4. NI tech support has filed a CAR on this; I'll post it when they send it to me. The CAR is about the breaking after execution and not what is causing the breaking; we're still working on the root cause.

    I've been trying to convert some working LV2011 code to a plugin structure using the method found at http://lavag.org/topic/14212-how-to-call-a-plug-in-object-from-an-executable/page__p__85600#entry85600. The code can execute once during which loading the plugins produces errors. The code terminates and is now broken. All of the plugins are now in memory with no way to unload them except to close the project and open it up again.

    I pulled out the load portion of the code and had no problems loading a plugin and converting it to a more specific class. I added a VI from the base class after the conversion and ran into the same break-after-execution.

    I don't have a version of the code I can post here, however would appreciate any ideas that could help us figure this out. The plugins are to perform analyses (max, min, span, kurtosis, etc.) on waveforms.

    Tim

  5. HI all,

    I am Having NI cRIO and i dont know,

    How to call Dynamiv VI On FPGA RT Target

    Plsease Help.

    Are you trying to call a dynamic VI on a RT or FPGA? I've not tried it with RT, but I assume it's the same as Windows. Dynamic loading is not available on FPGA.

    Do you have code? Have you tried or looked at examples?

    Tim

  6. If it connects to the serial port then you need to look at the serial communication pallet. There may be a device driver that does the interface you need. Have you looked at NI's website or the manufacture's website for such?

    Tim

  7. I've used functional globals, however I've used and read good argument for using global variables. Global variables can contain constants kept in controls with the value set as the default. You then have one VI to go to for all of your constant values. I would recommend the FG over the global if you are going to access the value frequently, but if it's something that you are going to read once during initialization and never again (e.g., IP address of target system) then a global would be appropriate.

    If it's a value that never changes and you don't load, a VI with a constant in it could be set to inline, thus providing the same (similar?) overhead as a constant with the benefit of changing the value one place.

    Tim

    • Like 2
  8. Can someone please help me understand "friends"

    People would be more able to help if you posted your project rather than the snippet.

    The concept of friends is along the lines of such... Say I have a drill and know two people "Person A" and "Person B". Both people want to borrow the drill. Person A is a friend, so I say sure, go ahead and borrow the drill. Person B is unknown to me, so I tell him to bugger off and don't let him have access to the drill. Person A may or may not consider me a friend, but that doesn't matter as I believe he is one and will grant him access to my drill.

    Tim

×
×
  • Create New...

Important Information

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