Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add an NSV for a 2D array?

Solved!
Go to solution

I have tried to connect a 2D array to an NSV. However, there is an issue connecting a 2D array to a 1D NSV. So, how can I change the property of the NSV from 1D to 2D, instead of inserting the functions either BUILD ARRAY for INDEX? Thanks in advance!

0 Kudos
Message 1 of 6
(5,541 Views)

Sorry, my question should be how to connect a 1D array to a 2D networked-shared-variable without having to either insert functions of BUILD ARRAY or INDEX between them. To be exact, how can I change the property of a 1D variable to 2D? I cannot seem to find it out. 

0 Kudos
Message 2 of 6
(5,524 Views)
Solution
Accepted by topic author M.Leung

Build Array. You can change the property of a 1D Array to 2D.

In addition, you can try to chang the type of Networke Shared Variable.

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

Thanks for your answer,Klaus000. 

 

However, what if I don't want to change the property of a 2D array to 1D?  Under this circumstance, how can I change the type of NSV? I cannot seem to find out a 2D NSV. Should I have to create it and how? Thanks again!

0 Kudos
Message 4 of 6
(5,499 Views)

About your question, Please make sure you have he Network Variable API. You can follow this link.

http://forums.ni.com/t5/LabWindows-CVI/Network-Shared-Variable-read-string-with-CVI/m-p/3086581

 

0 Kudos
Message 5 of 6
(5,465 Views)

Hi, I have solved the problem myself before your answers. Thanks all the same!

0 Kudos
Message 6 of 6
(5,459 Views)