ngscopeclient 0.1-dev+51fbda87c
LeCroyFWPOscilloscope.h
1/***********************************************************************************************************************
2* *
3* libscopehal v0.1 *
4* *
5* Copyright (c) 2012-2023 Andrew D. Zonenberg and contributors *
6* All rights reserved. *
7* *
8* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
9* following conditions are met: *
10* *
11* * Redistributions of source code must retain the above copyright notice, this list of conditions, and the *
12* following disclaimer. *
13* *
14* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the *
15* following disclaimer in the documentation and/or other materials provided with the distribution. *
16* *
17* * Neither the name of the author nor the names of any contributors may be used to endorse or promote products *
18* derived from this software without specific prior written permission. *
19* *
20* THIS SOFTWARE IS PROVIDED BY THE AUTHORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
21* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL *
22* THE AUTHORS BE HELD LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
23* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR *
24* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
25* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
26* POSSIBILITY OF SUCH DAMAGE. *
27* *
28***********************************************************************************************************************/
29
30#ifndef LeCroyFWPOscilloscope_h
31#define LeCroyFWPOscilloscope_h
32
33#include "LeCroyOscilloscope.h"
34
41{
42public:
44 virtual ~LeCroyFWPOscilloscope();
45
46 //not copyable or assignable
48 LeCroyFWPOscilloscope& operator=(const LeCroyFWPOscilloscope& rhs) =delete;
49
50 virtual Oscilloscope::TriggerMode PollTrigger() override;
51 virtual bool AcquireData() override;
52 virtual void Start() override;
53
54 virtual void EnableChannel(size_t i) override;
55 virtual void DisableChannel(size_t i) override;
56
57 virtual std::vector<uint64_t> GetSampleDepthsNonInterleaved() override;
58 virtual std::vector<uint64_t> GetSampleDepthsInterleaved() override;
59
60protected:
61 void SendEnableMask();
62
65
66 Socket m_socket;
67
68public:
69 static std::string GetDriverNameInternal();
70 OSCILLOSCOPE_INITPROC(LeCroyFWPOscilloscope)
71};
72
73#endif
Declaration of LeCroyOscilloscope.
A Teledyne LeCroy oscilloscope using the FastWavePort interface for download instead of SCPI.
Definition: LeCroyFWPOscilloscope.h:41
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition: LeCroyFWPOscilloscope.cpp:162
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition: LeCroyFWPOscilloscope.cpp:140
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition: LeCroyFWPOscilloscope.cpp:150
bool m_fallback
Indicates we're operating in fallback mode (FWP wasn't available for some reason)
Definition: LeCroyFWPOscilloscope.h:64
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition: LeCroyFWPOscilloscope.cpp:290
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition: LeCroyFWPOscilloscope.cpp:168
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition: LeCroyFWPOscilloscope.cpp:304
virtual bool AcquireData() override
Pull data from the instrument.
Definition: LeCroyFWPOscilloscope.cpp:196
A Teledyne LeCroy oscilloscope using the MAUI/XStream command set.
Definition: LeCroyOscilloscope.h:64
TriggerMode
Definition: Oscilloscope.h:411
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47
Class representing a network socket.
Definition: Socket.h:63