msl.examples.loadlib.labview64 module

Communicates with labview_lib32 via the Labview32 class.

Attention

This example requires that the appropriate LabVIEW Run-Time Engine is installed and that the operating system is Windows.

Example of a module that can be executed within a 64-bit Python interpreter which can communicate with a 32-bit library, labview_lib32, that is hosted by a 32-bit Python server, labview32. A 64-bit process cannot load a 32-bit library and therefore inter-process communication is used to interact with a 32-bit library from a 64-bit process.

Labview64 is the 64-bit client and Labview32 is the 32-bit server for inter-process communication.

class msl.examples.loadlib.labview64.Labview64

Bases: Client64

Communicates with a 32-bit LabVIEW library, labview_lib32.

This class demonstrates how to communicate with a 32-bit LabVIEW library if an instance of this class is created within a 64-bit Python interpreter.

stdev(x, weighting=0)

Calculates the mean, variance and standard deviation of the values in the input x.

See the corresponding 32-bit stdev() method.

Parameters:
  • x (Sequence[float]) – The data to calculate the mean, variance and standard deviation of.

  • weighting (int) – Whether to calculate the sample (weighting = 0) or the population (weighting = 1) standard deviation and variance.

Returns:

The mean, variance and standard deviation.

Return type:

tuple[float, float, float]