LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert digital waveform into square waveform with N Samples.

Hello,

 

I'm trying to convert this digital waveform into square wave for analog output model.

(Result converted by [Digital to Analog.vi])

Andy_lai_1-1583068486113.png

But this VI seems ignore the sample rate information here.

I get ramp instead of square wave(graph at Top-Right corner).

 

Is there a vi can convert such digital waveform into square waveform with corresponding sample rate? 

 

Thanks!

0 Kudos
Message 1 of 3
(2,350 Views)

Why don't you attach your actual VI so we can see what is going on in the block diagram.

Perhaps what you did is almost correct, but we can't debug a picture of a front panel.

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

Sorry,

 

This is the VI i was testing.

 

The reason i tried this method(from digital pattern to square wave) is that i can't figure out how to form a 000 to 101 pattern with square wave signals. 

 

 

Download All
0 Kudos
Message 3 of 3
(2,290 Views)