LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot programmatically set Vaue pairs property

I am using 2015 64-bit labVIEW. Can't set value pairs programmatically. Objective is to be able to replace the value array by the name array and it must be done programmatically. There has been a similar topic raised without a solution . Just wondering if anyone has a work around yet?

[BADGE NAME]

0 Kudos
Message 1 of 6
(3,949 Views)

How do you exactly try to do it? By default arrays in LabVIEW are not named-array; so do you use some library for it, or some variant lookup table, or something else?

It's difficult to answer on the abstract question without the code - how should we figure out the solution for you, if we don't see what you currently have?

 

Sincerely, kosist90

 

logos_middle.jpg

 

Check out new feature of LabVIEW 2017!

0 Kudos
Message 2 of 6
(3,928 Views)

Hello,

 

Here is how I tried. It's a 3D graph using Labview 2015 64-bit.

[BADGE NAME]

0 Kudos
Message 3 of 6
(3,917 Views)

Hi, BlessedK.

 

I was about to "complain" about your attaching your code as a picture of a Front Panel and Block Diagram (something along the lines of "Why didn't you attach your VI to save us the trouble of trying to recreate it "by hand" ourselves") when I noticed that you are using 64-bit LabVIEW (which I, personally, have never used, as 32-bit LabVIEW seems more complete, more robust, and "gets the job done" for me).

 

I don't quite understand what it is that you are trying to do.  Can you explain it for me?  Are you plotting points in 3D space and trying to get something like the projection of the points on one of the three 2D axis-planes (e.g. the XY, YZ, or XZ planes)?  Is it "something else"?

 

Bob Schor

 

P.S. -- when I drop down a 3D Graph (I chose a Scatter Plot, assuming you were going to plot X,Y,Z points), I get something that looks quite different from the picture you posted, suggesting I'm doing something different than you, so I'm going to let you help me understand your problem better).  Here's my Snippet:

3D Scatter Graph.png

 

0 Kudos
Message 4 of 6
(3,853 Views)

Apparently, you are using a 3D line graph (bottom right on the palette), but I still have no idea what your actual question is.

 

Does the graph work? Maybe you also have race conditions because your two code fragments execute in parallel, and whatever occurs last, wins.

 

(You also talk about "similar questions without solution". This is not helpful unless you give a link.)

 

So please take your time and write a few paragraphs explaining exactly what you are trying to do, what you expect to happen and how it should look like in the end.

0 Kudos
Message 5 of 6
(3,843 Views)

Thanks Altenbach and Bob Schor. Always appreciated when you help. Apologies for the delayed response. 

 

The below link / thread pretty much explains what I am experiencing; spot on:  Can set X value pairs, but can't set y or z. Attempting to Set y  or z sets X instead

 

https://forums.ni.com/t5/LabVIEW/Problem-setting-3D-Graph-Value-Pairs-Properties-Setting-Y-Z/td-p/35...

[BADGE NAME]

0 Kudos
Message 6 of 6
(3,792 Views)