LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ assistant rate error

Hello, first thanks so much if someone can help me

I have an error with the DAQ assistant. My .vi is just the DAQ assistant and an indicator so I don't need to joint the .vi because there is nothing else.

When I read the datas I have often a crash or this error.

 

It says I can "specify a fixed numbers of samples to read" could be a solution. Has someone an idea how to do that ? Also, what is "rates" and "samples to read" in the DAQ assistant ?

I presume the first one is the rate it reads it ? What is the samples to read ?

 

Should both have the same number ? If I reduce them, will it fix my problem ?

 

thanks a lot

 

d4bf0e156d.jpg

error1.jpg

0 Kudos
Message 1 of 14
(1,853 Views)

@Oxbow88 wrote:

I have an error with the DAQ assistant. My .vi is just the DAQ assistant and an indicator so I don't need to joint the .vi because there is nothing else. 


No loop?  Then you only want to perform a single read?  If so, you should not be using the Continuous Acquisition: use Fixed Samples.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 14
(1,840 Views)

Actually yes there is the loop, but nothing else.

 

Does somebody knows a way to solve my error ?

0 Kudos
Message 3 of 14
(1,815 Views)

What equipment are you using (cDAQ chassis and module)?  It is possible you are using a module with a minimum sample rate that is in the kHz range or even higher.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 14
(1,807 Views)

NI cDAQ-9174

 

NI 9215

 

in this case

 

thanks

0 Kudos
Message 5 of 14
(1,804 Views)

Has nobody a solution ? Or idea ?

I keep receiving the error message.

 

How to adjust this rate ratio (how much should it be) and where to change that in parameters ? that would save me

0 Kudos
Message 6 of 14
(1,743 Views)

Hi Oxbow,

 


@Oxbow88 wrote:

Has nobody a solution ? Or idea ?
I keep receiving the error message.


No VI, no specific help…

 


@Oxbow88 wrote:

How to adjust this rate ratio (how much should it be) and where to change that in parameters ?


You adjust the samplerate and the "samples to read" in the DAQAssistent properties dialog.

 

I recommend to use plain DAQmx functions instead of the DDA (dreaded DAQ assistent).

Search for "DAQmx 10 functions" in your favorite internet search engine to learn 80% of what you need to know about DAQmx: for me it's the first search result…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 14
(1,739 Views)

@Oxbow88 wrote:

Has nobody a solution ? Or idea ?

I keep receiving the error message.

 

How to adjust this rate ratio (how much should it be) and where to change that in parameters ? that would save me


 

Nobody on here has the magic ability to see your code. While I would get rid of the DAQ Assistant and use DAQmx functions as GerdW suggested and has been suggested to you in your other thread, I suspect that this particular problem may be in your other code, and not in the DAQ Assistant settings. Post your code and you're much more likely to get to the solution that you're looking for.

0 Kudos
Message 8 of 14
(1,723 Views)

I have no code !

Like I said, I have the DAQ assistant in a Loop and that's it

 

I dont get the difference between "Samples to Read" and "Rate (Hz)" and what this is

0 Kudos
Message 9 of 14
(1,719 Views)

@Oxbow8 wrote:

I have no code !

Like I said, I have the DAQ assistant in a Loop and that's it

 


Well, post that code with the loop. Even if the problem is a setting in your DAQ Assistant it will be much easier to help you to troubleshoot if we have the code. 

 


@Oxbow8 wrote:

 

I dont get the difference between "Samples to Read" and "Rate (Hz)" and what this is


These seem pretty self explanatory. Sample rate is the number of samples per second that you want the data acquisition system to acquire. Samples to Read is the number of samples that you want to have in the buffer before a read. So if you have a Rate of 100 Hz and you read 100 samples then you are reading an array of 100 data points every second.

0 Kudos
Message 10 of 14
(1,711 Views)