hbk-world / LAN-XI-Open-API-python-examples

Examples on how to use the LAN-XI OpenApi from python
1 stars 2 forks source link

Transducer detection #4

Open gero2222 opened 3 years ago

gero2222 commented 3 years ago

Hi I ran RealtimePlot.py to get a graph from a streamed data. However the transducer i'm using(Hydrophone Type 8103) doesn't support TEDS. So the transducer is not detectable. Is there any way to solve it?

Troels51 commented 3 years ago

TEDS is used for 2 things in these examples.

  1. It is used to check if there is a transducer on a channel, and therefore if the program should collect data from that channel.
  2. It is also used to get the scale factor from the stream for scaling the data to pascal.

You need to disable these 2 checks

Enabling the channels is here: https://github.com/hbk-world/LAN-XI-Open-API-python-examples/blob/master/HelpFunctions/lanxi.py#L44

The scale factor is applied here: https://github.com/hbk-world/LAN-XI-Open-API-python-examples/blob/master/HelpFunctions/Stream.py#L57