LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digial Waveform Graph- Samples

I am trying to use Digital waveform graph for my application. I could find a related example in labview Simple Digital Waveform DT Graph.vi. 

Tried to modify it a little bit with some control boolean switches but i cant change the number of samples which is possible in Example Vi.

Is there a way that i can also control the number of samples in x axis. because that doesnot seem to be possible when i convert for boolean array to digital.

 

Thanks

 

Attached Vi

 

 

0 Kudos
Message 1 of 6
(2,886 Views)

Can you explain your end goal/application?

0 Kudos
Message 2 of 6
(2,882 Views)

As explained earlier that i trying to have digital waveform in 1 or 0 format when a toggle swtich is on or off. But i need specify the number of samples so that if i switch  ON a single toggle switch, waveform should be 1 for only the specified number of sample..

 

Please take a look at the suggested example in NI example finder to examine the situation.

0 Kudos
Message 3 of 6
(2,876 Views)

Hello jackferz,

 

Have you taken a look at the Digital Pattern Generator (Toggle) VI?  It looks like it can do what you're attempting.

 

Lisa

Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(2,867 Views)

I have done some work in the attached VI

 

I have got three toggle switches a, b and c. I want to switch them based on timings for which I require a function where I can feed in the time based on the switching sequence. Just consider the switches in the form of truth table.

If none of the switches are turned On that means O000 time is going to be To/4 as shown in the fig attached. Similarly when the swtiches  a, b and c are in 100 fashion, then the time is going to be T1/2 as shown.


The attachment clearly shows my end application.


Take a look

 

thanks

0 Kudos
Message 5 of 6
(2,846 Views)