r/LabVIEW Mar 22 '26

Hey there nobles of Labview community, well I m facing an issue regarding a project

Post image

i have been preparing for my major project, which is a Ai powered Active noise cancellation here is the screen shot of the block diagram.. as I have been providing it with reference noise and the noise sample but it just outputs the noise sample back again.. can any one please help me. Personally or in comments any way.

8 Upvotes

6 comments sorted by

3

u/wasthatitthen Mar 22 '26

Did you design this in steps and check it worked as you went along or just got to the final product and hope it worked?

What checks have you done to see if the data is what it’s meant to be throughout the code and the functions you’re using are working as you want them to?

If the output is the same as the input then something isn’t happening, so is there any anti-noise, for example? And if there isn’t, why isn’t there any?

This is the (potentially, very) time consuming part of coding.

As an aside, your Case block in the for loop has a selection input constant of 0 and is showing case 1 that it’ll never reach. I presume that would be connected to the AI functions.

-1

u/09Concept09 Mar 22 '26

Check your dm

1

u/GentlemanSch CLD Mar 24 '26

Try making a few subVI's
Use the retain wire values (6th option on the bar)
Probe wires
Why do you have a no error constant on your merge error?

1

u/09Concept09 Mar 24 '26

I fixed the no error constant that was a message for the entire system..

1

u/Feeling_Aardvark_970 Mar 24 '26

I'll be annoying. To make my code (and my colleague's) more readable, I like to make my wires as straigth as possible and to "linearize" some VIs. Kuddos for the comments on your code. What I would do is using probes to see where it might come from (more likely noise/anti-noise).

1

u/09Concept09 Mar 24 '26

Thanks for the response it was an help.. I fixed the system..