04-20-2006 12:23 PM
04-20-2006 02:14 PM
Hi
I don't know what exactly you have, maybe you could use MXI to connect PC with PXI (if you have that) then you will have very fast connection with measurement box.
You could also use MXI to connect one PXI system with other and I think this connection is very fast with minimum delay.
For network solution I have no idea what to I could propose to you at this moment.
bogdani
04-20-2006 02:31 PM
Funny, but this is similar to what I did some years ago!
I used a Windows based LV application to talk to a PXI chasis to monitor all of the inputs and outputs of an RT application and do all of the logging.
The RT used its own hardware to monitor and drive its outputs.
The only TCP traffic was just used to allow the operators to set values or change PID settings. Since that happened onyl when the operator changed things, the TCP traffic was minimal.
So to summarize
Windows watched and logged
RT read and control
TCP (between the two) only for changing set points and adjusting PID values.
That arrangement let us keep 7 PIDs closed at 100Hz while logging at 1KHz across 100 channels.
Ben
Discalimer: All of the above numbers are from memory and are subject to change the instant someone points out that was impossible 5 years ago.
The above mentioned application won NI Week "Best in catagory" and the write up is available here
http://www.compactpci-systems.com/articles/id/?195
04-24-2006 10:19 AM
04-24-2006 10:30 AM
Hi Sima,
I do not have the time to go into all of the details but I can offer a little help.
I am not sure of the spelling but you want to search this forum for "Naegel" (sp?) algorithm and you should find one of my threads from years ago.
If I remeber correctly, the questioner reported 80MHz trasfer rates between machines on a 100Mhz LAN.
The important point is that the TCP stack will not transmit WHEN you ask it to. It will attempt to optimize the network by delaying transmits until IT thinks it is a good time.
THe Naegel (sp?) algorithm lets you by-pass that feature.
You will also want to break up your packets into "optimal size" packets as well.
Like I said, look for my old thread.
Trying to help,
Ben
04-24-2006 01:06 PM
04-24-2006 01:35 PM - edited 04-24-2006 01:35 PM
Memory mode = ON
I think it was 7 PID loops on a 800MHz PXI chassis.
Memory mode = OFF
There was some other stuff as well. I can't say how CPU we were using because the tools to measure that in RT did not exist back then.
This link
http://digital.ni.com/public.nsf/allkb/b06d5e50f04f280b86256b3e0070ba2d
Gives you some benchmarks numbers for LV 6.
As far as tips and techniques....
Too many to list here!
The single best is "Skip if busy" can be used for a call of a sub-VI that is configured as "sub-routine".
This is fast and keeps to TC loop deterministic.
Ben
Message Edited by Ben on 04-24-2006 01:35 PM