LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you creat this in Labview

Solved!
Go to solution

I'm pretty new to Labview & I'm wondering how to do this in labview. 

We are trying to measure EMG signals for different weights. In other words, we apply different resistance ( 2kg,3kg,4 kg) & we see if participant can push the bike pedal and a constant RPM. I'm trying to draw this Labview. I'm wondering how I can simiulate adding resistant and show it on labview. Is there a way to generate something similar in labview?

0 Kudos
Message 1 of 13
(3,629 Views)

Your formulation of the problem is so vague that I don't know what you want to do, am not sure whether you are simulating or interacting with hardware, the timing parameters of the problem, and other unknowns.  However, in my experience, LabVIEW is sophisticated enough that I'd say (with 95% confidence that I'm right) that LabVIEW would be able to implement whatever it is you are trying to do.

 

Bob Schor

Message 2 of 13
(3,587 Views)

Our outcome measure, or performance measure, is RPM. We will tell the subject that their goal is maintain a certain RPM (e.g. 40 revolutions per minute), and that’s all they know.

Behind the scenes, we want to be able to apply a resistance pattern and there should be flexibility so that we can program any resistance pattern we want. For example, one resistance pattern could be something like this:

1 kg —> 5 kg —> 7 kg —> 2 kg —> 10 kg —> 4 kg, etc. and keep repeating this pattern during a trial, with each interval (—>) lasting 1 minute. (these numbers are probably way above what we actually will manage; in the paper I attach, they used pedal resistance ranging from 0.5 to 1.6 kg)

So ideally, I’d like to be able to have to flexibility to program the following parameters:
a) amount of resistance (kg) in each interval
b) the number of intervals, and
c) the duration of each interval.

 

 

Im wondering if there is a way simulate it in labview ? Constant increase in resistance 

0 Kudos
Message 3 of 13
(3,578 Views)

Sure, LabVIEW can do all of that.

 

Before you are ready to start programming in LabVIEW, create flowcharts or pseudocode of what you want to do to work out the logic  Only later should you be dropping functions and drawing wires on a block diagram in LabVIEW.

Message 4 of 13
(3,567 Views)

With a DAQ it's an easy task to continously read the RPM (through a counter or generator as V) and show in a graph. Through an AO you can send a signal to set the resistance. This should be simple.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 13
(3,539 Views)

Thank you very much for your help. DAQ requires to be hooked up to hardware and DAQ converts the analog to digital, correct? is there a function that create signal so I run the simulation before tesing itwith hardware?

0 Kudos
Message 6 of 13
(3,434 Views)
Solution
Accepted by topic author Canucks.canucks

There are many ways to simulate a signal. There are special VIs for fancy signals, or you can write your own simulated signal. This will increment your resistance every 1 minute and can be adapted to fit your needs if they're simple enough:

Increment.png

 

If you want set interval lengths, increment values, etc, you can use arrays that you iterate through with each iteration.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 7 of 13
(3,420 Views)

In NI MAX you can setup a Simulated device, it can be used to test your code (although reads are a permanent slow sinus).

Yes, a DAQ - Data Aquire Card is the hardware reading or generating signals, like this one: USB 6001

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 8 of 13
(3,407 Views)

Unfortunately, I don't have NI MAX package. I tried testing RPM code with Simulated Signal & it obviously failed 😞

0 Kudos
Message 9 of 13
(3,372 Views)

"NI MAX" isn't a package.  It should have installed automatically with LabVIEW.  If it didn't, or you want to update it, it installs with the NI System Configuration package, and doesn't cost anything.

 

I linked to version 16.  Note that it works with the last 3 revisions of LabVIEW, so you can use that one with LabVIEW 2013 or greater.

Message 10 of 13
(3,368 Views)