LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in looping

Smiley Sadhi i can read the first data for the first loop. for the second time of loop it read back the first loop data. i attach the vi and the text file with this plz help.
Download All
0 Kudos
Message 1 of 7
(2,876 Views)
Your program is a mess. you seem to do everything indirectly via value property nodes, breaking all dataflow. This causes race conditions and completely unpredictable outcomes!
 
For example, have a look at the following code part.
 
 
Most likely, the array value will be read at position (2) before position (1) has a chance to update it to the current values.
(In the correct way, you would delete both property nodes and connect the two segments with a plain wire.)
 
Your entire code has way too many unecessary property nodes and sequence structures and is virtually incomprehensible.
 
Can you explain in a few sentences how the file should be parsed and what the output should be. I am sure all this could be done with code the size of a postcard and without any sequences and property nodes.
 
My monitor is not big enough to seriously troubleshoot this program. 🙂


Message Edited by altenbach on 05-15-2008 10:18 PM
0 Kudos
Message 2 of 7
(2,866 Views)
erm thks for the reply. i will change it . Actually the problem i facing with the loop is wen passing the 1st loops values and 2 time loop values to write in the database. for the first loop it works well. the second time it loop it write back the values tht in the 1st loop.
 
0 Kudos
Message 3 of 7
(2,859 Views)
the programme actually must read the text file and insert  the values to the database need help plz.
0 Kudos
Message 4 of 7
(2,850 Views)

Hi jeyanthi,

what about the solution from yesterday from the other thread?

Mike



Message Edited by MikeS81 on 05-16-2008 08:18 AM
0 Kudos
Message 5 of 7
(2,847 Views)

hi mike. i got the the solution redy.but now i have problem passing the values i get to the database.

i dont knw how to pass the 2loops value to the database. It keep on reading the first loops values

 

 

0 Kudos
Message 6 of 7
(2,841 Views)
Hi jeyanthi,
you have only one value in your first array. Why do you want to split the string with the sign ";"? I thought you need every line, so use code display "\n".
 
 
Mike


Message Edited by MikeS81 on 05-16-2008 08:37 AM
0 Kudos
Message 7 of 7
(2,834 Views)