LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

placing text file into an array

I am currently communicating via GPIB with a three phase power supply using LabVIEW. This power supply controls the speed of a three phase induction motor based on the voltage and frequency. Currently I can control the voltage sent to the motor using a simple voltage knob on my front panel. Instead I would like to take a text file of wind speeds and place them in an array. I am attaching a sample of the text file to be inported. Once the values are in an array we need to iterate through the values one every ten seconds using these values as input inplace of the manual voltage knob. Attached is the sample text file as well as what i have so far on the motor control.

 

Thank you

Download All
0 Kudos
Message 1 of 2
(2,251 Views)

Hi Fox,

 

use the ReadFromSpreadsheetFile to read your text file into an array. Then all you need is an autoindexing FOR loop to iterate over your array...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,242 Views)