LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is my x y graph not showing any graph?

Solved!
Go to solution

Hi,

 

I am making an hartmonitor VI for school. I managed to calculate the hartbeat. I connected it with a cluster bundle to my x y graph. But my x y graph doens't show anything. Please can you tell me why. This is my VI  

0 Kudos
Message 1 of 31
(4,398 Views)
Solution
Accepted by Monkspade

At one point, you are dividing an array by an empty array constant.  The output of that operation is always an array with 0 elements

 

Bill F

0 Kudos
Message 2 of 31
(4,381 Views)

Ok thanks,

 

I understand now. But is the way I calculated the heart rate going to work for real time measurement with a DAQ-card and LED sensor.

 

Abi. This is the corrected VI:

 

0 Kudos
Message 3 of 31
(4,340 Views)
Please go to the toolbar then select help->find examples. Search for peak and then open the "Peak Detection and Display.vi". Let us continue the discussion with this VI as a template. Your VI will never work as it is now.  


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 31
(4,326 Views)

Coq rouge ,

 

I am now using the other peak detector. The heartbeat is now lower. But I don't really know if it i will work now in realtime.

 

Abi

 

0 Kudos
Message 5 of 31
(4,319 Views)

No it will not work. You are doing things the wrong way. You must use the peak locations. The first beat is peak(1) minus peak(0), the nest beat is (2)-(1) and so on. If you divide with the sample rate you will get the time between heart beats. This is equal to the period time. The frequency is the reciprocal(1/x). You can go directly to frequency by dividing sample rate with beat interval in samples. Which sample rate do plan to use and how often will you update your result in real time?



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 31
(4,310 Views)

 Coq  rouge,

 

I think my acquisition mode will be continuous sample with a sample rate of 1000 Hz  and sample period of 0.001 s.

0 Kudos
Message 7 of 31
(4,297 Views)
1000 Hz sound good. I guess you could have gone lower but stick with 1000 Hz. It should be more than enough to update your beat data very second 


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 8 of 31
(4,293 Views)

Coq rouge,

 

I don't understand what you mean, because I am using the peak locations and with de derivative I am calculating the number of samples between peaks. And I also divided it with de sample rate in de VI I showed you before. Can you please show me an example?

 

 

Abi

 

0 Kudos
Message 9 of 31
(4,289 Views)

You DO NOT need the derivate consentrste on the locations array. As told I  you.

The first heart beat is the value in locations[1] minus the value in locations[0]. A for loop running #found-1 should do the trick



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 10 of 31
(4,282 Views)