LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Design and build vi's

Hi Guys,

 

Sorry if this has been covered before! As I am new to Labview and am finding it a bit difficult:mansad: my question is this, I need to design a Vi that will identify transitions between high,low and calculate the number of logic 1s as a percentage of total number of samples, which is up to 100. Can any one help get me started with a few pointers or suggestions on how to build this.

 

Thanks in advance Smiley Happy

Spoiler
 

 

0 Kudos
Message 1 of 15
(3,605 Views)

BUMP still need some help please:)

0 Kudos
Message 2 of 15
(3,574 Views)

From where these transitions are coming 

User generated or you are getting it from some device.

Have you tried somthing or learnt state machine ( your question is not very clear but for almost anything state machines are good solution )

0 Kudos
Message 3 of 15
(3,572 Views)

Hi Neos,

 

Thank you for your reply. this is an assighment, that i have been given by my university. The assignment would like me to design a vi that will take a TTL square wave of 100 samples, stored in an array.  from this the vi should be able to identify all the high and low logics and display them as a percentage of the 100 samples?

0 Kudos
Message 4 of 15
(3,566 Views)

Have you done any part like how you will store the values in array.

Any attempt or something????

0 Kudos
Message 5 of 15
(3,562 Views)

No not yet, as I am new to to LabView and am looking around for ideas or pointers! The array will just have numbers from 5 +- 0.5v logic high and 0 +- 0.5 v logic low

0 Kudos
Message 6 of 15
(3,557 Views)

Hopefully you are not lookin for solution stright awaySmiley Happy

because its your homework so better you do it and enjoy.

To start with i am showing you a very rough situation

suppose you have an array. you want to know that how many elements in this array is greater than a certain threshold and what is the overall percentage of such elements to original elements.percentage.png

This image is totally intended for how you can do things in LabVIEW. 

0 Kudos
Message 7 of 15
(3,551 Views)

Thanks Neos,

 

That's very kind of youSmiley Happy Il have a play with it on Monday when I'm back at uni. Would you be able to give me a breath description of how it works?

0 Kudos
Message 8 of 15
(3,535 Views)

Hi neos,

 

Im having trouble locating some of the parts your using in you VI. Can you tell me what the part on the left is called numbered 1 to 4 or a breath description.

 

Kind regards.

0 Kudos
Message 9 of 15
(3,494 Views)

@REXMAN wrote:

Hi neos,

 

Im having trouble locating some of the parts your using in you VI. Can you tell me what the part on the left is called numbered 1 to 4 or a breath description.

 

Kind regards.


That's an array constant. You'll probably want an array control instead.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 15
(3,492 Views)