LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What to do with t0 in Get Waveform Subset.vi

I am new to LabVIEW.  I was trying to look at the Get Waveform Subset.vi, and it doesn't explain what to put in for t0.  At the moment, when I try and put my waveform through the subset VI and display that on a separate waveform, I get nothing displayed.  My settings are in the attached screenshot.  I am not getting any error message, therefore am struggling to understand what I am doing wrong.

0 Kudos
Message 1 of 8
(3,425 Views)

Without seeing your VI I am guessing.

 

Are you entering those values on the front panel of Get Waveform Subset VI and then calling it as a subVI in your main program? That does not work. When the subVI is called in the main program, it will use default values (mostly zeros) for any inputs which are not wired on the connector pane. Place a copy of "start samples/time" and "duration" controls on the front panel of your main VI. Wire the terminals to the appropriate connector pane terminals on Get Wavefrom Subset.vi.

 

If this is the problem, you should consider taking some of the online tutorials about getting started with LabVIEW.

 

Lynn

0 Kudos
Message 2 of 8
(3,423 Views)

Yes that's what I'm doing (i.e. treating the Get Waveform Subset VI as a subVI).  I will do as you say, and then post a copy of my VI as an attachment, so you can see what I am doing.

0 Kudos
Message 3 of 8
(3,396 Views)

I have now attached a copy of my VI.  What I've been asked to do is produce a sine wave with the amplitude and frequency adjustable via controls on the front panel, which I have done.  However I also need to display a section afterwards.  I know I can wire up a control to the phase of the simulate signal VI, so do I have to just use the simulate signal VI twice, once with the full sine wave and once with the phase shift, or is there a less convoluted way of doing this?

0 Kudos
Message 4 of 8
(3,343 Views)

I have now attached a copy of my VI.  What I've been asked to do is produce a sine wave with the amplitude and frequency adjustable via controls on the front panel, which I have done.  However I also need to display a section afterwards.  I know I can wire up a control to the phase of the simulate signal VI, so do I have to just use the simulate signal VI twice, once with the full sine wave and once with the phase shift, or is there a less convoluted way of doing this?

0 Kudos
Message 5 of 8
(3,343 Views)

I have now attached a copy of my VI.  What I've been asked to do is produce a sine wave with the amplitude and frequency adjustable via controls on the front panel, which I have done.  However I also need to display a section afterwards.  I know I can wire up a control to the phase of the simulate signal VI, so do I have to just use the simulate signal VI twice, once with the full sine wave and once with the phase shift, or is there a less convoluted way of doing this?

0 Kudos
Message 6 of 8
(3,343 Views)

Sorry it's printed the same message three times for some reason.

0 Kudos
Message 7 of 8
(3,342 Views)

OK, think I've sorted it now, have attached a copy of my VI for others benefit.

0 Kudos
Message 8 of 8
(3,340 Views)