07-02-2013
02:43 PM
- last edited on
05-06-2026
08:42 AM
by
Content Cleaner
I am using the I2C Digital Waveform Reference Libarary to create a WDT that consists of two lines/channels. I was wondering how I could extract/remove a channel from the waveform and how I can add/merge waveform channels into a single WDT? I have looked around for VIs but nothing seems to work with the WDT.
Right now my WDT is like this:
How could I get these two lines into seperate WDTs? And then how would I be able to merge them again? Naturally, I don't want to simply remove them and merge them, but that would be a good practice example to demonstrate.
Solved! Go to Solution.
07-03-2013 09:46 AM - edited 07-03-2013 09:46 AM
After much trial and frustration, I have found a way to do what I was looking for. It isn't the most elegant, but it works!
This is how I extract both channels into an array, and then merge them back to recreate the original graph:
*Note: The reason why there are 2's in the Waveform Data array is because my waveform contains 0's and Z's instead of 0's and 1's. The tri-state Z corresponds to the numeric 2.
I even took this a step further and extracted a single line. This could be modified to extract any line and eventually merge together your own custom signals:
02-19-2026 12:28 PM
Seems trying to do this in labview 2020, forces the Get Digital Data Components to turn into Get Waveform Components resulting in a bad or unwired terminal error that makes it so your VI can't run. NI really doesn't want you to use single channel digital data waveforms for some reason.
02-20-2026 04:14 AM - edited 02-20-2026 04:15 AM
02-20-2026 11:32 AM
My main complaint is:
Wiring a digital waveform into Get Digital Data Components automatically turns it into Get Waveform Components, which I think is expecting an analog waveform and results in a bad or unwired terminal error.
But thanks I could use your example. Seems a bit roundabout, but i think it should work.