How to generate an atrbitrary waveform python script with NiRFSG? #821
-
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The examples here in the grpc-device repo are intended only to familiarize you with how to interact with the driver via gRPC. The entry points, though, largely mirror the C entry points, so it should generally be straightforward for you to adapt an example that you find elsewhere, like those mentioned here or here. For example, after installing NI-RFSG, I found a C# example for arbitrary waveform generation here: It's usually going to be easiest to translate from the CVI example, though, if you install CVI support. I found the corresponding example here: |
Beta Was this translation helpful? Give feedback.
-
Hi @markusmat97, I just uploaded a script that shows this: |
Beta Was this translation helpful? Give feedback.
The examples here in the grpc-device repo are intended only to familiarize you with how to interact with the driver via gRPC. The entry points, though, largely mirror the C entry points, so it should generally be straightforward for you to adapt an example that you find elsewhere, like those mentioned here or here.
For example, after installing NI-RFSG, I found a C# example for arbitrary waveform generation here:
C:\Users\Public\Documents\National Instruments\NI-RFSG\Examples\VS2012\ArbitraryWaveforms\ArbitraryWaveformGeneration\cs
In the MainForm.cs file there, there's a StartGeneration method that you could mimic.
It's usually going to be easiest to translate from the CVI example, thoug…