04-07-2010 12:38 AM
As I said. Don't use Insert Into Array. Use Build Array to put the data at the end.
Put the new updated array onto the wire going to the shift register. Your file gets updated, but the copy of that you maintain in memory doesn't get updated.
I think you are losing your first row of your data because you are failing to put the header row into the file. So when the file gets read at the beginning of the program, when the first row gets stripped out to eliminate the header, you are losing the first row of real data because the row it is trying to strip out isn't there. Is there really a reason that you need the header row in the file? I'm going to recommend a change where you don't put that in the file at all.
Also, you haven't said what is the purpose of the index column?
Here I cleaned up the file. I changed the timeout method I was doing to get the file read at the very beginning, to just reading the file before the while loop starts. I left the header in the array that is held in the shift register, and just used array subset to get the array without the header showing for the sake of the front panel. I did the new index calculation and replaced your Insert Into Array with the Build Array function.
04-07-2010 01:54 AM
thanks.
you have been a great help to me.
04-07-2010 07:37 PM
04-07-2010 11:46 PM
do you mind guiding me on tcp/ip? im kind of stuck on it.
i try the example give in the labview.
but only able to communicate if it send and receive on the same computer.
when i use 2 computer using lan connection (ethernet wire)
it cant send or receive when i enter the address(which i found from tool>option>VI Server.)
04-07-2010 11:49 PM
I am not an expert on TCP/IP.
Since this is really a new question, I recommend you start a new thread. That will get more attention and someone who has worked more with TCP/IP will see it and help.
If I had to guess, either windows firewall, or a router might be blocking communication on whichever port you are trying to use.
04-09-2010 04:05 AM
sorry i have found the tcp connection and now able to connect thru, but im only able to see the database in my client.
how am i to do a store into the database when 1 computer enter in the input string and the server respone by finding the data.
this is the attachment.
sorry for bothering you.
04-09-2010 09:51 AM - edited 04-09-2010 09:52 AM