LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert file into VI

Solved!
Go to solution

My professor gave me a project where I have some fake test data and I'm supposed to perform a transform on it. It's a text file but he wants us to insert the values directly into labview so all he does is hit play and Labview takes care of the rest.

 

I've been able to get labview to read the text file by prompting for it but I don't know how to "phyically" put the raw data into labview without it needed the external text file as a reference. I've searched around but had little luck.

 

Any help at all would be appreciated. Thanks in advance

0 Kudos
Message 1 of 3
(2,608 Views)
Solution
Accepted by topic author canyon

If it is just a text file, open it in "notepad" or other editor, copy the text, create a string constant on your block diagram and paste the text into it. Viola! You now have "the file" in your vi, at least it's data.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 3
(2,604 Views)

Worked perfectly! Thank you so much. I could have saved hours of work if I came here first

0 Kudos
Message 3 of 3
(2,591 Views)