Skip to content

Commit e158ea8

Browse files
authored
Merge pull request #62 from Fluigent/version-22.2.0.0
Update SDK to version 22.2.0.0
2 parents 5c4c295 + e6c3070 commit e158ea8

File tree

95 files changed

+933
-164
lines changed

Some content is hidden

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

95 files changed

+933
-164
lines changed
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.

C#/fgt_sdk_csharp/Enums/fgt_INSTRUMENT_TYPE.cs

+2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ public enum fgt_INSTRUMENT_TYPE
1414
IPS,
1515
ESS,
1616
F_OEM,
17+
CFU,
18+
NIFS,
1719
}
1820
}

C#/fgt_sdk_csharp/Enums/fgt_SENSOR_TYPE.cs

+2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ public enum fgt_SENSOR_TYPE
2020
Pressure_XL,
2121
Flow_M_plus_dual,
2222
Flow_L_plus_dual,
23+
Flow_L_CFU,
24+
Flow_L_NIFS,
2325
}
2426
}

C#/fgt_sdk_csharp/Enums/fgt_VALVE_TYPE.cs

+1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ public enum fgt_VALVE_TYPE
1414
M_X,
1515
Two_X,
1616
L_X,
17+
Bypass,
1718
}
1819
}

C#/fgt_sdk_csharp/fgtSdk.cs

+105-2
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,30 @@ private static IntPtr ArchResolver(string libraryName, Assembly assembly, DllImp
314314
[DllImport(FGT_SDK)]
315315
private static extern byte fgt_get_inletPressure(uint pressureIndex, ref float pressure);
316316

317+
// unsigned char __stdcall fgt_get_differentialPressureRange(unsigned int sensorIndex, float* Pmin, float* Pmax);
318+
[DllImport(FGT_SDK)]
319+
private static extern byte fgt_get_differentialPressureRange(uint sensorIndex, ref float pMin, ref float pMax);
320+
321+
// unsigned char __stdcall fgt_get_differentialPressure(unsigned int sensorIndex, float* Pdiff);
322+
[DllImport(FGT_SDK)]
323+
private static extern byte fgt_get_differentialPressure(uint sensorIndex, ref float pDiff);
324+
325+
// unsigned char __stdcall fgt_get_absolutePressureRange(unsigned int sensorIndex, float* Pmin, float* Pmax);
326+
[DllImport(FGT_SDK)]
327+
private static extern byte fgt_get_absolutePressureRange(uint sensorIndex, ref float pMin, ref float pMax);
328+
329+
// unsigned char __stdcall fgt_get_absolutePressure(unsigned int sensorIndex, float* Pabs);
330+
[DllImport(FGT_SDK)]
331+
private static extern byte fgt_get_absolutePressure(uint sensorIndex, ref float pAbs);
332+
333+
// unsigned char __stdcall fgt_get_sensorBypassValve(unsigned int sensorIndex, unsigned char* state)
334+
[DllImport(FGT_SDK)]
335+
private static extern byte fgt_get_sensorBypassValve(uint sensorIndex, ref byte state);
336+
337+
// unsigned char __stdcall fgt_set_sensorBypassValve(unsigned int sensorIndex, unsigned char state)
338+
[DllImport(FGT_SDK)]
339+
private static extern byte fgt_set_sensorBypassValve(uint sensorIndex, byte state);
340+
317341
#endregion
318342

319343
#endregion
@@ -1132,8 +1156,9 @@ public static fgt_ERROR_CODE Fgt_set_purge(uint controllerIndex, bool purge)
11321156
}
11331157

11341158
/// <summary>
1135-
/// Manually activate internal electrovalve. This stops pressure regulation.
1136-
/// This feature is only available on MFCS and MFCS-EZ devices.
1159+
/// Manually set internal solenoid valve voltage.
1160+
/// This stops pressure regulation on the channel until a new pressure or
1161+
/// flow rate command is set.
11371162
/// </summary>
11381163
/// <param name="pressureIndex">Index of pressure channel or unique ID</param>
11391164
/// <param name="value">Applied valve voltage from 0 to 100(%)</param>
@@ -1184,6 +1209,84 @@ public static (fgt_ERROR_CODE errCode, float pressure) Fgt_get_inletPressure(uin
11841209
return (errCode, pressure);
11851210
}
11861211

1212+
/// <summary>
1213+
/// Returns the range of the differential pressure sensor.
1214+
/// This feature is only available on NIFS devices.
1215+
/// </summary>
1216+
/// <param name="sensorIndex">Index of sensor channel or unique ID</param>
1217+
/// <returns>Error code <see cref="fgt_ERROR_CODE"/></returns>
1218+
public static (fgt_ERROR_CODE errCode, float pMin, float pMax) Fgt_get_differentialPressureRange(uint sensorIndex)
1219+
{
1220+
float pMin = 0, pMax = 0;
1221+
var errCode = ErrCheck((fgt_ERROR_CODE)fgt_get_differentialPressureRange(sensorIndex, ref pMin, ref pMax), fgt_ERRCHECK_TYPE.Sensor);
1222+
return (errCode, pMin, pMax);
1223+
}
1224+
1225+
/// <summary>
1226+
/// Returns the current differential pressure measurement
1227+
/// This feature is only available on NIFS devices.
1228+
/// </summary>
1229+
/// <param name="sensorIndex">Index of sensor channel or unique ID</param>
1230+
/// <returns>Error code <see cref="fgt_ERROR_CODE"/> and differential pressure</returns>
1231+
public static (fgt_ERROR_CODE errCode, float pDiff) Fgt_get_differentialPressure(uint sensorIndex)
1232+
{
1233+
float pDiff = 0;
1234+
var errCode = ErrCheck((fgt_ERROR_CODE)fgt_get_differentialPressure(sensorIndex, ref pDiff), fgt_ERRCHECK_TYPE.Sensor);
1235+
return (errCode, pDiff);
1236+
}
1237+
1238+
/// <summary>
1239+
/// Returns the range of the absolute pressure sensor.
1240+
/// This feature is only available on NIFS devices.
1241+
/// </summary>
1242+
/// <param name="sensorIndex">Index of sensor channel or unique ID</param>
1243+
/// <returns>Error code <see cref="fgt_ERROR_CODE"/></returns>
1244+
public static (fgt_ERROR_CODE errCode, float pMin, float pMax) Fgt_get_absolutePressureRange(uint sensorIndex)
1245+
{
1246+
float pMin = 0, pMax = 0;
1247+
var errCode = ErrCheck((fgt_ERROR_CODE)fgt_get_absolutePressureRange(sensorIndex, ref pMin, ref pMax), fgt_ERRCHECK_TYPE.Sensor);
1248+
return (errCode, pMin, pMax);
1249+
}
1250+
1251+
/// <summary>
1252+
/// Returns the current absolute pressure measurement
1253+
/// This feature is only available on NIFS devices.
1254+
/// </summary>
1255+
/// <param name="sensorIndex">Index of sensor channel or unique ID</param>
1256+
/// <returns>Error code <see cref="fgt_ERROR_CODE"/> and absolute pressure</returns>
1257+
public static (fgt_ERROR_CODE errCode, float pAbs) Fgt_get_absolutePressure(uint sensorIndex)
1258+
{
1259+
float pAbs = 0;
1260+
var errCode = ErrCheck((fgt_ERROR_CODE)fgt_get_absolutePressure(sensorIndex, ref pAbs), fgt_ERRCHECK_TYPE.Sensor);
1261+
return (errCode, pAbs);
1262+
}
1263+
1264+
/// <summary>
1265+
/// Returns the current state of the bypass valve.
1266+
/// This feature is only available on NIFS devices.
1267+
/// </summary>
1268+
/// <param name="sensorIndex">Index of sensor channel or unique ID</param>
1269+
/// <returns>Error code <see cref="fgt_ERROR_CODE"/> and boolean value which is true if the valve is open and false otherwise</returns>
1270+
public static (fgt_ERROR_CODE errCode, bool state) Fgt_get_sensorBypassValve(uint sensorIndex)
1271+
{
1272+
byte state = 0;
1273+
var errCode = ErrCheck((fgt_ERROR_CODE)fgt_get_sensorBypassValve(sensorIndex, ref state), fgt_ERRCHECK_TYPE.Sensor);
1274+
return (errCode, state != 0);
1275+
}
1276+
1277+
/// <summary>
1278+
/// Sets the state of the sensor's bypass valve.
1279+
/// This feature is only available on NIFS devices.
1280+
/// </summary>
1281+
/// <param name="sensorIndex">Index of sensor channel or unique ID</param>
1282+
/// <param name="state">True to open the valve, false to close</param>
1283+
/// <returns>Error code <see cref="fgt_ERROR_CODE"/> and boolean value which is true if the valve is open and false otherwise</returns>
1284+
public static fgt_ERROR_CODE Fgt_set_sensorBypassValve(uint sensorIndex, bool state)
1285+
{
1286+
var errCode = ErrCheck((fgt_ERROR_CODE)fgt_set_sensorBypassValve(sensorIndex, (byte)(state ? 1 : 0)), fgt_ERRCHECK_TYPE.Sensor);
1287+
return errCode;
1288+
}
1289+
11871290
#endregion
11881291

11891292
/// <summary>

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.1.0.0</Version>
8+
<Version>22.2.0.0</Version>
99
<PackageTags>Microfluidics, Control</PackageTags>
1010
<Platforms>AnyCPU;x64;x86</Platforms>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
12-
<AssemblyVersion>22.1.0.0</AssemblyVersion>
12+
<AssemblyVersion>22.2.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.1.0.0</FileVersion>
17+
<FileVersion>22.2.0.0</FileVersion>
1818
</PropertyGroup>
1919

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

C++/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.13)
22

3-
project(SDK_cpp_examples VERSION 22.0.0.0)
3+
project(SDK_cpp_examples VERSION 22.2.0.0)
44
set(CMAKE_CXX_STANDARD 11)
55

66
add_subdirectory(fgt_SDK_Cpp)

C++/fgt_SDK_Cpp/dlls/fgt_SDK.h

+64-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*============================================================================
22
* Fluigent Software Developement Kit
33
*----------------------------------------------------------------------------
4-
* Copyright (c) Fluigent 2022. All Rights Reserved.
4+
* Copyright (c) Fluigent 2023. All Rights Reserved.
55
*----------------------------------------------------------------------------
66
*
77
* Title: fgt_SDK.h
88
* Purpose: Functions API for Fluigent instruments
9-
* Version: 22.1.0.0
10-
* Date: 07/2022
9+
* Version: 22.2.0.0
10+
* Date: 01/2023
1111
*============================================================================*/
1212

1313
#ifndef _FGT_SDK_H
@@ -71,14 +71,15 @@ extern "C"
7171
};
7272

7373
/** @Description Instrument controller type */
74-
enum class fgt_INSTRUMENT_TYPE { None, MFCS, MFCS_EZ, FRP, LineUP, IPS, ESS, F_OEM };
74+
enum class fgt_INSTRUMENT_TYPE { None, MFCS, MFCS_EZ, FRP, LineUP, IPS, ESS, F_OEM, CFU, NIFS };
7575

7676
/** @Description Sensor type */
7777
enum class fgt_SENSOR_TYPE {
7878
None,
7979
Flow_XS_single, Flow_S_single, Flow_S_dual, Flow_M_single, Flow_M_dual, Flow_L_single, Flow_L_dual, Flow_XL_single,
8080
Pressure_S, Pressure_M, Pressure_XL,
8181
Flow_M_plus_dual, Flow_L_plus_dual,
82+
Flow_L_CFU, Flow_L_NIFS,
8283
};
8384

8485
/** @Description Sensor calibration table */
@@ -94,7 +95,7 @@ extern "C"
9495
enum class fgt_LINK_MODULE { None, FlowEZ, PSwitch = 3, SwitchEZ = 4 };
9596

9697
/** @Description Valve type */
97-
enum class fgt_VALVE_TYPE { None, MSwitch, TwoSwitch, LSwitch, PSwitch, M_X, Two_X, L_X };
98+
enum class fgt_VALVE_TYPE { None, MSwitch, TwoSwitch, LSwitch, PSwitch, M_X, Two_X, L_X, Bypass };
9899

99100
/** @Description Switch direction type */
100101
enum class fgt_SWITCH_DIRECTION { Shortest, Anticlockwise, Clockwise };
@@ -664,8 +665,8 @@ typedef struct
664665
unsigned char FGT_API fgt_set_purge(unsigned int controllerIndex, unsigned char purge);
665666

666667
/**
667-
* @Description Manually activate internal electrovalve. This stops pressure regulation.
668-
* This feature is only available on MFCS and MFCS-EZ devices.
668+
* @Description Manually set the voltage of the pressure channel's input solenoid valve.
669+
* This stops pressure regulation.
669670
* @param pressureIndex Index of pressure channel or unique ID
670671
* @param value applied valve voltage from 0 to 100(%)
671672
* @return fgt_ERROR_CODE
@@ -690,6 +691,62 @@ typedef struct
690691
* @return fgt_ERROR_CODE
691692
*/
692693
unsigned char FGT_API fgt_get_inletPressure(unsigned int pressureIndex, float* pressure);
694+
/**
695+
* @Description Returns the range of the differential pressure sensor in mbar
696+
* This feature is only available on NIFS devices.
697+
* @param sensorIndex Index of sensor or unique ID
698+
* @out Pmin minimum differential pressure in mbar
699+
* @out Pmax maximum differential pressure in mbar
700+
* @return fgt_ERROR_CODE
701+
*/
702+
unsigned char FGT_API fgt_get_differentialPressureRange(unsigned int sensorIndex, float* Pmin, float* Pmax);
703+
704+
/**
705+
* @Description Returns the current differential pressure measurement in mbar
706+
* This feature is only available on NIFS devices.
707+
* @param sensorIndex Index of sensor or unique ID
708+
* @out Pdiff differential pressure in mbar
709+
* @return fgt_ERROR_CODE
710+
*/
711+
unsigned char FGT_API fgt_get_differentialPressure(unsigned int sensorIndex, float* Pdiff);
712+
713+
/**
714+
* @Description Returns the range of the absolute pressure sensor in mbar
715+
* This feature is only available on NIFS devices.
716+
* @param sensorIndex Index of sensor or unique ID
717+
* @out Pmin minimum absolute pressure in mbar
718+
* @out Pmax maximum absolute pressure in mbar
719+
* @return fgt_ERROR_CODE
720+
*/
721+
unsigned char FGT_API fgt_get_absolutePressureRange(unsigned int sensorIndex, float* Pmin, float* Pmax);
722+
723+
/**
724+
* @Description Returns the current absolute pressure measurement in mbar
725+
* This feature is only available on NIFS devices.
726+
* @param sensorIndex Index of sensor or unique ID
727+
* @out Pabs absolute pressure in mbar
728+
* @return fgt_ERROR_CODE
729+
*/
730+
unsigned char FGT_API fgt_get_absolutePressure(unsigned int sensorIndex, float* Pabs);
731+
732+
/**
733+
* @Description Returns the current state of the bypass valve.
734+
* This feature is only available on NIFS devices.
735+
* @param sensorIndex Index of sensor or unique ID
736+
* @out state 1 if the valve is open, 0 if it is closed.
737+
* @return fgt_ERROR_CODE
738+
*/
739+
unsigned char FGT_API fgt_get_sensorBypassValve(unsigned int sensorIndex, unsigned char* state);
740+
741+
/**
742+
* @Description Sets the state of the sensor's bypass valve.
743+
* This feature is only available on NIFS devices.
744+
* @param sensorIndex Index of sensor or unique ID
745+
* @param state 1 to open, 0 to close.
746+
* @return fgt_ERROR_CODE
747+
*/
748+
unsigned char FGT_API fgt_set_sensorBypassValve(unsigned int sensorIndex, unsigned char state);
749+
693750

694751
#ifdef __cplusplus
695752
}
68 KB
Binary file not shown.
Binary file not shown.
100 KB
Binary file not shown.
170 KB
Binary file not shown.
73 KB
Binary file not shown.
1.54 KB
Binary file not shown.
63 KB
Binary file not shown.
1.66 KB
Binary file not shown.

0 commit comments

Comments
 (0)