LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -20023

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 

 

0 Kudos
Message 1 of 10
(5,642 Views)

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?

 

 

David
www.controlsoftwaresolutions.com
0 Kudos
Message 2 of 10
(5,628 Views)
Of course i did, but i dont know how to do it. Now i post my VI that almost work, so might it would be better just to tell me how i could finish it. This is not the same VI as last time...
0 Kudos
Message 3 of 10
(5,620 Views)

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.

David
www.controlsoftwaresolutions.com
0 Kudos
Message 4 of 10
(5,610 Views)

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.

0 Kudos
Message 5 of 10
(5,592 Views)

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

 

untitled.JPG

 

Let me know if this works and if not why not

David
www.controlsoftwaresolutions.com
0 Kudos
Message 6 of 10
(5,572 Views)

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!

-----------------------------------------------------
Dennis Morini
District Sales Manager
National Instruments Denmark
http://www.ni.com/ask
0 Kudos
Message 7 of 10
(5,570 Views)

Hello

 

Still no success - labview still counts when i just touch the wire. 😞
And i still can't setup the filter 😞

0 Kudos
Message 8 of 10
(5,561 Views)

 

 

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.

0 Kudos
Message 9 of 10
(5,557 Views)

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

 

 

David
www.controlsoftwaresolutions.com
0 Kudos
Message 10 of 10
(5,553 Views)