LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How plotting on a digital waveform graph the bit transition in function of the time

Hi everyone,

I am using LabView 6.1 on a Windows XP computer. I am to plot output bits sequences on a digital waveform graph just before sending the information to a board.

So far I can see the transitions for my 16-bit port (16 plots) but the width of a pulse is always identical, no matter what times I enter. I wired my 1-D array timestamps to the property node Xscale.MarkerVals[] of my digital waveform graph... but it doesn't seem to affect my plotting...

Thanks in advance for any help concerning this problem.

Jonathan Sabah
0 Kudos
Message 1 of 8
(4,098 Views)
Well here is piece of my VI with the necessary sub VI.

I also want to hide/unhide plots... I have found how to hide.. but cannot figure out how to unhide.

Any help please ?

Thanks again

Jonathan
Download All
0 Kudos
Message 2 of 8
(4,098 Views)
Jonathan,
To hide/unhide a plot, first make it an active plot, then use the Plot.Visible property and wire a boolean into it.

Zvezdana S.
0 Kudos
Message 3 of 8
(4,098 Views)
Thanks for the advice. It works almost perfectly 🐵

But I am still struggling with the X axis and the witdh of my pulses that are not in function of the timestamps.

Anyone else for some help ?

Thanks in advance, have a nice week end !

Jonathan
0 Kudos
Message 4 of 8
(4,098 Views)
I've only done a little bit with a digital graph but I think its just like the waveform graph in that the x axis is only for regular time intervals - you can specify X0 and deltaX only. The XY graph is used for variable x axis but I don't know if you can use it for digital data.
0 Kudos
Message 5 of 8
(4,098 Views)
My name is vijay. For the scaling on the x axis,can u please tell me what X0 and delta X denotes. What scaling factor are they reffering too?
thank in advance. Also in order for you to see the binary representation of your digital inputs u can open up the "read from one digital port" VI located under data acq, digital i/o, immediate digital i/o. Then u can wire a graph at the output from the pattern node before number is converted to boolean. Hope that helps jonathan!
0 Kudos
Message 6 of 8
(4,098 Views)
> My name is vijay. For the scaling on the x axis,can u please tell me
> what X0 and delta X denotes. What scaling factor are they reffering
> too?

The X0 is the additive and the dX is the multiplier. In algebraic form,
y=mx+b, dx= m and X0= b.

As an example, if the scale currently starts at 0 and increments by one
for each point, then a X0 of 2000, would make the scale start at 2000
and increment by one. Also setting dX to 5 would make the scale start
at 2000 and increment by five for each point. Note that this doesn't
specify where the markers go, but how much each point is considered.
This example would be useful for example if the X scale was really
frequency where bin 0 was 2KHz and each new poin
t represented 5Hz
increments.

Greg McKaskle
0 Kudos
Message 7 of 8
(4,099 Views)
Hi,
My name is yariv. I am nearly using the same property as you described below, but in a much simplier way:
I have an 16-bit boolean array that represents 16 devices I am controling. I'd like to update the digital graph with 16 plots, each representing a device. Once in a second I am reading that 16-bit-boolean array and would like to represent it on the graph.
How do I perform it?
How do I make a sweep on the graph display that I can see even past history seconds?
Thanks
Yariv3G
0 Kudos
Message 8 of 8
(3,958 Views)