LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a column of a Waveform

Solved!
Go to solution
Highlighted

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

question3.PNGFront Panel of SDW 16-bit Register Swap.viquestion2.PNGWaveform 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!

 

question.PNGY 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
(126 Views)
Solution
Accepted by topic author HuguesThales
05-23-2019 08:47 AM

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

 

image.png

Message 2 of 3
(99 Views)

Perfect, thanks John Smiley Happy

0 Kudos
Message 3 of 3
(83 Views)