LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write real-time data to matrix

Hello,    I have a very basic question.

   I have multiple sensors (phidgets) that are feeding into labview data continuously (some at 1000Hz).  I want to route these multiple channels into a single matrix that I can then send into mathscript (preferrable in realtime). I setup a block diagram for input of the sensor values, but an stuck at the array step.

I've attached my code.  Thank you for your time.
0 Kudos
Message 1 of 3
(2,688 Views)
i have solved this problem.  But am no wondering how you use only the last values in the matrix as variables in a mathscript?  That is, if I have a say an 8 row matrix (8 sensors) that is continuously gathering data...how do I take only the lastest values and use them in a computation in mathscript?

thank you.

0 Kudos
Message 2 of 3
(2,666 Views)
Hi Veritas,

If you use the Index Array VI, you should be able to pass in the Row and Column for each element. For instance, lets say your array has 11 rows. You could place eight Index Array's VIs down on the block diagram, pass in '11' for the row, and numbers 0-7 for each element. You could then pass those wires into the MathScript node.

To add inputs to a MathScript node, right click on the left side of the node, and select Add Input.

Let me know if I have misunderstood your question!

Have a great weekend.

Regards,

Kevin_H
National Instruments
WSN/Wireless DAQ Product Support Engineer
0 Kudos
Message 3 of 3
(2,657 Views)