Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital waveform plot scaling

I m  using PCI 6534 card for digital output..

 

I have connected the digital input to the pin of PORT0/PIN1. I have used the example VI for the testing purpose and for just getting the idea.

 

I have used vi attached below. In this I am taking the 10000 samples in 10sec and displaying that in the graph..

But if I change the time,rate and sample nos, I am not getting the proper output.

 

I am using X axis as auto scaling but it gives 0 to 0.0999 output after that no indication of the output. Why its happening??? I have also attached the graphs..why after changing the sample numbers and continuously reading the samples I am not getting output after 0.0999sec??? I have checked it by making the time 100 and samples 100000.

 

 

0 Kudos
Message 1 of 4
(3,632 Views)

In both of your images, you have a sample rate of 100000 and number of samples to 10000. Simple arithmetic of 10000/100000 gives you ,1 seconds of data and that is exactly what the graph displays. You are aware of how a graph works? Each acquisition gives you a brand new plot. New data is NOT appended to old.

0 Kudos
Message 2 of 4
(3,608 Views)

you are right that if i have a sample rate of 100000 and samples to read is 10000 then scale will b 1000/100000=0.1 right???

 

bt i think you have not seen the waveform properly. i have given sample rate =10000 and samples=10000 so the scale waveform should be 1.

0 Kudos
Message 3 of 4
(3,590 Views)

Sorry, I must need new glasses.

0 Kudos
Message 4 of 4
(3,571 Views)