Hi,
assuming your triggering at the same point in the signal, you should be able to use an XY graph to make an eye diagram.
There's quite a lot going on with your code - can you cut it down to a simulated signal so we know where we're trying to acheive the manipulation given some (semi) real data?
Usually for an eye diagram, you would put out a 3 bit pattern (000, 001, 010 etc) so you get two transition edges in your eye diagram taken in with a high enough speed card to catch when and how fast the transitions are occurring. You therefore need good triggering for this so you can make sure you're capturing at the same point in the data each time otherwise the overlaps mean nothing.
You say you're transmitting a random bit sequence, and there's no triggering of the acquisition in your code so you can overlay the transitions correctly on the graph. Are you seeing nothing useable on the xy graph, or is the xygraph not close enough to what you want?
For an intensity chart, you're going to have to fill in the remaining data, i.e. at present you have x and y data related to a specific line if you joined up all the points. You need to translate the value you've taken as a x,y position and plot that point as a 1+ onto the 2D array you'll pass to the intensity graph. I say 1+ because I'm assuming you want colours, and the more points you overlay over them selves, that would represent a different colour, so take the fact that there may be a point there already, read it's value, add one to it and plot it back.
I've attached an example, so you can work out where the y array from your DAQ will go with an intensity graph. You will need to sort out your triggering though so you get the same reference start point each time. The only part of my example you really need to worry about is the for loop that's taking the data in and translating a single point to an index in a zero filled array.
Setup the starting parameters on the main vi, (the "intensity graph as eye graph.vi") and hit the go button. Hit the stop button to stop after that. To see an "eye" let it run for a little while, then hit the invert button.
Hope that helps
Sacha Emery
National Instruments (UK)
Message Edited by SachaE on 03-09-2007 01:14 PM
// it takes almost no time to rate an answer