Lab devices tools for Wolfrm Language
Standard Wolfram Language paclet installation from the Paclet Repository:
Map[PacletSiteUpdate, PacletSites[]]
PacletInstall["KirillBelov/LabDevicesLink"]
And standard import:
Get["KirillBelov`LabDevicesLink`"]
What the device? For example this: https://lenlasers.ru/product/interrogator-gc-97001c/.
How to get spectrum from thi device that has address like 192.168.1.XXX
:
data = FGBInterrogatorData["192.168.1.XXX", "ADCRawData"]
<|"CommandLenght" -> 5112, "ChannelGain" -> 0, "ADCData" -> {100, 55, 58, 55, ..}|>
And how to plot spectrum:
ListLogPlot[data["ADCData"],
Joined -> True,
PlotTheme -> "Scientific",
GridLines -> Automatic,
Frame -> True
]