LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Importing data from text file to ring control.

Solved!
Go to solution

Is there a way to import data to a text ring control with labview.

 

I would like to put in many register definitions into ring controls but manual input would take a lot of time.

 

Was wondering if there was more of an automated way I could read the values in from a file.

 

Thanks

 

Jim

 

 

0 Kudos
Message 1 of 5
(4,527 Views)

Yes you can do it

 

Example_VI_BD.png

=====================
LabVIEW 2012


0 Kudos
Message 2 of 5
(4,524 Views)

Or like this if you have a control name on each line.

 

Ben64

 

0 Kudos
Message 3 of 5
(4,520 Views)

OK here the image  ProjectView006.png

0 Kudos
Message 4 of 5
(4,518 Views)
Solution
Accepted by topic author Jim_Glanz

Using the first method gives you the ability to extend it such that each column specifies a ring control if you need to populate multiple rings.

 

This example assumes that all three rings contain the same number of elements. If not you will need to create a subVI that removes empty elements. [Edit - create a text file that contains a column for each ring separated by a tab.\

 

Example_VI_BD.png

=====================
LabVIEW 2012


Message 5 of 5
(4,512 Views)