04-28-2010 06:46 AM
Hello
I have now made a program for the USB-6215 for counting signals. I have connected a button between +5V and AI15. It can count every time i push the button, but sometimes when i don't touch the button, it still count because of noise. I then made a filter, but every time i start the program, I get "Error -20023"
Please look my program attached to this post, and help me fixing the problem
Thanks
04-28-2010 07:30 AM
This is the same problem as you posted here: -
http://forums.ni.com/ni/board/message?board.id=170&thread.id=494193
Did you try the things that were recomended? Did they help and if not what were the problems?
04-28-2010 07:51 AM
04-28-2010 08:23 AM
You are still trying to filter a single point and the filter you are using expects multiple points - you could perhaps store the points using your 'collector' and filter the result from them.
Also, I assume you are switching between 0 and +5V? If this is the case why don't you set you switch level to a more appropriate level, perhaps some in the middle of the range (say 2.5V). If you still get unwanted switching due to noise add some hysteresis as I previously mentioned (have different on and off levels for example "low" when between 0 V and 0.8 V and "high" when between 2.2 V and 5 V) - this might be a more appropriate solution than filtering.
If there is anything that you are still unsure of then ask and I can try to give you answers or recommend solutions but I am not going to do the work for you.
04-28-2010 11:00 AM
Thanks, but it still don't work - the filter.
I have now connected the filter directly to the DAQ Assistant and after that the statistics, but i still get the same error 😞
I'm not asking you to do my work, I wold just like to get a solution very soon.
04-29-2010 02:27 AM
The filter won't work for the reasons I have already given.
Why do you have a switch level set to 4.8V? Did you try to set the switch level to a more sensible value such as 2.5V like i sugested?
Try the following and tell me what happens.
1) Remove the filter
2) Convert the dynamic to a scalar value
3) Change the switch level to 2.5V
Let me know if this works and if not why not
04-29-2010 02:38 AM
Hi Mike,
Can you please post your LV code after you have implemented all David's suggestions? Are you still seeing the same -20023 error? see this link:
http://digital.ni.com/public.nsf/allkb/ABBD3A7BC25E17C8862561270058A4A0?OpenDocument
Is this an university project that needs to be delivered soon?
If this is the case, please contact your NI contact onsite(your Labview software provider). Together we will be able to solve your problem.
Thanks!
04-29-2010 02:55 AM
Hello
Still no success - labview still counts when i just touch the wire. 😞
And i still can't setup the filter 😞
04-29-2010 03:00 AM
To Morini, yes we are trying to make a RPM counter - im from Aalborg University.
I have never tried to work with LabVIEW before, so i don't know much about the program. but i still need to filter all that noise away, before i can count every time the voltage is higher that 1V. I tried to connect a graph to the data output, and saw the voltage switch between -10 and +10V only by touching the wire with my hand.
04-29-2010 03:08 AM
YOU WILL NOT GET THE FILTER TO WORK THE WAY YOU ARE TRYING TO USE IT -
Try opening the labview help and search for the following 'filters PtByPt'
I don't seem to be able to help you so this will be my final post