Jump to content
  • 0

Acquiring data using Waveforms SDK python script


slowriver322

Question

Hi, 

Is there any simple way to acquire data ( signal from a function generator) for 10-20 sec and plot a Voltage vs. Time graph with a Waveforms SDK python script?

I tried to modify both AnalogIn_Record.py and AnalogIn_Acquisition.py, but still couldn't figure out how to extend the acquisition duration. 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hello,

In the AnalogIn_Record example see the following lines:
hzAcq = c_double(10000)
nSamples = 100000

The acquisition frequency can be changed by modifying the hzAcq value, frequency expressed in Hz (default 10kHz)
The number of samples is set by the nSamples value (default 100kSamples)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...