LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

respiratory rate

Hi Charlie,

Now,I'm trying to call another vi by pyshing a button in front panel. I put the icon of the vi on the diagram but I don't know how to connect it to a button. Do you have any idea?
0 Kudos
Message 31 of 49
(1,735 Views)
I guess the easiest to insert into your progam would be to place the vi you want to open in a case statement with the boolean button tied to the control.
Randall Pursley
0 Kudos
Message 32 of 49
(1,685 Views)
But I can not connect any indicator to my sub-vi, how can I handle this?
0 Kudos
Message 33 of 49
(1,682 Views)
Put your vi in the 'True' case of your case statement. If your button is false (you didn't push it) the vi will not run. If you push the button and make the button state 'True' then the vi will run because it is in the 'True' case.

Is this what you mean and what you want to happen?
Randall Pursley
0 Kudos
Message 34 of 49
(1,680 Views)
Attached example
Randall Pursley
Message 35 of 49
(1,681 Views)
Also, if you want the front panel to open up when it is executed, you must go to the vi on the block diagram and click the right button of your mouse.

Select 'Subvi Node Setup...'

Click 'Show Front Panel when called'
Randall Pursley
0 Kudos
Message 36 of 49
(1,679 Views)
Thanks,
it's working.
0 Kudos
Message 37 of 49
(1,671 Views)
Hi ,
As you know I'm acquiring ECG data. Now, I need to analyze this data e.g. ST segment PQ interval etc. But my acquired data has 50 Hz noise. I'm sending acquired ECG data attached .In order to properly analyze these signals I want to get rid of 50 Hz noise. I know, you dealt with ECG. What kind of filter do you recommend and do you know the low cut off and high cut off frequencies ? My sample rate is 250 Hz.
Thanks
0 Kudos
Message 38 of 49
(1,653 Views)
You can just use a Butterworth Filter with the following parameters.

1. Bandstop
2. 4th order
3. Low = 45 Hz
4. High = 55 Hz

Be sure to wire the fs input with the 250 Hz.
Randall Pursley
0 Kudos
Message 39 of 49
(1,645 Views)
You might also use another Butterworth Filter to remove the DC offset from your data.

1. Lowpass
2. 2nd order
3. cutoff = 0.001 Hz
Randall Pursley
0 Kudos
Message 40 of 49
(1,644 Views)