LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the wire broken in the attached program?

Solved!
Go to solution
0 Kudos
Message 1 of 9
(4,727 Views)

The cluster does not match the datatype of the input on your vi.  Make sure both clusters have the same structure or better yet, use a typedef.  Post your code and we can tell you exactly what is wrong. 

 

 

Message Edited by vt92 on 08-06-2009 10:15 AM
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 9
(4,720 Views)
I have attached a screen shot of the code. The I/O assistant is reading data from a serial port? How do I check a cluster and change its type?
0 Kudos
Message 3 of 9
(4,702 Views)

Hello,

 

I would guess, although it is difficult to tell from the picture that you are trying to put a cluster into an input that wants an array of clusters (as the broken wire gets thicker)

Message 4 of 9
(4,696 Views)

First, a screen shot is not code. You CANNOT debug an image.

 

Second, you should open the function you are calling to look at the expected data type. The other way to do it is to right click on the input of the function and select 'Create Constant'. Either method will show that you need a 1D cluster array.

 

I don't know what you expect to do with the function. You are getting a single point and your XY plot will show only a single point and it might not even be visible so your next question is going to be why doesn't my plot show anything. I also don't know why you are using the picture XY graph as opposed to the regular XY Graph. My guess is that you used the regular graph first and had the same issue of trying to display a single point.

 

Message 5 of 9
(4,663 Views)
If you turn on Context Help with Ctrl-H and hover over the wire, it will give you information on why the wire is broken.
Message 6 of 9
(4,624 Views)

This VI is from the shipping example "Waveform and XY Plots.vi" and you are not using it right. As others have already hinted, you need an array of xy clusters. (Note the autoindexing output tunnel!).

 

Here's the code from the example.

 

 

 

What are you actually trying to do? Why don't you use a plain xy graph?

Message Edited by altenbach on 08-06-2009 02:45 PM
0 Kudos
Message 7 of 9
(4,611 Views)

Firstly that was only the relevant part of the circuit, the actual one is placed in a loop, so multiple points will be plotted, secondly this is the only xy graph I could find, I to got it from the example shown in the comment above and don't understand the difference between mine and theres. Anyways I cant find 'plain xy graph' when I search in the functions pallette??

 

Cheers 

0 Kudos
Message 8 of 9
(4,562 Views)
Solution
Accepted by topic author ssteel

XY graph is an indicator that you get from the front panel palettes.

 

What circuit are you talking about?  If you are referring to your LabVIEW code, then that is a block diagram.

0 Kudos
Message 9 of 9
(4,540 Views)