LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data sampling rate on waveform chart

Solved!
Go to solution

Hi guys,

Im really new to labview 2019 and am trying to complete a project. The problem i am having is i cannot seem to adjust the rate that my analog channels plot onto my chart. What i am trying to achieve is a plot every 500ms but it seems to plot at about 3 second intervals. I have tried googling and adjusting just about everything but cannot get the sample time to change. i am using a cdaq-9178 and ni9208 analog card. If somebody could point me in the right direction it would be much appreiated as im feeling quite lost.

 

cheers

0 Kudos
Message 1 of 5
(3,142 Views)

Hi matdav,

 

Im really new to labview 2019

LabVIEW2019 is also quite new and not widely used so far. You would be better by attaching a down-converted version of your VI. (I prefer LV2017.)

 

What i am trying to achieve is a plot every 500ms

Open the "Voltage - Continuous Input" example VI. Set a sample rate of 2Hz and "Number of Samples" to 1. Then start the VI…

 

Generic suggestion: LabVIEW comes with a huge library of example VIs. Use them to explore features and learn about using VIs/functions…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,137 Views)

Thanks for the reply, I will try that suggestion now. I have attached a down-converted version as well. 

 

Thank you

0 Kudos
Message 3 of 5
(3,130 Views)
Solution
Accepted by topic author matdav_17

Hi matdav,

 

your VI is wrong in several things:

- you set the wrong sample rate

- there is no error handling after DAQmxTiming

- you don't start the task, but stop it…

- there is no loop in the VI: how do you want to repeat something "every 500ms"?

- the task is defined in MAX: we don't know your MAX settings…

 

Again: use the example VIs coming with LabVIEW and DAQmx!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(3,124 Views)

Looks like im way off! Looks like i need to do some more reading. Thank you for your reply and i will try your suggestions.

 

Cheers mate.

0 Kudos
Message 5 of 5
(3,122 Views)