LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separating only some strings from an array

i am having 2D array out of which i want to separate some parameters like in the example array i am using i want to separate Vbat, Vout, Ibat, VGG but these are not constant  otherwise i would have used search 1D array, these changes depending upob the input array and the test we are performing.

 

below i am attaching the 2d array which i am giving as input 

 

 

0 Kudos
Message 1 of 7
(2,541 Views)

Can you explain what you mean by "separate"? What should be the desired output for your attached example?

0 Kudos
Message 2 of 7
(2,534 Views)

Thankyou Sir for replying,

 

separating means i want to have only some strings from the 2d array which i am giving as input, actually we are getting some data from several devices like VGG, Vbat, these parameters reading we are saving in one array which we want to rearrange so as to present it in presentable format now the problem is this that these parameter name are not constants so first we need to search all the parameters names that we are using from the input arrayand then rearrange that.

 

i ahve posted one problem earler in this forum, this is the part of that problem.

http://forums.ni.com/t5/LabVIEW/rearranging-data-in-an-array/m-p/2587887#M778622

 

below i am attaching the original program for which i want to do this, which will also clearify why we want to do this.

and the expected output of the parameters also

 

Thankyou

 

Download All
0 Kudos
Message 3 of 7
(2,521 Views)

Hello Sir,

 

below i am attaching one vi which one person posted in the problem i posted here on this ni fourm, it might help uoi in understanding my problem . it is working fine for the input array i posted but the problem is this in the block diagram of this we are using Vbat, vgg etc as constants, but i cant use them as consytants as user can give any parameter of his choice so if there is any method of making them generic, that's why i want to saparate or filter out these parameters somehow from the input array and then i will use them as the input, i dont know weather this approach is fine or not, i have tried several methoda but not getting the correct output.

 

Thankyou

 

0 Kudos
Message 4 of 7
(2,502 Views)

now i have removed the parametre strings from my input array, yhe vi for whioch i am attaching below in which i have separated those parameters which are not constant that's they changes depending on the input, now i have one more pblm how to implement it in the main program so as to make it generic, if anyone ca n help

 

below i am attaching both the programs the main vi- array formatting in which i am giving these parameters as constants and 

 

the vi with these parameters.

 

 

                                                                                                                                                                                                                                                                                                                                  

Download All
0 Kudos
Message 5 of 7
(2,485 Views)

@Ritu wrote:

i ahve posted one problem earler in this forum, this is the part of that problem.

http://forums.ni.com/t5/LabVIEW/rearranging-data-in-an-array/m-p/2587887#M778622


Then please keep it all in one thread. It is counterproductive to start discussing the same thing in several different places. Thanks.

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

i didn't posted here the same problem, this one problem is different fromt the one i posted on the kink i have attached i attached that liknk becausei thought if i will post the proginal program may be this problem will be more clear, that's the only reason and i have solved also this one but yes after solving this i tired to get the solution fort he original problem also and i am sorry for this i will take care in future.

 

Thankyou

0 Kudos
Message 7 of 7
(2,467 Views)