LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and Write Problem

Hello!
 
I have a problem with the Data I/O in my program. The button "Animation" generates random numbers and saves them into a file. With the Button "Vergleich" i want to load the data and reproduce the data in the graph.
When i push the button "Vergleich" i can choose the data, but the program don*t reproduces it!
 
Coult anybody help me??
 
TNKS
 
Best regards,
 
Peter
 
 
Labview 7.1 on Windows 2000
0 Kudos
Message 1 of 9
(2,536 Views)
Hi,
 
Your count parameter on the read file.vi is 0 and so, it is not returning data.
That parameter should contain the number of elements you want to read.
 
Hope this helps,
Paulo
0 Kudos
Message 2 of 9
(2,526 Views)
Here are two changes, one uses the write to spreadsheet and read from spreadsheet file functions, the other changes your "read file" to "read text file"
 
 
P.M.
Putnam
Certified LabVIEW Developer

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


LabVIEW Champion



0 Kudos
Message 3 of 9
(2,524 Views)
Robot Very Happy,Thank you guys!
 
Thanks!
 
Best regards,
 
peter
 
 
Labview 7.1 on Windows 2000
0 Kudos
Message 4 of 9
(2,519 Views)

i have modified the program, that the program has two loops which generate the data. how can i  display two curves in one graph. i tried it but i always got the failure: that are two different data types.

what can i do, to display the two curves in one graph??

best regards

peter

Labview 7.1 on Windows 2000
0 Kudos
Message 5 of 9
(2,511 Views)
Hi,
You need to have all data sets in the array inside the cluster.
Check attachment,
 
Hope it helps,
Paulo
0 Kudos
Message 6 of 9
(2,506 Views)
yes is helped.
 
i have a question of understanding: Why did you index the array, the data from "Spreadsheet String to Array.vi" is a array???
 
TNKS
 
best regards,
 
peter
Labview 7.1 on Windows 2000
0 Kudos
Message 7 of 9
(2,503 Views)

The "Spreadsheet string to array.vi" is returning a double dimension array in the way you were using it.

So you have to index the array to get only the dimension with the data.

But of course we can use it in a different way.

Just tell the "Spreadsheet string to array.vi" to return a one dimension array like in the attachment.

Paulo

0 Kudos
Message 8 of 9
(2,499 Views)

thank you, i get it! Smiley Wink

best regards,

 

peter

Labview 7.1 on Windows 2000
0 Kudos
Message 9 of 9
(2,497 Views)