10-25-2013 03:41 PM
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
10-26-2013 02:58 AM
BUMP still need some help please:)
10-26-2013 03:04 AM
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 )
10-26-2013 03:54 AM
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?
10-26-2013 04:02 AM
Have you done any part like how you will store the values in array.
Any attempt or something????
10-26-2013 04:13 AM
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
10-26-2013 04:35 AM
Hopefully you are not lookin for solution stright away
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.
This image is totally intended for how you can do things in LabVIEW.
10-26-2013 08:40 AM
Thanks Neos,
That's very kind of you 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?
10-28-2013 06:13 AM - edited 10-28-2013 06:14 AM
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.
10-28-2013 06:21 AM
@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