LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

frequency and duty cycle measurement

Hi Jeremy,
 
You are right, exactly i'm looking for the same.
I tried with the event structure and while loop.
Since i hadnt used this event struture before i failed to use it clearly.
Even though the examples were there in labview\examples\general\uievents.llb  for event structure, i couldnt see anything helpful to me.
Could you please explain about this event structure with a simple example.
 
(Or)
Could you please repair this VI for me.
 
Sorry for troubling you
 
VI with the modifications is attached below.
 
Cheers,
Suneel.V
 
0 Kudos
Message 21 of 39
(1,640 Views)
The first thing to do is to remove the 2nd Event structure (the inner one?).
 
You shgould only have 1 Event Structure.  Especially since they trigger on the same event! 😮  😉
0 Kudos
Message 22 of 39
(1,627 Views)

Ok Joe

I removed the inner one.

But how should i use the same Extract waveform button press

and modify the VI so that for every press the extracted waveform should be shown on 1,2,3 and again after finishing upto 3 it should again referesh the 1 and display it from 1,2,3

COuld you please let me know how should i proceed?

 

Cheers,

Suneel.V

0 Kudos
Message 23 of 39
(1,625 Views)

Hi Jeremy/Joe,

Again i need your help........

Right now in this VI i want to make the X-axis to be controllable by the end user.

  • Req says that user should be able to select the x-axis(time) based on his interest
  • Only for the original waveform window this provision is required.

Please let me know which of the property node needs to be invoked.

-Suneel

0 Kudos
Message 24 of 39
(1,598 Views)
A simple way is to just turn off autoscale for the x axis. You can use the property node Xscale.ScaleFit with a value of 1. This will do a single autoscale. After that, the x axis can be changed by simply selecting either the min or max value on the scale and tyoing whatever you want. There is also the built-in zoom function on the graph palette.
0 Kudos
Message 25 of 39
(1,586 Views)
Hi Dennis,
 
Where can i find this autoscale?
You mean in the properties of Original waveform.
And i tried with X-axis.scalefit  property node but unfortunately its not working...
Could you pls let me know where should i place that exactly....
See the VI attahced after modifications...
 
-Suneel


Message Edited by suneelkv on 07-07-2008 10:03 AM
0 Kudos
Message 26 of 39
(1,580 Views)
I don't know why you would put it there. I would put it right after the wave file read. And, you actually have to turn off autoscaling on your x axis. Just right click on the graph and select X Scale or right click on it and select Properties. This is kind of basic stuff. Have you done any of the free LabVIEW training?

Message Edited by Dennis Knutson on 07-07-2008 09:11 AM
0 Kudos
Message 27 of 39
(1,577 Views)

Hi Dennis,

I've done that before but i couldnt find any diff, so i thought of keeping it in.

Ya i've gone thru those free labview training.

But still i feel that i've to learn more about this Activex in labview.

Anyways i've added that xscale.fit with 1 and also done the changes in the properties (autoscale disabled)

But my req is not yet reached.

I should get the control of x-axis, which should be chane the waveform display thru x-axis whenever i change the control....

This is waht i'm looking for...

Please let me know where should i tick for this.

 

-Suneel

0 Kudos
Message 28 of 39
(1,537 Views)
Hi Suneel,

If you just need the user to be able to change the x axis on the graph, the graph can already do that.  You can right click on the axis while the VI is running and turn autoscaling on and off and you can also change the scales.  From your original requirement, it doesn't sound like you need to do this programmatically at all, unless I am misunderstanding you.

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 29 of 39
(1,526 Views)

Hi Jeremy,

I do agree with you,

Even i've done and tried with the VI, and found that x-axis can be changed with the mouse pointer.

But what abt exe, bcoz at EOD i need to give an exe to other team to use.

So is this applicable in exe too...

THats where my concern is?

Or meanwhile i try to do an interim build and check it.

Will update you soon if i hit any snag.

 

-Suneel

0 Kudos
Message 30 of 39
(1,510 Views)