LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting Dynamic ECG to Arrays

Hi, im new to this forum and LABView program.
 
I am doing an HRV analysis using LABView for a project in school, with the help of the NI developer's Zone HRV guide.
 
All are good while using a static .txt array for the input, but now i need to get a dynamic signal using a DAQ and an ECG simulator, and i am unable to write the DDT to arrays.
I have search the site for other people's query on this matter, but none of the method work on my program.
 
Anyone with around care for a help? I have i picture of my program uploaded:
0 Kudos
Message 1 of 10
(4,142 Views)
It would be nice if you showed what methods you had tried. The way to convert from dynamic data is to use the 'Convert From Dynamic Data' function on the Express>Siganl Manipulation palette. When you get the prompt to select the resulting data type, choose the 2D Array of Scalars. With the DAQ Assistant, I believe you want the 'columns are channels' option.
0 Kudos
Message 2 of 10
(4,125 Views)
Programming side-note: your for-loop is not necessary. The Add function is polymorphic. It will accept an array for one input and a scalar for the other. Try it. Smiley Wink
0 Kudos
Message 3 of 10
(4,119 Views)
I got the convert from DDT thing, but the problem is that it does not save into an array of numbers over time, it just takes the current and uses it. Which is the problem, where i cannot get the threshold of the signal over time.
 
 
Oh and thanks for mentioning the redudant for loop. Thanks 
0 Kudos
Message 4 of 10
(4,100 Views)
What doesn't save? Your original program didn't save anything to anyplace either. What exactly are you trying to save and to where (file, memory, etc.). Saving has nothing to do with your original question so I'm confused about what you are asking for now.
0 Kudos
Message 5 of 10
(4,086 Views)

I put it in laymen terms, i need to measure the highest peak of a wave, say 1 to 20secs. Now what i have is one Output that reflects the voltage at the particular time. So the input voltage at current sec = Highest peak. I need something that can record the peaks over a period and then make a calculation of the highest peak in that period. Yes and you are right that i need that thing to save the data, which i do not know how to do that..

 

Pardon my english, im a chinese.... from HK



Message Edited by Shabbychev on 07-14-2008 10:15 PM
0 Kudos
Message 6 of 10
(4,081 Views)
The first thing to do is put your data acquisition and this code inside a while loop so that it run more than once. Then you can place a shift register on the while loop. Right click on the edge of the while loop and select Add Shift Register. Shown below is the basics.
0 Kudos
Message 7 of 10
(4,073 Views)
Sorry i don really understand how does it work, do you have any example to give?
0 Kudos
Message 8 of 10
(4,049 Views)


Shabbychev wrote:
Sorry i don really understand how does it work, do you have any example to give?



That is about as basic of an example as you can get.

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
0 Kudos
Message 9 of 10
(4,041 Views)

You should duplicate the code that Dennis provided, so that you become familiar on how to write it.

Then run it with highlight execution turned ON and look at what is going on within the block diagram.

R

0 Kudos
Message 10 of 10
(4,019 Views)