LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to overwrite xy graph data?

You're right that the Complex type helps with this, but it can be much simpler still...

cbutcher_2-1623304868028.png

By initializing the array with NaN/NaN, you can then simply use Replace Array Subset to change which element you're updating.

 

If you need multiple lines (rather than points) you could do this with an array of clusters of arrays of points (replacing the outermost array elements with the new line).

 

As an aside, given you already have an Event Structure, you should put the Stop control in its own case. I also removed the Timeout case, since you don't have a timeout value and it only means another case to wire to avoid the default dots (which are irrelevant here, because that case can't trigger, but it makes it harder to tell (assuming multiple real cases) if you've correctly wired all of them)


GCentral
Message 11 of 13
(752 Views)

Thanks cbutcher.  I understand and appreciate your improvements.  Clearly an event structure is better than a case structure.  And I realized later that I don't need dual overwrite cases, one is enough.   It's good practice for me because I'm preparing to take the CLAD exam.  I didn't pass the first time but I'm going to try again.  It seems clear to me now that you can't "fake your way through" the CLAD exam.

0 Kudos
Message 12 of 13
(731 Views)

@skinnedknuckles wrote:

It's good practice for me because I'm preparing to take the CLAD exam.  I didn't pass the first time but I'm going to try again.  It seems clear to me now that you can't "fake your way through" the CLAD exam.


Good luck! Hopefully the majority of the questions are fairly ok if you've been using LabVIEW a bit, but from my memory there are a couple of common trick questions and probably one or two just unusual things that maybe one doesn't encounter in general - to allow for those odd ones it's worth trying to prepare for the trick ones! Read carefully/twice if in doubt! If you get most of them it's ok to lose a couple of points (I think you need 28/40?)

 

I guess you probably already found the CLAD nugget and the certification board, but if not search for those here on the forums, they have examples of what I'm talking about, and might help you before you take it again.


GCentral
0 Kudos
Message 13 of 13
(727 Views)