01-19-2012 02:29 AM - edited 01-19-2012 02:29 AM
I wish to communicate and make a chatting program between PXI (server)and PC(client).
I confiigured the TCP/IP with the MAX and check with the Instrument I/O express, the TCp/Ip appeared in MAX, then I write in one side and read other side and then I connected a cross cable LAN cable between the two.
But I am unable to communicate:
1. I am using a cross-LAN cable, is it correct or just a direct LAN cable is better?
2. The PXI and PC has different IP address so should I use the same IP address.
3. Why i am unabe to configure?
4. I tried with example program but still the problem presist. The TCP example program do not read on ther side.
How should I communicate between PC and PXI?
01-19-2012 09:12 PM
a chatting program???
I am not understanding what you are trying to do.
Are you trying to use LAN to control PXI instruments?
01-25-2012 06:33 PM
01-19-2012 02:29 AM - last edited on 01-19-2012 02:29 AM
I wish to communicate and make a program between PXI (server)and PC(client).
I confiigured the TCP/IP with the MAX and check with the Instrument I/O express, the TCp/Ip appeared in MAX, then I write in one side and read other side and then I connected a cross cable LAN cable between the two.
But I am unable to communicate:
1. I am using a cross-LAN cable, is it correct or just a direct LAN cable is better?
2. The PXI and PC has different IP address so should I use the same IP address.
3. Why i am unabe to configure?
4. I tried with example program but still the problem presist. The TCP example program do not read on ther side.
How should I communicate between PC and PXI?
I wish to communicate between the PC and PXI send some text messages from PC to PXI vica versa.
01-25-2012 09:24 PM
I still don't know what you are trying to do.
If you are trying to communicate PC to PC, you do need a crossover cable. http://en.kioskea.net/forum/affich-10077-how-to-connect-2-systems-using-lan
01-25-2012 11:46 PM
Thanks for the link, I wish to communicate from PXI to PC or PXI to PXI
I have checked with cmd and ping xxx.xxx.xx.xxx the id of the other computer, its working well.
I wish to configure the TCP/IP in the MAX, use create new configure the VISA TCP/IP and fill in the IP address manual entry of LAN instument and finish
But the error appear Unable to open session to TCPIPO::xxx.xxx.xx.216::INSTR
Return status code: 0xBFFF0011
Status name: VI_ERROR_RSRC_NFOUND
Insufficient location information or device or resource is not present in the system.
The purpose of the VI which I want to make is if I write on the PXI the message can e read on the PC or vice versa.
01-26-2012 06:29 AM
If the PXI isn't an instrument, I don't know how exactly you are going to make it work doing what you are doing.
01-26-2012 06:47 AM - edited 01-26-2012 06:47 AM
The IP addressses shouldn't be the same in the first place. The PC has an IP address X.X.X.X and the PXI has an IP address Y.Y.Y.Y. When you connect with your PC to the PXI board, I guess you have to say that you want to communicate to the PXI on the address Y.Y.Y.Y
Do you communicate to a RT target? Could you maybe specify which NI hardware you have in the first place?
01-26-2012 05:57 PM
Thank you for your replies!
I am using NI PXI 8108 and General desktop for communication or NI PXI 8108 and NI PXI 8108 (two PXIs)
There is no RT target, I just want to check the example program using two systems through LAN. Please see the attached file.
But still the configuration of the TCP/IP in MAX gives error and I am unable to open the Test panel.
01-26-2012 05:59 PM
Both PXIs are NI 1031 with embedded controller NI PXI 8108
01-27-2012 01:55 AM
I am still trying to write and read from server and client but I get the Error 63, and Error 56.
Please see the attached.