06-26-2019 11:10 AM
we acquired the signal from our machine in labview through NI-Dmax.
now we want to edit this signal which is a continuous pulse according to our suitability. we want to eliminate the rectangular portion of the pulse.
how can we do this please help.
Solved! Go to Solution.
06-26-2019 02:56 PM
Wire you array of datat through a For and let it index on the edge of the For loop.
Inside the For lop use a "inrange" function from the Comparison palette to determine if the value is "in range".
Use the "inrange" output to controla Select node where the "True" input is your signal and the false is zero.
Wire the output of the "select" node to the output of the For loop and let it index on the output.
Done
Ben
06-27-2019 07:19 AM
The information provided by you is not working. we receive continuous pulses from our data acquisition card and the nature of pulse is attached below. Now we want to eliminate the highlighted portion of the pulse. Please help us to remove that pulse portion and if possible please provide a small program that how to eliminate it.
06-27-2019 08:00 AM
@Rahul1123 wrote:
The information provided by you is not working. ...
if possible please provide a small program that how to eliminate it.
It would work if you actually added the code I described.
"Show us the code" as I described and I may get a chance to tell you what is wrong.
"if possible"
I am here to help and not to work ... so no can do.
Give that code a whirl and post images if you still need advise.
Ben
06-27-2019 12:25 PM
Find the attachment
06-27-2019 02:05 PM
@Rahul1123 wrote:
Find the attachment
Go back and look at what I wrote previously...
"
Use the "inrange" output to controla Select node where the "True" input is your signal and the false is zero.
Wire the output of the "select" node to the output of the For loop and let it index on the output.
"
You did the first part I described but you left out the "Select" node.
The "Select Node" should a zero wired to the bottom False input and your data coming from the FOr loop input tunnel is wired to the top input.
Every time the value is above the "80" the inrange Boolean will be fasle and then Select node will insert an "zero".
Ben
06-28-2019 01:14 AM
1.) what is the "select" node which you said i left out.
2.) if i give data coming from the FOR loop input tunnel is wired to the top input of inrange function than how can i assign the maximum value
2.) this program eliminates the value which is above 80 and not eliminating the whole pulse.
i am not getting what you have explained till now because of improper grammatical statements. It would have been more easier if you have simply send a picture only of inrange function with the proper connections and true/false conditions.
06-28-2019 02:01 AM
Hi rahul,
1.) what is the "select" node which you said i left out.
Open QuickDrop. Type "select"…
2.) if i give data coming from the FOR loop input tunnel is wired to the top input of inrange function than how can i assign the maximum value
You don't wire your data to the "top" input of the InRange function. Nobody suggested something like that…
It would have been more easier if you have simply send a picture only of inrange function with the proper connections and true/false conditions.
It would have been so much easier if YOU would attach your VI instead of just images. Nobody here is able to edit your images using LabVIEW!
Btw. why don't you use AutoCleanup?
06-28-2019 03:45 AM
its working now but some portion of the highlighted pulse is still coming as straight lines (as shown is attached picture). we want to eliminate that also.
we are really sorry we do not have the authority to share the complete vi
06-28-2019 04:03 AM - edited 06-28-2019 04:03 AM
Hi Rahul,
some portion of the highlighted pulse is still coming as straight lines (as shown is attached picture).
Please define "straight lines" in that image…
The plotted data are well within your limits of [0; 80] - the VI behaves according to your coding!
we want to eliminate that also.
How do you want to "eliminate" that part of the signal? What is the expected output?
we do not have the authority to share the complete vi
Nobody asks for the "complete" VI.
You can always create a smaller subVI, containing only the needed parts and some meaningful default data!
Still no AutoCleanup.
Still no labels on controls/indicators in the block diagram…