LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spilt 2D array and use the deatels

Hi, i wrote a simple program to read info from DAQ, the output is 2D array, I need to sub a constant from X, how can i do it?
see atatch for the program,
Thx a lot for the help,
 
0 Kudos
Message 1 of 9
(3,438 Views)
Hi yechielo,
if you connect row and column on the "index array" function, then you will get a single element.
Mike
0 Kudos
Message 2 of 9
(3,437 Views)
Hi Mike,
i dont need to use a singlr one element, my Y array is around 0.59, I need him around 0, that mean i need to sub 0.59 from Y array
Thx
0 Kudos
Message 3 of 9
(3,423 Views)
By sub, you mean subtract?

If so, you can just use the - function from the numeric palette with 0.59 as 1 number and labview will automatically subtract it from all elements.






Message Edited by StevenD on 06-10-2008 07:59 AM
0 Kudos
Message 4 of 9
(3,415 Views)
Steven, you right, i want to do that, but i dont know how to spilt the 2D array to x array and y array
see atach where i want to sub
Thx
0 Kudos
Message 5 of 9
(3,408 Views)
The Y values are the values in the array, and the X values are the element numbers of the array. So you don not need to seperate or split your array.
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 6 of 9
(3,406 Views)
yechlielo,
 
Your program does not make any sense. You have a shift register that does nothing and you convert everything to DBL. When you save the data, you are throwing away all data except for the very last iteration and you are throwing away all timing information.
 
To plot 3 different graphs, you could just keep it as dynamic data and then use the Split Signal function.
0 Kudos
Message 7 of 9
(3,399 Views)

Denis,

Thx for your help, i just test the save to file in my program and i saw that my data didnt saved, can you advise me how to save all the measured data to file?

thx

0 Kudos
Message 8 of 9
(3,364 Views)

Hi yechielo,

you save only the data of the last iteration. To get all data use the build array function and connect the left side of your shift register and the new data to it.

Mike

0 Kudos
Message 9 of 9
(3,362 Views)