LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatically find a value

Dear all, 

 

First post here, so please forgive me if I'm posting in the wrong place, and if so, please point me to where I should be. 

 

I have a series of very basic questions, but the burning question, at the moment is this: Is there a way to automatically locate a point on a waveform graph?

 

So, I'm studying a vertical ground reaction force-time curve and want to find the point at which the subject leaves the ground, say when a value below 10 N is recorded, and when they land again, say when a value above 10 N is then recorded. I'm using an active cursor to identify some key points (other questions on these later I'm afraid) and wonder if I could use this as some sort of 'onset' from which the search begins?

 

Any help will be greatly appreciated.

 

Jason

0 Kudos
Message 1 of 34
(2,734 Views)

Care to share what you have tried?  Showing some code is encouraged also since it helps us understand the situation.

 

Sounds like you should just use a for loop and look for a threshold on the data to find your data point.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 34
(2,722 Views)

Hi crossrulz,

 

I'm afraid I haven't tried anything yet, as I'm really struggling to understand how this might work. I'm guessing that it's something relatively simple, but because I haven't come across whatever it might be before I probably wouldn't realise I'd found what I was looking for even if I had found it. 

 

I've attached the VI and a text file of data. If you want to run it you'll need to select channel '3' as the Fz channel, and delete 11 rows. The sample time is 500.

 

Many thanks,

 

Jason

Download All
0 Kudos
Message 3 of 34
(2,707 Views)

You can't expect to come to this forum everytime you have a LabVIEW program to write.

It is time you learn how to program in LabVIEW.  http://www.ni.com/white-paper/5241/en

 

Sooner or later you are going to have to put in the time and the effort. Might as well do it now.

 

 

0 Kudos
Message 4 of 34
(2,701 Views)

Hi nyc,

 

Many thanks for taking the time to respond. I am trying to learn, but I'm finding it very difficult... to the point where I'm struggling to see where to start on any 'next step'.

 

Jason

0 Kudos
Message 5 of 34
(2,697 Views)

Sounds like you have never done *any* programming before.

 

If that is the case, I am not sure where one would go from there except to learn how to program.

 

 

 

 

0 Kudos
Message 6 of 34
(2,685 Views)

So what you are saying is that you need to know how to program (in general or just in LV) to be able to achieve past basic tasks? 

 

The rep didn't tell us that when he sold it to us.

0 Kudos
Message 7 of 34
(2,670 Views)

@meganme wrote:

Hi nyc,

 

Many thanks for taking the time to respond. I am trying to learn, but I'm finding it very difficult... to the point where I'm struggling to see where to start on any 'next step'.

 

Jason


The same case I had before I start with LabVIEW you need a right point to kick start once you have started then learning is very easy. Try to program very simple things ( I started with a program to find the resistance value depending on the color code). Simply going through the Manual won't help you much take a concept and start and use the manual as reference.

 

Good luck.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 8 of 34
(2,669 Views)

Thanks. I suppose what I'm trying to avoid is to embarkn on a task to learn only to find that it has little relevance... time is precious.

0 Kudos
Message 9 of 34
(2,667 Views)

@meganme wrote:

Thanks. I suppose what I'm trying to avoid is to embarkn on a task to learn only to find that it has little relevance... time is precious.


I don't understand this statement.

 

You are using LabVIEW so taking time to learn it is of little relevance? In that case, what is of "relevance"?

 

 

Message 10 of 34
(2,663 Views)