Skip to content

Commit

Permalink
Update SDK to version 22.1.0.0
Browse files Browse the repository at this point in the history
Added
- M+ and L+ Flow Units support HFE, FC40 and Oil calibrations when connected
  to Flow EZ or F-OEM

Changed
- [C#] Native library path is now resolved only once, to improve performance

Fixed
- MFCS devices without serial number in usb descriptor are now initialized properly
- Recently added functions now have the correct visibility on Windows
- MFCS devices return the correct error code when disconnected
- [Python] Added missing return statement to fgt_set_valvePosition
- [LabVIEW] fgt_get_inletPressure VI can now be found in the palette
- [LabVIEW] Fixed paths to the DLL functions for some VIs
- [LabVIEW] Updated the HTML documentation
- [C++] Fixed export settings for Fgt_get_sensorAirBubbleFlag
  • Loading branch information
Ygor-Oliveira committed Aug 16, 2022
1 parent 76d5865 commit 55c870e
Show file tree
Hide file tree
Showing 63 changed files with 35 additions and 21 deletions.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/linux/arm/libfgt_SDK.so
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/linux/arm64/libfgt_SDK.so
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/linux/x64/libfgt_SDK.so
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/mac/x64/libfgt_SDK.dylib
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/windows/x64/fgt_SDK.dll
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/windows/x64/fgt_SDK.lib
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/windows/x86/fgt_SDK.dll
Binary file not shown.
Binary file modified C#/StaticFiles/fgt_sdk_dlls/windows/x86/fgt_SDK.lib
Binary file not shown.
17 changes: 15 additions & 2 deletions C#/fgt_sdk_csharp/fgtSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ namespace fgt_sdk
public static class fgtSdk
{
private const string FGT_SDK = "FGT_SDK";
private static IntPtr _nativeLibPointer = IntPtr.Zero;
private static IntPtr ArchResolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
{
if (libraryName != FGT_SDK)
{
throw new NotSupportedException($"{libraryName} not supported");
return IntPtr.Zero;
}
if (_nativeLibPointer != IntPtr.Zero)
{
return _nativeLibPointer;
}

var assemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
Expand Down Expand Up @@ -58,7 +63,15 @@ private static IntPtr ArchResolver(string libraryName, Assembly assembly, DllImp
};

var libPath = Path.Combine(basePath, osFolder, archFolder, libFile);
return NativeLibrary.Load(libPath);
if (!File.Exists(libPath))
{
// Native library can be placed in the root folder containing the executable that uses it
// When doing so, prepend "lib" on Windows to avoid a name collision with the assembly DLL
libPath = Path.Combine(assemblyPath, libFile.StartsWith("lib") ? libFile : "lib" + libFile);
}

_nativeLibPointer = NativeLibrary.Load(libPath);
return _nativeLibPointer;
}

#region Imported functions
Expand Down
6 changes: 3 additions & 3 deletions C#/fgt_sdk_csharp/fgt_sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
<Authors>Fluigent</Authors>
<Product>Fluigent Software Development Kit</Product>
<Description>C# Software Development Kit for Fluigent instruments</Description>
<Version>22.0.0.0</Version>
<Version>22.1.0.0</Version>
<PackageTags>Microfluidics, Control</PackageTags>
<Platforms>AnyCPU;x64;x86</Platforms>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>22.0.0.0</AssemblyVersion>
<AssemblyVersion>22.1.0.0</AssemblyVersion>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Copyright>Copyright (c) Fluigent 2022</Copyright>
<RepositoryUrl>https://github.com/Fluigent/fgt-SDK</RepositoryUrl>
<PackageProjectUrl>https://www.fluigent.com/</PackageProjectUrl>
<FileVersion>22.0.0.0</FileVersion>
<FileVersion>22.1.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
4 changes: 2 additions & 2 deletions C++/fgt_SDK_Cpp/dlls/fgt_SDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Title: fgt_SDK.h
* Purpose: Functions API for Fluigent instruments
* Version: 22.0.0.0
* Date: 04/2022
* Version: 22.1.0.0
* Date: 07/2022
*============================================================================*/

#ifndef _FGT_SDK_H
Expand Down
Binary file modified C++/fgt_SDK_Cpp/dlls/linux/arm/libfgt_SDK.so
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/linux/arm64/libfgt_SDK.so
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/linux/x64/libfgt_SDK.so
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/mac/x64/libfgt_SDK.dylib
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/windows/x64/fgt_SDK.dll
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/windows/x64/fgt_SDK.lib
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/windows/x86/fgt_SDK.dll
Binary file not shown.
Binary file modified C++/fgt_SDK_Cpp/dlls/windows/x86/fgt_SDK.lib
Binary file not shown.
6 changes: 3 additions & 3 deletions C++/fgt_SDK_Cpp/fgt_SDK_Cpp.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*============================================================================
* Fluigent Software Developement Kit for C++
*----------------------------------------------------------------------------
* Copyright (c) Fluigent 2021. All Rights Reserved.
* Copyright (c) Fluigent 2022. All Rights Reserved.
*----------------------------------------------------------------------------
*
* Title: fgt_SDK_Cpp.cpp
* Purpose: Wrapper to fgt_SDK library
* Contains an interface to each dll function and type conversions
* Version: 21.3.0.0
* Date: 09/2021
* Version: 22.1.0.0
* Date: 07/2022
*============================================================================*/

#include <iostream>
Expand Down
6 changes: 3 additions & 3 deletions C++/fgt_SDK_Cpp/fgt_SDK_Cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Title: fgt_SDK_Cpp.h
* Purpose: Wrapper to fgt_SDK library
* Contains an interface to each dll function and type conversions
* Version: 22.0.0.0
* Date: 04/2022
* Version: 22.1.0.0
* Date: 07/2022
*============================================================================*/

#ifndef _FGT_SDK_CPP_H
Expand Down Expand Up @@ -619,7 +619,7 @@ fgt_ERROR_CODE Fgt_set_digitalOutput(unsigned int controllerIndex, unsigned char
* @return fgt_ERROR_CODE
* @see fgt_get_sensorStatus
*/
fgt_ERROR_CODE FGT_API Fgt_get_sensorAirBubbleFlag(unsigned int sensorIndex, unsigned char* detected);
fgt_ERROR_CODE Fgt_get_sensorAirBubbleFlag(unsigned int sensorIndex, unsigned char* detected);

/**
* @Description Returns the pressure measured at the device's inlet.
Expand Down
Binary file modified Fluigent SDK.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions LabVIEW/dlls/fgt_SDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Title: fgt_SDK.h
* Purpose: Functions API for Fluigent instruments
* Version: 22.0.0.0
* Date: 04/2022
* Version: 22.1.0.0
* Date: 07/2022
*============================================================================*/

#ifndef _FGT_SDK_H
Expand Down
Binary file modified LabVIEW/dlls/fgt_SDK_32.dll
Binary file not shown.
Binary file modified LabVIEW/dlls/fgt_SDK_64.dll
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Basic functions/fgt get valve position.vi
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Basic functions/fgt set valve position.vi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Engine/fgt create simulated instr.vi
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Engine/fgt remove simulated instr.vi
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Specific functions/fgt get inlet Pressure.vi
Binary file not shown.
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Specific functions/fgt set all Valves.vi
Binary file not shown.
Binary file modified LabVIEW/sourceCode/VIs/Specific functions/fgt set digital Output.vi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified LabVIEW/sourceCode/subvi/ErrorCodeToErrorStringConverter.vi
Binary file not shown.
Binary file modified MATLAB/Toolbox/SDK/Fluigent/+LowLevel/private/fgt_SDK_32.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function [methodinfo,structs,enuminfo,ThunkLibName]=fgt_SDK_32_prototype
%FGT_SDK_32_PROTOTYPE Create structures to define interfaces found in 'fgt_SDK'.

%This function was generated by loadlibrary.m parser version on Fri Apr 1 14:11:51 2022
%This function was generated by loadlibrary.m parser version on Fri Jul 29 13:29:21 2022
%perl options:'fgt_SDK.i -outfile=fgt_SDK_32_prototype.m'
ival={cell(1,0)}; % change 0 to the actual number of functions to preallocate the data.
structs=[];enuminfo=[];fcnNum=1;
Expand Down
Binary file modified MATLAB/Toolbox/SDK/Fluigent/+LowLevel/private/fgt_SDK_64.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function [methodinfo,structs,enuminfo,ThunkLibName]=fgt_SDK_64_prototype
%FGT_SDK_64_PROTOTYPE Create structures to define interfaces found in 'fgt_SDK'.

%This function was generated by loadlibrary.m parser version on Fri Apr 1 14:11:51 2022
%This function was generated by loadlibrary.m parser version on Fri Jul 29 13:29:21 2022
%perl options:'fgt_SDK.i -outfile=fgt_SDK_64_prototype.m -thunkfile=fgt_sdk_thunk_pcwin64.c -header=fgt_SDK.h'
ival={cell(1,0)}; % change 0 to the actual number of functions to preallocate the data.
structs=[];enuminfo=[];fcnNum=1;
Expand Down
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion Python/Fluigent/SDK/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from . import low_level
from . import exceptions

__version__ = "22.0.0"
__version__ = "22.1.0"

# Enums
class fgt_ERROR(low_level.fgt_ERROR):
Expand Down Expand Up @@ -718,6 +718,7 @@ def fgt_set_valvePosition(valve_index, position, direction = fgt_SWITCH_DIRECTIO
low_level_function = low_level.fgt_set_valvePosition
c_error, = low_level_function(valve_index, position, direction, wait)
exceptions.manage_generic_status(low_level_function.__name__, c_error)
return fgt_ERROR(c_error)

def fgt_get_valvePosition(valve_index, get_error = _get_error):
"""Read the position of a specific valve channel.
Expand Down
Binary file modified Python/Fluigent/SDK/shared/linux/arm/libfgt_SDK.so
Binary file not shown.
Binary file modified Python/Fluigent/SDK/shared/linux/arm64/libfgt_SDK.so
Binary file not shown.
Binary file modified Python/Fluigent/SDK/shared/linux/x64/libfgt_SDK.so
Binary file not shown.
Binary file modified Python/Fluigent/SDK/shared/mac/x64/libfgt_SDK.dylib
Binary file not shown.
Binary file modified Python/Fluigent/SDK/shared/windows/x64/fgt_SDK.dll
Binary file not shown.
Binary file modified Python/Fluigent/SDK/shared/windows/x86/fgt_SDK.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Fluigent Software Developement Kit - version 22.0.0
# Fluigent Software Developement Kit - version 22.1.0

# Overview
The Fluigent Software Development Kit (SDK) allows you to fully integrate Fluigent devices in your application;
Expand Down
4 changes: 2 additions & 2 deletions Shared/fgt_SDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* Title: fgt_SDK.h
* Purpose: Functions API for Fluigent instruments
* Version: 22.0.0.0
* Date: 04/2022
* Version: 22.1.0.0
* Date: 07/2022
*============================================================================*/

#ifndef _FGT_SDK_H
Expand Down
Binary file modified Shared/fgt_SDK_32.dll
Binary file not shown.
Binary file modified Shared/fgt_SDK_64.dll
Binary file not shown.
Binary file modified Shared/linux/arm/libfgt_SDK.so
Binary file not shown.
Binary file modified Shared/linux/arm64/libfgt_SDK.so
Binary file not shown.
Binary file modified Shared/linux/x64/libfgt_SDK.so
Binary file not shown.
Binary file modified Shared/mac/x64/libfgt_SDK.dylib
Binary file not shown.
Binary file modified Shared/windows/x64/fgt_SDK.dll
Binary file not shown.
Binary file modified Shared/windows/x64/fgt_SDK.lib
Binary file not shown.
Binary file modified Shared/windows/x86/fgt_SDK.dll
Binary file not shown.
Binary file modified Shared/windows/x86/fgt_SDK.lib
Binary file not shown.

0 comments on commit 55c870e

Please sign in to comment.