LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write values into a table

Hi all
 
i've a question for you 😄
 
i must read a structure of data from a board and i must put it into a table....and there are no problems for this (this step is a READ command from the board)
 
when i can see my table full of values i want to do a WRITE command to the board so i want to modify some values into table, so my function WRITE can send new vales to the board.
 
my question is: how can i approach this problem?
 
thanks to all
http://www.sd-studio.it - web design agency
0 Kudos
Message 1 of 8
(4,071 Views)

i ask your help 😄 it's very important

 

tnx

http://www.sd-studio.it - web design agency
0 Kudos
Message 2 of 8
(4,053 Views)
Hi,
 
I don't understand what you want to do. Which device are you using? Do you use the NI-DAQmx driver? Do you want to perform an analog output generation using the data elaborated in your application? Which kind of generation do you want to perform?
Do you need also to modify the data acquired from the device?
I need more details.
Thanks,
 
Marco L
NI Italy
0 Kudos
Message 3 of 8
(4,038 Views)

nononono nothing about this 🙂

all about my board and functions are ok on my work 😉

my question is about this: i "READ" (it is a command) some values from a struct (some analog values from a board) and i insert them into a table and this step is ok too.

Suppose that i want to change some values directly into my table and than send these new values to board (WRITE command).

My question is: how can i change manually my values into my table and than locate exactly that value in order to tell to WRITE command what it must send to board? (i repeat the question is only about table, i know all about board and command)

Thanks

http://www.sd-studio.it - web design agency
0 Kudos
Message 4 of 8
(4,023 Views)

Hi,

why don't you take a look to the examples that you can find under 'Fundamentals->Arrays and Clusters' in the Example finder of Labview?

There you can find some exmples of how is possible manipulate tables and arrays. To select one particular element in the array you can use the function 'Index Array' that you find in the Array palette and you can use the function 'Insert into Array' to insert an element in the array specified. After all these elaborations you can write the data performing the output generation with your device.

Let me know if this solves the problem.

Kind reguards,

 

MarcoL

NI Italy

0 Kudos
Message 5 of 8
(4,006 Views)
If I understand you correctly, you want to be able to manually modify some values on a front panel table after you've written to it? If that's the case, you simply make the table a control and when you write to it, you write to a local variable of the table.
0 Kudos
Message 6 of 8
(3,999 Views)

Yes the case is this, but is there a property node that givves me the locations of the elements that i've modified?

 

thanks

http://www.sd-studio.it - web design agency
0 Kudos
Message 7 of 8
(3,986 Views)
There's not a property node but a comparison between the original array and the modified array will create a 2D array of Booleans that you can use to get the index numbers of the changed elements. Look at the attached example (7.1) to see if it works for you.
0 Kudos
Message 8 of 8
(3,981 Views)