LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to receive data via RJ-45 like how data is received via RS-232?

I have just tried running simple data server.vi and simple data client.vi successfully, i am able to edit it and run it from reading text file data on the data server, able to receive it on the data client, however, i need to simulate data is actually sending line by line on my text file... but instead the whole text content is sent over in 1 cycle. how can i change the program so that it only send line by line and receive it line by line...

i attached my blockdiagram below.
0 Kudos
Message 11 of 35
(1,186 Views)

First, go to http://www.ni.com/serial/ and look at the USB form factor.

Second, might as well reuse an example you have already seen at http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=322435#M322435 and modify it very slightly.

 

0 Kudos
Message 12 of 35
(1,171 Views)
Hi, thank you for the help, but i only need to read a text file now, it's only a column of data so i think i don't have to do a what you have shown right? how do i wire it up if i want the text file to be showing line by line of data because there is thousands of line but i only a single line of data to be sent each cycle so that i can filter out only the data i need... thanks in advance!

Message Edited by Simmy on 05-17-2008 11:41 AM
0 Kudos
Message 13 of 35
(1,146 Views)

Modify the read example I gave you in a similar fashion.

If you don't do a write, why did you post your code for doing a write and if you only want to do a read, what is the porgram at the other end that will be doing the writing?

0 Kudos
Message 14 of 35
(1,137 Views)
pardon me! what i meant was i only need to write a single column that is to be read from a text file... sorry for the confusion, guess i have to brush up on both my LV skill and english 😞
0 Kudos
Message 15 of 35
(1,133 Views)
Use the Index Array function to get the column you want. That will eliminate the need for the inner for loop. In fact, if you are reading the same file over and over again, place the Read From Spreadsheet File outside the while loop.
0 Kudos
Message 16 of 35
(1,128 Views)
alright, i think i have a slight idea on what i have to do now, i have no access to labview software now as it is weekend 😛 will try it out once i am able to, hope you don't mind me asking so much question! you have been very very helpful to me in these past weeks! kudos to you~
0 Kudos
Message 17 of 35
(1,125 Views)
I have successfully send and received data from my text file, but there is a problem, does TCP/IP has function of termination character like RS-232? because my data are supposed to be read line by line as i need to filter out data that i do not need to use(send.txt) i have attached all my VIs and send.txt, wondering how i could do it, maybe i am doing it wrongly...
0 Kudos
Message 18 of 35
(1,084 Views)

Well, now you are using Read From Text File which it should be obvious that you are returning a single, long string. Why did you change from using Read From Spreadsheet? You can still use the Read From Text File. You would wire the output to String to Spreadsheet Array. Then you could wire the array to the for loop and use it's auto-indexing feature.

This is still pretty basic stuff. Have you done any of the basic LabVIEW courses?

0 Kudos
Message 19 of 35
(1,080 Views)
thank you once again, will try it out, actually i have done those basic courses, but i think it is due to stress that i end up making alot of mistakes, I'm working on this project alone despite my project group being a 3 man group inclusive of me, hence the pressure for me is massive as i need to show progress weekly, and this is only my 4th week using this program, previously i have zero knowledge of this program existence 😞
0 Kudos
Message 20 of 35
(1,077 Views)