08-24-2015 12:22 PM
hi guys i've given 1D arrays of voltage and current from daq NI6008 as input to the mathscript as shown in the vi.
the daq inputs are sampled as shown below
when i run the vi, it is giving an error as shown below.
i've changed the sampling rate. but still it is showing some error.
what shall i do now?
08-25-2015 12:07 PM
Please include a Snippet of your code, or attach your VIs, so that we can better assist you. We are here to help, but won't spend all day recreating your code from scratch just to help.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
08-25-2015 12:17 PM - edited 08-25-2015 12:25 PM
see i've attached my vi along with this. i've used daq ni6008.
if it asks for some path, create a text document on yyour system and direct to that.
choose some random pins for the daq inputs.
i think this screen shot will help you
08-25-2015 12:26 PM
please give response as soon as you can
08-25-2015 12:29 PM
Here's my trace-back of your problem:
You are reading all available samples at your DAQmx Read VI every 1000ms. Delete the 1000ms Wait and, instead, wire your "rate" value in to the input on DAQmx Read "number of samples per channel". This will force your loop to wait until 5 samples have come in and continue, which will then in-turn make the loop run every 1000ms.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'