02-09-2015 04:15 PM
Hi guys,
I am trying to build a VI that acquires a 5-10 minute signal, once per hour. I know this sounds odd, but there is some sort of random electrical noise associated with the amplifier I am using, and I am trying to determine where and when the noise is occurring.
I have a VI that successfully records the input signal, but I looking for the best way to periodically turn on and off the data acquisition. I was thinking a case structure with a timing range might work... or possibly a secquence structure?
Any recommendations would be greatly appreciated. I am fairly new to labview and am still unfamiliar with the best methods.
Thanks in advance!
Ben
02-09-2015 04:38 PM
Without seeing any code, here are some comments based on LabVIEW itself.
Note that if you look at the VI you wrote in Step 3, there's nothing there that says anything about writing files, sampling data, etc. -- it has all been "buried" (or, as is more proper to say, "encapsulated") in the sub-VI. This way, you can look at the top level VI, which is concerned only with taking the multiple readings you want, while the lower sub-VI doesn't care about repetitive readings, it only is concerned about its little sampling task. Divide and Conquer!
BS
02-09-2015 04:38 PM
Ben,
Do you have a way to identify when the interferring signal occurs? Is it known timing or some characteristic of the signal, such as high amplitude or a different frequency spectrum?
My first thought would be to set up a continuous acquisition and only record the data when the interference occurs (plus a bit before or after for comparison).
Lynn
02-09-2015 04:53 PM
Hi John,
I the interference seems to be completely random. I work in an engineering building on my campus, so options include the amp's power being drawn when something else in the building is activated, or possibly just a faulty amp.
02-09-2015 04:54 PM
Bob
Thanks for the detailed response! I never even thought of using my current code as a subVI.
I will give this a shot and post here if I have anymore questions!