LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an 1D Array of 2 Cluster Of Elements From a CSV That Mimics The Desired Input I Need

I have what seems like a simple problem but has been frustrating me for a bit now.

 

I have a pop-up window that allows a user to load up various parameters for a motor test fixture. In this window, they'll specify the motor type and select a test profile from a CSV file of their choice. 

 

The CSV file is parsed and outputs an array of "time" and "setpoint". Setpoint will be RPM, but for the example i'm working on I just left it as "setpoint". 


This profile is put into a cluster and will ultimately be sent to the main VI where it will be fed into a PID vi. This is the same PID vi found in the LV examples.

 

I for some reason cannot get my cluster output to match the same cluster that the PID is expecting. I've included pictures of the data types for each, display windows for each and the block diagram of how i'm creating this cluster. For the example below, the ideal cluster values are the same values i have in the CSV file.

 

 

Data type of the cluster I’m trying to mimic

AMAGIS_0-1726588052493.png

 

Cluster that I’ve made by importing values from a csv file

AMAGIS_1-1726588052496.png

 

 

Outputs: The cluster I created is vertical, “time” on top and “set point” below it. The cluster I want to mimic has time on the left and setpoint on the right.

AMAGIS_2-1726588052499.png

 

 

AMAGIS_3-1726588052500.png

 

Block Diagram

AMAGIS_7-1726588333709.png

 

 

 

Display

AMAGIS_6-1726588286487.png

 

 

0 Kudos
Message 1 of 2
(167 Views)

Hi Amagis,

 


@AMAGIS wrote:

Outputs: The cluster I created is vertical, “time” on top and “set point” below it. The cluster I want to mimic has time on the left and setpoint on the right.


Right-click the cluster border-> autosizing -> arrange horizontally…

 

Recommendation: type-define your clusters!

Best regards,
GerdW


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