This VB script will create a new waveform channel from a section of another channel while keeping the time data intact.
The VB script follows this KnowlegeBase article. This example is a workaround because DIAdem does not save the time data when you make a new channel from a section of waveform data. The next edition will include using the cursors or flags to identify what section of the Waveform channel to duplicate.
Steps to Implement or Execute Code
Open in DIAdem SCRIPT
Change constants as needed
Load channel you with to take a section of
Set Active Channel Group in Data Portal
See new channel that is generated by the script
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.