LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove retrace path in XY graph

Solved!
Go to solution

The attached VI is an implementation of output characteristics of a transistor. I have implemented using basic equations. However, my problem is that the XY graph retraces to 0 and then starts for a new value of VBB. I dont want that retrace path. By this, I mean is that as soon as the completion of the inner loop the outer value is updated. Since the inner loop starts agains with 0, I dont want the line from the last iteration of the inner loop to the new interation of the inner loop.

How can I remove that. Please help

 

 

0 Kudos
Message 1 of 7
(2,388 Views)
Solution
Accepted by topic author Jay.kothari

Insert an extra point containing NaN into the data, it will break the line.

Message 2 of 7
(2,378 Views)

I did not understand it clearly. Where to insert and how to insert. Can you please if possible modify the VI and help me.

0 Kudos
Message 3 of 7
(2,375 Views)

Here is a quick draft.

 

I would recommend to use complex data for the xy graph, it dramatically simplifies the code.

 

(Some other points: don't use while loops as for loops. Since you know the number of iterations before the loop starts, a FOR looop is correct. Use the correct data types for diagram constants. There is a primitive for "+1")

 

Download All
Message 4 of 7
(2,372 Views)

Got it.. Thanks a lot.. U are a champion indeed, Sir. Thanks a bunch 😄

0 Kudos
Message 5 of 7
(2,371 Views)

Can you tell me why did you add the Re/Im to Complex part ?

 

The VI rocks. Hats off to you.

0 Kudos
Message 6 of 7
(2,367 Views)

@Jay.kothari wrote:

Can you tell me why did you add the Re/Im to Complex part ?


XY graphs accept many types of data. Cleanest is complex data, where it simply graphs IM vs RE. All you need is a single 1D array instead of more complicated data structures.

 

Some of the possible datatypes for xy graphs are listed here:

 

  1. A cluster of an x-array and a y-array.
  2. an array of such clusters. (for multiple plots)
  3. An array of clusters containing two scalars for each point
  4. A cluster array, each element containing and array of clusters as in (3)
  5. A complex array (graphing RE vs. IM).
  6. An array of clusters, each containing a complex array (multiple plots).
  7. etc.

 

(see also)

Message 7 of 7
(2,357 Views)