Only Half of Waveform Is Generated When Using Python NI-FGEN

Updated Dec 6, 2018

Reported In

Hardware

  • PXIe-5451

Driver

  • NI-FGEN

Programming Language

  • Python

Issue Details

I am using the nifgen module for python. When I output the waveform on one channel, I am only getting half of the waveform. Why is this?

Solution

This is because of the note in create_waveform_numpy. If you don't specify a channel that it will split you data across all channels. So instead of doing session.create_waveform(waveform_data_array), specify the channel and do session.channels[0].create_waveform(waveform_data_array).

WAS THIS ARTICLE HELPFUL?

Not Helpful