Jump to content

vestman

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Posts posted by vestman

  1. Hi,

    I am trying to achieve as high speed as possible when sending data over the network using shared variables.

    I have created a small test application as seen below.

    The test sequence consists of writing an array of I32 to a shared variable (so far located on my local machine) and then measure the time it takes before the same array can be read back from the variable.

    When I run tests I observe a behavior related to the size of the array. When writing an array larger than 2033 elements the average read+write time is around 0.8ms but when using a smaller array this time increases to a whopping 31ms.

    This behavior must be related to the built-in transmit buffer which holds 8kB, but why is the difference over 30ms? If the buffer isn't full the data should still be sent within 10ms? there has to be some additional delay related to smaller amounts of data?

    In my project the data will rarely fill the buffer and I do not have access to the Flush.vi of LV 8.5.1.

    Is there another way to speed up the transfer?

    post-10866-1210683498.png?width=400

  2. hi

    I'm building a set of FPGA subVIs for use in our future cRIO applications. The subVIs will be of type "8 channel DO", "8 channel DI", "8 channel PWM" et.c, with an array as input.

    I want the user to be able to place a subVI on the block diagram, connect an input, open the front panel of the subVI and select which 8 channels to use (from an I/O name control).

    This is not a problem to implement, but what about using multiple instances of the same VI? All subVIs point to the same file and hence changes to one equals changes to all.

    Is there a way around this, to be able to save changes made to every subVI placed on the block diagram independently?

    /Emil

  3. Hi,

    I am trying to create a number of Shared Variables programmatically. My plan is to read a configuration file and create the number of variables needed.

    I understand (from the excellent Shared Variable FAQ) that this is possible "with a VI server interface to the LabVIEW project".

    I have found a method called AddItem that requires "Name", "Path" and "Type" inputs. Is this the method to use and if so, how do I specify path and type? The documentation on this topic is really non-existent.

    /Emil

×
×
  • Create New...

Important Information

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