Skip to content

Commit 5c4c295

Browse files
authored
Merge pull request #47 from Fluigent/version-22.1.0.0
Update SDK to version 22.1.0.0
2 parents 76d5865 + 55c870e commit 5c4c295

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+35
-21
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
512 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

C#/fgt_sdk_csharp/fgtSdk.cs

+15-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ namespace fgt_sdk
1616
public static class fgtSdk
1717
{
1818
private const string FGT_SDK = "FGT_SDK";
19+
private static IntPtr _nativeLibPointer = IntPtr.Zero;
1920
private static IntPtr ArchResolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
2021
{
2122
if (libraryName != FGT_SDK)
2223
{
23-
throw new NotSupportedException($"{libraryName} not supported");
24+
return IntPtr.Zero;
25+
}
26+
if (_nativeLibPointer != IntPtr.Zero)
27+
{
28+
return _nativeLibPointer;
2429
}
2530

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

6065
var libPath = Path.Combine(basePath, osFolder, archFolder, libFile);
61-
return NativeLibrary.Load(libPath);
66+
if (!File.Exists(libPath))
67+
{
68+
// Native library can be placed in the root folder containing the executable that uses it
69+
// When doing so, prepend "lib" on Windows to avoid a name collision with the assembly DLL
70+
libPath = Path.Combine(assemblyPath, libFile.StartsWith("lib") ? libFile : "lib" + libFile);
71+
}
72+
73+
_nativeLibPointer = NativeLibrary.Load(libPath);
74+
return _nativeLibPointer;
6275
}
6376

6477
#region Imported functions

C#/fgt_sdk_csharp/fgt_sdk.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
<Authors>Fluigent</Authors>
66
<Product>Fluigent Software Development Kit</Product>
77
<Description>C# Software Development Kit for Fluigent instruments</Description>
8-
<Version>22.0.0.0</Version>
8+
<Version>22.1.0.0</Version>
99
<PackageTags>Microfluidics, Control</PackageTags>
1010
<Platforms>AnyCPU;x64;x86</Platforms>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
12-
<AssemblyVersion>22.0.0.0</AssemblyVersion>
12+
<AssemblyVersion>22.1.0.0</AssemblyVersion>
1313
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1414
<Copyright>Copyright (c) Fluigent 2022</Copyright>
1515
<RepositoryUrl>https://github.com/Fluigent/fgt-SDK</RepositoryUrl>
1616
<PackageProjectUrl>https://www.fluigent.com/</PackageProjectUrl>
17-
<FileVersion>22.0.0.0</FileVersion>
17+
<FileVersion>22.1.0.0</FileVersion>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

C++/fgt_SDK_Cpp/dlls/fgt_SDK.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*
77
* Title: fgt_SDK.h
88
* Purpose: Functions API for Fluigent instruments
9-
* Version: 22.0.0.0
10-
* Date: 04/2022
9+
* Version: 22.1.0.0
10+
* Date: 07/2022
1111
*============================================================================*/
1212

1313
#ifndef _FGT_SDK_H
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
18.3 KB
Binary file not shown.
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
9.5 KB
Binary file not shown.
20 Bytes
Binary file not shown.

C++/fgt_SDK_Cpp/fgt_SDK_Cpp.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*============================================================================
22
* Fluigent Software Developement Kit for C++
33
*----------------------------------------------------------------------------
4-
* Copyright (c) Fluigent 2021. All Rights Reserved.
4+
* Copyright (c) Fluigent 2022. All Rights Reserved.
55
*----------------------------------------------------------------------------
66
*
77
* Title: fgt_SDK_Cpp.cpp
88
* Purpose: Wrapper to fgt_SDK library
99
* Contains an interface to each dll function and type conversions
10-
* Version: 21.3.0.0
11-
* Date: 09/2021
10+
* Version: 22.1.0.0
11+
* Date: 07/2022
1212
*============================================================================*/
1313

1414
#include <iostream>

C++/fgt_SDK_Cpp/fgt_SDK_Cpp.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Title: fgt_SDK_Cpp.h
88
* Purpose: Wrapper to fgt_SDK library
99
* Contains an interface to each dll function and type conversions
10-
* Version: 22.0.0.0
11-
* Date: 04/2022
10+
* Version: 22.1.0.0
11+
* Date: 07/2022
1212
*============================================================================*/
1313

1414
#ifndef _FGT_SDK_CPP_H
@@ -619,7 +619,7 @@ fgt_ERROR_CODE Fgt_set_digitalOutput(unsigned int controllerIndex, unsigned char
619619
* @return fgt_ERROR_CODE
620620
* @see fgt_get_sensorStatus
621621
*/
622-
fgt_ERROR_CODE FGT_API Fgt_get_sensorAirBubbleFlag(unsigned int sensorIndex, unsigned char* detected);
622+
fgt_ERROR_CODE Fgt_get_sensorAirBubbleFlag(unsigned int sensorIndex, unsigned char* detected);
623623

624624
/**
625625
* @Description Returns the pressure measured at the device's inlet.

Fluigent SDK.pdf

35 Bytes
Binary file not shown.

LabVIEW/dlls/fgt_SDK.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*
77
* Title: fgt_SDK.h
88
* Purpose: Functions API for Fluigent instruments
9-
* Version: 22.0.0.0
10-
* Date: 04/2022
9+
* Version: 22.1.0.0
10+
* Date: 07/2022
1111
*============================================================================*/
1212

1313
#ifndef _FGT_SDK_H

LabVIEW/dlls/fgt_SDK_32.dll

9.5 KB
Binary file not shown.

LabVIEW/dlls/fgt_SDK_64.dll

512 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

MATLAB/Toolbox/SDK/Fluigent/+LowLevel/private/fgt_SDK_32_prototype.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function [methodinfo,structs,enuminfo,ThunkLibName]=fgt_SDK_32_prototype
22
%FGT_SDK_32_PROTOTYPE Create structures to define interfaces found in 'fgt_SDK'.
33

4-
%This function was generated by loadlibrary.m parser version on Fri Apr 1 14:11:51 2022
4+
%This function was generated by loadlibrary.m parser version on Fri Jul 29 13:29:21 2022
55
%perl options:'fgt_SDK.i -outfile=fgt_SDK_32_prototype.m'
66
ival={cell(1,0)}; % change 0 to the actual number of functions to preallocate the data.
77
structs=[];enuminfo=[];fcnNum=1;
Binary file not shown.

MATLAB/Toolbox/SDK/Fluigent/+LowLevel/private/fgt_SDK_64_prototype.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function [methodinfo,structs,enuminfo,ThunkLibName]=fgt_SDK_64_prototype
22
%FGT_SDK_64_PROTOTYPE Create structures to define interfaces found in 'fgt_SDK'.
33

4-
%This function was generated by loadlibrary.m parser version on Fri Apr 1 14:11:51 2022
4+
%This function was generated by loadlibrary.m parser version on Fri Jul 29 13:29:21 2022
55
%perl options:'fgt_SDK.i -outfile=fgt_SDK_64_prototype.m -thunkfile=fgt_sdk_thunk_pcwin64.c -header=fgt_SDK.h'
66
ival={cell(1,0)}; % change 0 to the actual number of functions to preallocate the data.
77
structs=[];enuminfo=[];fcnNum=1;
Binary file not shown.
Binary file not shown.

Python/Fluigent/SDK/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from . import low_level
66
from . import exceptions
77

8-
__version__ = "22.0.0"
8+
__version__ = "22.1.0"
99

1010
# Enums
1111
class fgt_ERROR(low_level.fgt_ERROR):
@@ -718,6 +718,7 @@ def fgt_set_valvePosition(valve_index, position, direction = fgt_SWITCH_DIRECTIO
718718
low_level_function = low_level.fgt_set_valvePosition
719719
c_error, = low_level_function(valve_index, position, direction, wait)
720720
exceptions.manage_generic_status(low_level_function.__name__, c_error)
721+
return fgt_ERROR(c_error)
721722

722723
def fgt_get_valvePosition(valve_index, get_error = _get_error):
723724
"""Read the position of a specific valve channel.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
512 Bytes
Binary file not shown.
Binary file not shown.

README.md

+1-1

Shared/fgt_SDK.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*
77
* Title: fgt_SDK.h
88
* Purpose: Functions API for Fluigent instruments
9-
* Version: 22.0.0.0
10-
* Date: 04/2022
9+
* Version: 22.1.0.0
10+
* Date: 07/2022
1111
*============================================================================*/
1212

1313
#ifndef _FGT_SDK_H

Shared/fgt_SDK_32.dll

9.5 KB
Binary file not shown.

Shared/fgt_SDK_64.dll

512 Bytes
Binary file not shown.

Shared/linux/arm/libfgt_SDK.so

0 Bytes
Binary file not shown.

Shared/linux/arm64/libfgt_SDK.so

0 Bytes
Binary file not shown.

Shared/linux/x64/libfgt_SDK.so

0 Bytes
Binary file not shown.

Shared/mac/x64/libfgt_SDK.dylib

18.3 KB
Binary file not shown.

Shared/windows/x64/fgt_SDK.dll

512 Bytes
Binary file not shown.

Shared/windows/x64/fgt_SDK.lib

0 Bytes
Binary file not shown.

Shared/windows/x86/fgt_SDK.dll

9.5 KB
Binary file not shown.

Shared/windows/x86/fgt_SDK.lib

20 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)