LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot data on a cartesian plane, with a twist.

Anybody have experience with OPC connections? I have a VI written in LabVIEW v 7.2 that works great. If I try to do the same thing in LabVIEW 8.0, however, I get a 1101 error. It appears that NI made some changes to the Datasocket functionality and I have my privileges configured incorrectly. Attached is the VI made in version 7.2.

First question is how to do the same thing in 8.0. Then, I have to figure out how to make it work.




0 Kudos
Message 21 of 24
(879 Views)

Hi,

Have you taken a look at the KnowledgeBase that is associated with that error? It might help clear things up.

Cheers,

Emilie Kopp | Applications Engineeer | National Instruments

0 Kudos
Message 22 of 24
(861 Views)
Still having the OPC connection issues, but I have an open service request for that, so we'll see what they can do for me.

In the meantime...My VI reads in an array of 560 double precision data points. I have these going straight to a plot. I've looked at the multi-plot example to try and solve my problem, but figured there might be an easier way.

What I'm trying to do is plot a straight line, y = 8.4, on the same waveform plot. I assume it's possible since, when I go to the waverform preferences window, there are options for Plot 0 and for Plot 1 and there's an optional legend.

How can I do this? Thanks.
0 Kudos
Message 23 of 24
(838 Views)
You'll need to build an array using the two array of data that you'd like to plot. Meaning, you have your data array and then you'll have another array of the same size containing the constant value. Use the build array function and wire these two array into the input. Then wire the output of this function to your graph. You will see them appear as seperate plots.
Hope this helps.
Cheers,
Emilie Kopp | Applications Engineer | National Instruments
0 Kudos
Message 24 of 24
(832 Views)