05-20-2013 08:48 AM
@altenbach wrote:
@Celest1111 wrote:
Or can you please re-direct me to any place that discuss about simple LabView Chat??What is the purpose of this execise? There are plenty of good chat programs available, so it seem silly to roll your own.
I can see a purpose as a learning tool, for example if you simply want to get more familiar with LabVIEW programming and network communications in general.
The LabVIEW help and NI.com resources are pretty good. So if you have a question abaout datasocket, You should be able to find plenty of resources. Where have you looked so far? Did you find something that needs more explanations?
Here's a LabVIEW 2010 version of my above code. Warning: it is a simple refacturing of the existing code and I have not tested it. It simply demonstrates how to eliminate all local variables, duplicate diagram constants and unneeded sequence structures, all without changing the functionality from the old original program posted on the top of the thread.
Really Appreciate for your help. It works perfectly in LV 2010!!
Yeap, you're right. I need it to integrate into my school LV project. Still in learning stage. Thanks for your patience guide and help. Have a Nice Day
05-20-2013 11:28 AM - edited 05-20-2013 11:34 AM
@altenbach wrote:
What is the purpose of this execise? There are plenty of good chat programs available, so it seem silly to roll your own.
I can see a purpose as a learning tool, for example if you simply want to get more familiar with LabVIEW programming and network communications in general.
The LabVIEW help and NI.com resources are pretty good. So if you have a question abaout datasocket, You should be able to find plenty of resources. Where have you looked so far? Did you find something that needs more explanations?
Here's a LabVIEW 2010 version of my above code. Warning: it is a simple refacturing of the existing code and I have not tested it. It simply demonstrates how to eliminate all local variables, duplicate diagram constants and unneeded sequence structures, all without changing the functionality from the old original program posted on the top of the thread.
Sorry Althenbach,
I'm found a problem in this program when I use this program in two different Machine A and B.
When I start the conversation at Machine A first, I type "ABC" in Machine A. It successfully shown in Machine B. But when I reply "123" in Machine B. Machine A cant see the "123" message .
Vice versa, If I start the conversation at Machine B first, the message will succesfully shown in Machine A. But I use Machine A to reply. The message will not display on Machine B.
And I found that whoever started the conversation first, will have Read/Write Mode in 'DataSocket Server Diagnostic'. While another machine only have 'Read' mode.
Do you know what caused that problem?? Any solution on that please??
05-20-2013 12:10 PM
(Sorry, posting by phone)
I said I did not test, so most likely there are some bugs. Does the original code work or does it show the same problem?
Probably just needs some minor tweaks.
05-20-2013 12:21 PM - edited 05-20-2013 12:24 PM
@altenbach wrote:
(Sorry, posting by phone)
I said I did not test, so most likely there are some bugs. Does the original code work or does it show the same problem?
Probably just needs some minor tweaks.
The original code have the same problem too. I not sure is the program problem or my Labview setting problem (maybe I leftout some tweaking?). Because when I run it on same machine it works perfectly.
Is this the problem (picture below)?? Because the first machine who send out message will get the Read/Write Access mode and the message able to shown in another machine. Is there anyway to make multiple PC on (Read/Write) mode??
I have read lots of information but I couldn't figure out the solution..
Hope you can guide me on that. Really appreciate.. Thanks altenbach.
05-20-2013 12:53 PM
Looks like a permission issue. Check the "Datasocket Server Manager" settings.
By default, only the localhost can apparently write. (sorry, I am not familiar with all this).
05-20-2013 01:27 PM - edited 05-20-2013 01:28 PM
@OnlyOne wrote:
Hello,
if someone needs a labview-chatprogramm then check the attached file.
I made some tests with the datasocket and here is the result.
Installatation:
- Take two computers connected overLAN
- Start the Datasocket-Server on one Computer
- Change the IP-Adress in the config-TAB in both Computers
- Rename the "nicks" in the config-TAB in both Computers
- Give "write-access" to the second computer in tht datasocket-server-manager for the item
Any ideas how to set different colors in the history for each user?
I guess the problem is here... How to give "Write-access" to the second computer?? Can anyone please help me with that???
05-20-2013 02:41 PM
Did you run the "datasocket server manager" program as I told you earlier?
05-20-2013 07:55 PM
05-20-2013 10:38 PM
What settings?
05-20-2013 11:15 PM
I went to DataSocket Server Manager > Permission Groups > DefaultWriters > Add Host > put the client ip address..
I also tried another method too but still not working.
DataSocket Server Manager > Permission Groups > DefaultWriters > Change 'Localhost' to 'Everyhost'.
So did you try to run this LabChat program on different pc?? Is that working for you?
Thanks for your reply and help.