LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Manipulation

Solved!
Go to solution

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.

0 Kudos
Message 21 of 27
(768 Views)

thanks.

you have been a great help to me.

0 Kudos
Message 22 of 27
(760 Views)
 im doing serial com, can i have both the same program for the read and write?
0 Kudos
Message 23 of 27
(749 Views)

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.)

0 Kudos
Message 24 of 27
(740 Views)

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.

0 Kudos
Message 25 of 27
(737 Views)

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.

0 Kudos
Message 26 of 27
(723 Views)
You really should create a new thread for your new question. Ravens Fan isn't the only person who can help you. This is a large community, and you will get more help if you create a new thread so your question gets more visibility instead of being buried in the third page of this thread.
Message Edited by smercurio_fc on 04-09-2010 09:52 AM
0 Kudos
Message 27 of 27
(714 Views)