LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with plotting XY data from PSD

Hello, I am pretty new to LabView.  I am trying to make an XY plot that shows the coordinates read from a PSD (position sensitive detector) over time.  I have the code attached so far, but when I get to the XY graph, it says "You have connected two terminals of different types.  The type of source is 1D array of cluster of 2 elements.  The type of sink is 1D array of cluster of 2 elements."  I don't understand why there is the broken link if they both are of the same type...  Any thoughts are much appreciated!  Thanks!

 

Also, sorry for only having a screenshot, my computer is not wanting to upload the actual code...

 

-J

0 Kudos
Message 1 of 6
(3,286 Views)
It looks like you are just making things up. The required inputs to an xy graph is completely different. First, don't work with the evil dynamic data. If you do, use it correctly. The shift register, build array, bundle, another build array are all wrong. If you insist on dynamic data, user the Express XY graph and just wire the x and y inputs directly. To use a normal xy graph, get rid of the dynamic data and convert it to something real.
Message 2 of 6
(3,274 Views)

I tried to follow another example code to do this.  Like I said, I am very new to LabView and don't really know what I'm doing.  Thanks for nothing.

0 Kudos
Message 3 of 6
(3,265 Views)
I'm pretty sure the example you failed to attach or link to its completely different. The cause is the misuse of dynamic data. I have no idea what the actual data is being returned by your express VI. If it is actually a scalar, then convert it to that.
0 Kudos
Message 4 of 6
(3,256 Views)

I'm still pretty confused by what you are saying...  I get 3 analog voltage signals from the Express VI, use some conversions to get the X and Y coordinates, and am then hoping to make an X-Y plot that continuously records and plots the coordinates.  If my code is completely wrong, any ideas on how to better do this?

 

Thanks,

J

0 Kudos
Message 5 of 6
(3,244 Views)
If you are going to use a normal xy graph with a shift register, use the Convert from Dynamic Data to change to scalar. If you sick with dynamic data, don't use a regular xy graph. Use the Express xy graph and wire the dynamic data directly to the inputs. Don't use the shift register approach.
0 Kudos
Message 6 of 6
(3,234 Views)