10-16-2006 02:43 PM
10-17-2006 02:05 AM
It is possible since I did it between a CompactFieldPoint and a host PC (in both way to transfert data from cFP to host and requests from host to cFP).
kehander a écrit:
Is it not possible for a VI running on an RT target to call a VI running on the Host PC?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
10-17-2006 09:33 AM - edited 10-17-2006 09:33 AM
Message Edited by kehander on 10-17-2006 09:49 AM
10-17-2006 10:48 AM
I took another look and thought I should try to get something clarified:
It seems to me there are two places to enable VI Server access on the Host PC: there's the Properties page for My Computer in the project, and there's the Tools->Options dialog.
If the TCP/IP is not enabled in the Options dialog, I get Error 63 (Connection Refused) right after call emb.vi starts executing, regardless of the setting in the My Computer properties.
If TCP/IP is enabled in the Options dialog but not My Computer, I get Error 66 (Connection Closed) after ten seconds.
If TCP/IP is enabled in both, I get a message stating that the specified VI server port is already in use and that the project cannot be started. If I change the port number in the Options dialog back to 3363, then I again get Error 66 after ten seconds.
Does any of this have something to do with my problem?
10-17-2006 10:59 AM
You've must have VI Server with TCP enabled otherwise you would get error 63 - connection refused. I think the problem is probably the "VI Server : Machine Access" settings don't have the RT targets IP in the list ("*" will allow all). On an RT target I think the default is VI Server disabled with a "*" in the access list, so all you need to do is enable VI Server which would explain why that worked for you. The default on Windows may be none or just the local IP which would explain why it didn't work. You may also have to enable some of the "Accessible Server Resources" on the VI Server : Configuration Page. I also had to change the path constants to sting constants in "call emb.vi" so that it would look for the VI in memory and not from disk. I was able to get it to work from an RT target to Windows. Another thing you can try is to do it from your Windows machine to itself by either typing in it's own IP or using "localhost".
-JR .A
10-17-2006 11:16 AM
10-17-2006 02:23 PM - edited 10-17-2006 02:23 PM
Message Edited by kehander on 10-17-2006 02:24 PM
10-17-2006 03:43 PM
10-18-2006 11:23 AM
10-19-2006 02:44 PM