Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
I'm trying to work with waveform data and having a bit of trouble with time calculations.
The challenge is that the data type of start time / offset and increment are not compatible.
For example simply adding start time and increment like this:
+ dd.Data.Root.ActiveChannelGroup.Channels("DUT 01").Properties("wf_increment").Value
results in a
TypeError: unsupported operand type(s) for +: 'pywintypes.datetime' and 'float'
I'm not familiar with pywintypes and haven't really looked into this library yet.
But i have tried converting to datetime with no luck.
Is there maybe a simple "How-to" for handling time data in with Python in DIAdem?
Go to Solution.
to add those values it is possible to import "datetime" and to use the function "timedelta".
Below you find a short example, adding step width of one day to the waveform start time.
"timedelta" offers also options to add the value to month, year etc.
wf_start_time: 01.08.2012 00:00:00.000000000
wf_start_time 02.08.2012 00:00:00.000000000
What do you need our team of experts to assist you with?
We'll be in touch soon!