03-06-2008 09:58 AM
I think it works.
I used the example to define how to pass the master GPIB back and forth, and make the master temporarily act as an instrument.
Have yet to build the actual code, but the pieces look like they are working as we needed.
Thanks very much for the help.
WRT the loads frying. We are running about a 50% duty cycle when the test is functioning, and are close to the limits the loads will take steady state. If the process freezes, half of the loads will cook at 100% and exceed their ratings by quite a bit.
06-03-2008 05:17 PM
06-04-2008 04:57 PM
06-04-2008 05:49 PM
06-05-2008 08:05 AM
06-06-2008 01:55 PM
06-07-2008 06:23 AM
11-16-2011 09:11 AM
I got same problem about ONC/RPC on LabVIEW,and needs some advises about that.
I need to build ONC/RPC Server on a PXI controller with LabVIEW on WINDOWS XP,so the other PC can treat the PXI controller as a LXI Instrument,I have read the specifications of LXI and VXI-11 and some other papers,and have Search the NI forumn and LAVAG,so I download XML-RPC example,RPCGEN,windows SDK and so on,but seems helpless,and I found someone said that it is difficult to build ONC/RPC on windows,and Microsoft's RPC is different from ONC/RPC,I also downloaded the JAVA Remote Tea ONC/RPC library for windows,but I know nothing about JAVA.
It is said that the LXI Consortium has the code for ONC/RPC,but only valid for its members.
Which way mybe helpfull?Any reply is appreciate.
11-16-2011 10:06 AM
If you have a skil to write UDP and TCP socket programs using WinSock library in C/C++ language, it is not impossible to implement VXI-11 service code. The easiest way is spy the actuall client/server traffic using Wireshark software. RPC/VXI-11 is one of simple wrrapered protocols of TCP having some header (documented in VXI-11 spec) on both send/receive packet. Some difficulty is VXI-11 discovery function, which uses UDP port 111 as following RPC port mapper function. This can be also captured by Wireshark by spying UDP and TCP port 111 packet.
Also, the VXI-11 is not only the protocl used by LXI instruments. If your client software can use simple RAW TCP socket instead of VXI-11/RPC, your server code may be simple socket. The standard protocol of this is called SCPI-RAW having TCP port 5025, but there is no special protocol rule because it is simply a full-duplex raw socket streaming SCPI strings with 0x0A termination. This server type can be controlled from VISA clients using a VISA address as like "TCPIP::192.168.x.x::5025::SOCKET"
11-17-2011 08:10 AM - edited 11-17-2011 08:12 AM
Many thanks to Mokoto!
I have alread installed the Wireshark softwar and capture the packet,I have try to sent the packet data to port 111 using TCP,seems not work,I will try that again using UDP.
I found the packet data between PC and LXI instrument is in some format like this: Source IP Address + Destination IP address ...+...+ TCP port and something like this,hope I can make it work.
It seems that simple RAW TCP socket is much simpler, I wonder if the server code can be done just by LabVIEW using NI VISA?As the client code can be done using VISA.
I will try RAW TCP socket ASAP.
I will reply here if I make any progress.
Thanks to Mokoto again.Have a good day!