LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

daq assistant

Hi Tim

 

I the system is giving an error at the filtererror.JPG

 

What does this mean?

 

Also I don't understand do I add the accelerometer signals x,y and z to the Daqassist terminals that have the AI0 channel or do I build another state machine for the second daq assist

 

Thank you

 

Ailish

0 Kudos
Message 11 of 18
(688 Views)

i would say that f_low and f_high have values that are not allowed by the function. f_low must be between 0 and f_high and f_high must be greater than them both.

 

so check your values and where they are wired too. 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 12 of 18
(685 Views)

Difficult to tell since you did not attach your code - just a partial image but it appears you've done something really silly. It looks like you have wired a scalar to the filter input.

0 Kudos
Message 13 of 18
(675 Views)

I have attached my code please help me nuting seem to be working HELP!!!!

 

 

0 Kudos
Message 14 of 18
(666 Views)

Yes, you are doing something silly as I said. What exactly is the point of the filter function? You are passing it a single point (why point number 3???) with absolutely no timing information so how do you expect the filter function to work? Maybe you want to use the single point filter function or pass the entire acquisition to it?

 

p.s. Your acquisition itself is a bit unusual. The way you have it set up, you acquire a single point every 2.5 seconds. Typically, the number of samples to acquire is the same or less than the sample rate. It's basic math. If your sample rate is 200 Samples/sec and you request 100 samples, you acquire every .5 seconds. Request 200 samples and it will take 1 second. Your program is going to be a bit unresponsive

0 Kudos
Message 15 of 18
(662 Views)

Your DAQ assistant is collecting 500 samples at a time for 4 channels.  (At 200 Hz, it takes 2.5 seconds.)  Okay that's good.

 

But then you are converting that blue wire to a 1-D array of scalars.  Now it is giving you 1 sample (not sure if it is the first or the last) for the 4 channels.  Bad.  Now you have no other data to filter off of.  The index array is giving you the 4th channel, you wind up with a single scalar for that channel which you can't filter because it is only a single sample like Dennis said.

 

Use the Split Signals function to break up the one blue wire into 4 blue wires where each handles a single channel.

 

Or fix your small express VI to convert the blue wire to a 1-D array of waveforms.  Then use the index array to get the 4th waveform out of that.  Either way, now you'll have a full 500 samples you can filter off of, and the time information will still be a part of either the blue wire or the waveform wire.

 

PS:  On your front panel, it should be "Too Fast" or "Too Slow", not "to fast" "to slow".

0 Kudos
Message 16 of 18
(659 Views)

Hi Dennis

 

I am new to labVIEW so I'm a bit rough around the edges with my coding.

 

I am using a Daq NI 6009 and into the daq I am observing a signal at AI0 and AI6 coming out. One is coming from a FSR and the other from an Accelerometer. So I thought the filter function would filter out the accelerometer signal. At the moment none of it is working. Should I remove the filter? Will I need two daq assist is my program one for each of the signals??

 

How would I pass the entire acquisition to it?

 

I will change my Daq assist to 200sample and what frequency would you recommend?

 

Thank you

Ailish

0 Kudos
Message 17 of 18
(652 Views)

Start with what I said about using either split signals or setting your small Express VI to convert the blue wire to a 1-D array of waveforms.  See where that gets you.

 

And do not use more than 1 DAQ assistant.

0 Kudos
Message 18 of 18
(618 Views)