Skip to content

Commit c631be1

Browse files
authored
Merge pull request #38 from Fluigent/version-21.4
Update SDK to version 21.4.0.0
2 parents 3b92b49 + 47583e6 commit c631be1

Some content is hidden

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

61 files changed

+258
-17
lines changed
Binary file not shown.
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.
546 Bytes
Binary file not shown.

C#/fgt_sdk_csharp/fgtSdk.cs

+32
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ private static IntPtr ArchResolver(string libraryName, Assembly assembly, DllImp
7777
[DllImport(FGT_SDK)]
7878
private static extern byte fgt_initEx(ushort[] serialNumbers);
7979

80+
[DllImport(FGT_SDK)]
81+
private static extern byte fgt_create_simulated_instr(fgt_INSTRUMENT_TYPE type, ushort serial, ushort version, int[] config, int length);
82+
83+
[DllImport(FGT_SDK)]
84+
private static extern byte fgt_remove_simulated_instr(fgt_INSTRUMENT_TYPE type, ushort serial);
8085

8186
#endregion
8287

@@ -415,6 +420,33 @@ public static fgt_ERROR_CODE Fgt_initEx(List<ushort> serialNumbers)
415420
return ErrCheck((fgt_ERROR_CODE) fgt_initEx(sns), fgt_ERRCHECK_TYPE.Generic);
416421
}
417422

423+
/// <summary>
424+
/// Creates a simulated Fluigent instrument, which can be detected and initialized like a real one,
425+
/// for the purposes of testing and demonstrations.
426+
/// </summary>
427+
/// <param name="type">Type of instrument to simulate</param>
428+
/// <param name="serial">Serial number for the simulated instrument</param>
429+
/// <param name="version">Firmware version for the simulated instrument. Set to 0 to use the default version</param>
430+
/// <param name="config">Array describing the instrument's configuration</param>
431+
/// <returns></returns>
432+
public static fgt_ERROR_CODE Fgt_create_simulated_instr(fgt_INSTRUMENT_TYPE type, ushort serial, ushort version, int[] config)
433+
{
434+
return ErrCheck((fgt_ERROR_CODE)fgt_create_simulated_instr(type, serial, version, config, config.Length), fgt_ERRCHECK_TYPE.Generic);
435+
}
436+
437+
/// <summary>
438+
/// Removes a simulated instrument that had been previously created. If it had already been initialized
439+
/// by the SDK, the controller and channels will remain in the respective lists, but they will act as if
440+
/// the instrument is missing. This is equivalent to physically disconnecting a real instrument.
441+
/// </summary>
442+
/// <param name="type">Type of instrument to remove</param>
443+
/// <param name="serial">Serial number of the simulated instrument</param>
444+
/// <returns></returns>
445+
public static fgt_ERROR_CODE Fgt_remove_simulated_instr(fgt_INSTRUMENT_TYPE type, ushort serial)
446+
{
447+
return ErrCheck((fgt_ERROR_CODE)fgt_remove_simulated_instr(type, serial), fgt_ERRCHECK_TYPE.Generic);
448+
}
449+
418450
#endregion
419451

420452
#region Channels info

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>21.3.0.0</Version>
8+
<Version>21.4.0.0</Version>
99
<PackageTags>Microfluidics, Control</PackageTags>
1010
<Platforms>AnyCPU;x64;x86</Platforms>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
12-
<AssemblyVersion>21.3.0.0</AssemblyVersion>
12+
<AssemblyVersion>21.4.0.0</AssemblyVersion>
1313
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1414
<Copyright>Copyright (c) Fluigent 2021</Copyright>
1515
<RepositoryUrl>https://github.com/Fluigent/fgt-SDK</RepositoryUrl>
1616
<PackageProjectUrl>https://www.fluigent.com/</PackageProjectUrl>
17-
<FileVersion>21.3.0.0</FileVersion>
17+
<FileVersion>21.4.0.0</FileVersion>
1818
</PropertyGroup>
1919

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

C++/CMakeLists.txt

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

3-
project(SDK_cpp_examples VERSION 21.0.0.0)
3+
project(SDK_cpp_examples VERSION 21.4.0.0)
44
set(CMAKE_CXX_STANDARD 11)
55

66
add_subdirectory(fgt_SDK_Cpp)

C++/fgt_SDK_Cpp/dlls/fgt_SDK.h

+23-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: 21.3.0.0
10-
* Date: 11/2021
9+
* Version: 21.4.0.0
10+
* Date: 12/2021
1111
*============================================================================*/
1212

1313
#ifndef _FGT_SDK_H
@@ -182,6 +182,27 @@ typedef struct
182182
*/
183183
unsigned char FGT_API fgt_initEx(unsigned short SN[256]);
184184

185+
/**
186+
* @Description Creates a simulated Fluigent instrument, which can be detected and initialized like a real one, for the purposes
187+
* of testing and demonstrations.
188+
* @param [type] Type of instrument to simulate
189+
* @param [serial] Serial number for the simulated instrument
190+
* @param [version] Firmware version for the simulated instrument. Set to 0 to use the default version
191+
* @param [config] Array describing the instrument's configuration
192+
* @param [length] Length of the config array
193+
* @return fgt_ERROR_CODE
194+
*/
195+
unsigned char FGT_API fgt_create_simulated_instr(fgt_instrument_t type, unsigned short serial, unsigned short version, int* config, int length);
196+
197+
/**
198+
* @Description Removes a simulated instrument that had been previously created. If it had already been initialized by the SDK,
199+
* the controller and channels will remain in the respective lists, but they will act as if the instrument is missing. This is
200+
equivalent to physically disconnecting a real instrument.
201+
* @param [type] Type of instrument to remove
202+
* @param [serial] Serial number of the simulated instrument
203+
* @return fgt_ERROR_CODE
204+
*/
205+
unsigned char FGT_API fgt_remove_simulated_instr(fgt_instrument_t type, unsigned short serial);
185206

186207
/*============================================================================*/
187208
/*----------------------------- Channels info ------------------------------*/
24 KB
Binary file not shown.
Binary file not shown.
32 KB
Binary file not shown.
22.5 KB
Binary file not shown.
18.5 KB
Binary file not shown.
512 Bytes
Binary file not shown.
16.5 KB
Binary file not shown.
546 Bytes
Binary file not shown.

C++/fgt_SDK_Cpp/fgt_SDK_Cpp.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,20 @@ fgt_ERROR_CODE Fgt_initEx(unsigned short SN[256])
312312
return returnCode;
313313
}
314314

315+
fgt_ERROR_CODE Fgt_create_simulated_instr(fgt_instrument_t type, unsigned short serial, unsigned short version, int* config, int length)
316+
{
317+
fgt_ERROR_CODE returnCode = fgt_ERROR_CODE(fgt_create_simulated_instr(type, serial, version, config, length));
318+
Fgt_Manage_Generic_Status(returnCode, __func__);
319+
return returnCode;
320+
}
321+
322+
fgt_ERROR_CODE Fgt_remove_simulated_instr(fgt_instrument_t type, unsigned short serial)
323+
{
324+
fgt_ERROR_CODE returnCode = fgt_ERROR_CODE(fgt_remove_simulated_instr(type, serial));
325+
Fgt_Manage_Generic_Status(returnCode, __func__);
326+
return returnCode;
327+
}
328+
315329
/*============================================================================*/
316330
/*------------------------------ Channels info -----------------------------*/
317331
/*============================================================================*/

C++/fgt_SDK_Cpp/fgt_SDK_Cpp.h

+24-2
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: 21.3.0.0
11-
* Date: 09/2021
10+
* Version: 21.4.0.0
11+
* Date: 12/2021
1212
*============================================================================*/
1313

1414
#ifndef _FGT_SDK_CPP_H
@@ -121,6 +121,28 @@ unsigned char Fgt_detect(unsigned short SN[256], fgt_INSTRUMENT_TYPE type[256]);
121121
*/
122122
fgt_ERROR_CODE Fgt_initEx(unsigned short SN[256]);
123123

124+
/**
125+
* @Description Creates a simulated Fluigent instrument, which can be detected and initialized like a real one, for the purposes
126+
* of testing and demonstrations.
127+
* @param [type] Type of instrument to simulate
128+
* @param [serial] Serial number for the simulated instrument
129+
* @param [version] Firmware version for the simulated instrument. Set to 0 to use the default version
130+
* @param [config] Array describing the instrument's configuration
131+
* @param [length] Length of the config array
132+
* @return fgt_ERROR_CODE
133+
*/
134+
fgt_ERROR_CODE Fgt_create_simulated_instr(fgt_instrument_t type, unsigned short serial, unsigned short version, int* config, int length);
135+
136+
/**
137+
* @Description Removes a simulated instrument that had been previously created. If it had already been initialized by the SDK,
138+
* the controller and channels will remain in the respective lists, but they will act as if the instrument is missing. This is
139+
equivalent to physically disconnecting a real instrument.
140+
* @param [type] Type of instrument to remove
141+
* @param [serial] Serial number of the simulated instrument
142+
* @return fgt_ERROR_CODE
143+
*/
144+
fgt_ERROR_CODE Fgt_remove_simulated_instr(fgt_instrument_t type, unsigned short serial);
145+
124146

125147
/*============================================================================*/
126148
/*----------------------------- Channels info ------------------------------*/

Fluigent SDK.pdf

22.8 KB
Binary file not shown.

LabVIEW/dlls/fgt_SDK.h

+23-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: 21.3.0.0
10-
* Date: 11/2021
9+
* Version: 21.4.0.0
10+
* Date: 12/2021
1111
*============================================================================*/
1212

1313
#ifndef _FGT_SDK_H
@@ -182,6 +182,27 @@ typedef struct
182182
*/
183183
unsigned char FGT_API fgt_initEx(unsigned short SN[256]);
184184

185+
/**
186+
* @Description Creates a simulated Fluigent instrument, which can be detected and initialized like a real one, for the purposes
187+
* of testing and demonstrations.
188+
* @param [type] Type of instrument to simulate
189+
* @param [serial] Serial number for the simulated instrument
190+
* @param [version] Firmware version for the simulated instrument. Set to 0 to use the default version
191+
* @param [config] Array describing the instrument's configuration
192+
* @param [length] Length of the config array
193+
* @return fgt_ERROR_CODE
194+
*/
195+
unsigned char FGT_API fgt_create_simulated_instr(fgt_instrument_t type, unsigned short serial, unsigned short version, int* config, int length);
196+
197+
/**
198+
* @Description Removes a simulated instrument that had been previously created. If it had already been initialized by the SDK,
199+
* the controller and channels will remain in the respective lists, but they will act as if the instrument is missing. This is
200+
equivalent to physically disconnecting a real instrument.
201+
* @param [type] Type of instrument to remove
202+
* @param [serial] Serial number of the simulated instrument
203+
* @return fgt_ERROR_CODE
204+
*/
205+
unsigned char FGT_API fgt_remove_simulated_instr(fgt_instrument_t type, unsigned short serial);
185206

186207
/*============================================================================*/
187208
/*----------------------------- Channels info ------------------------------*/

LabVIEW/dlls/fgt_SDK_32.dll

16.5 KB
Binary file not shown.

LabVIEW/dlls/fgt_SDK_64.dll

18.5 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)