Created **fn_gen** repository and added python library

This commit is contained in:
2024-01-16 17:03:03 +01:00
committed by Ali Elnwegy
parent 00b4ce0149
commit 962f4c718b
24 changed files with 301 additions and 0 deletions

6
fn_gen/enums/__init__.py Normal file
View File

@@ -0,0 +1,6 @@
from .comm_method import CommMethod
from .output_channel import OutputChannel
from .sweep_spacing import SweepSpacing
from .sweep_trigger_slope import SweepTriggerSlope
from .sweep_trigger_source import SweepTriggerSource
from .sweep_signal_type import SweepSignalType

View File

@@ -0,0 +1,5 @@
from enum import Enum
class CommMethod(Enum):
USB = 0
LAN = 1

View File

@@ -0,0 +1,5 @@
from enum import Enum
class OutputChannel(Enum):
ONE = 1
TWO = 2

View File

@@ -0,0 +1,6 @@
from enum import Enum
class SweepSignalType(Enum):
SINE = 1
SQUARE = 2
RAMP = 3

View File

@@ -0,0 +1,6 @@
from enum import Enum
class SweepSpacing(Enum):
LIN = 1
LOG = 2
STEP = 3

View File

@@ -0,0 +1,5 @@
from enum import Enum
class SweepTriggerSlope(Enum):
POSITIVE = 1
NEGATIVE = 2

View File

@@ -0,0 +1,6 @@
from enum import Enum
class SweepTriggerSource(Enum):
INTERNAL = 1
EXTERNAL = 2
MANUAL = 3