From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a column of a Waveform

Solved!
Go to solution

Good afternoon,

 

I am trying to delete a column of a waveform.

 

I created the waveform using the "SDW 16-bit Register Swap.vi" example from the "SPI Digital Waveform Reference Library" which I downloaded here: http://www.ni.com/example/31163/en/

 

This SPI waveform contains 4 signals:

  1. CS
  2. MISO -> I want to delete this one from the waveform
  3. MOSI
  4. SCLK

Front Panel of SDW 16-bit Register Swap.viFront Panel of SDW 16-bit Register Swap.viWaveform observed with probeWaveform observed with probe

I tried to extract the Y attribute from the waveform, which I thought would be Array, and then use "Delete From Array Function" to delete the column. (https://zone.ni.com/reference/en-XX/help/371361N-01/glang/delete_from_array/)

 

(This would be similar to what is done here to delete a portion of a waveform: https://forums.ni.com/t5/Example-Programs/Delete-Portion-Of-Waveform/ta-p/3510593)

 

However, I can't connect the Y attribute output to the Array functions!

 

Y attribute cannot be connected to "Delete From Array Function"Y attribute cannot be connected to "Delete From Array Function"

 

None of the Waveform Library function seems to do the trick either. Would anyone have any idea?

 

Thanks a lot in advance for your help,

Hugues

0 Kudos
Message 1 of 3
(2,153 Views)
Solution
Accepted by HuguesThales

You can use the signal subset. Select the columns that you want to keep.

 

image.png

Message 2 of 3
(2,126 Views)

Perfect, thanks John 🙂

0 Kudos
Message 3 of 3
(2,110 Views)