09-15-2005 04:22 PM
I am writing a VI that reads several waveform files and displays them in a waveform graph for the user to check before he continues. This is executing on an RT target just because that's where the analog output hardware is; I don't need any deterministic timing, really. It takes a very long time, upwards of 10 to 15 seconds, for the waveform graph to refresh after the files have been loaded.The VI actually finishes (in the sense that the Run button changes from it's running state to it's stopped state), there's about a 15 second delay, and then the waveform graph updates with the loaded values. Is this expected behavior? I originally thought this was a disk IO bottleneck, but loading from disk is actually quite fast, about 20 ms. If I run the VI on the host machine, without targeting the RT hardware, it's very fast, so the delay is not inherent in redrawing the graph.
See the attached screenshot. The waveform that is being loaded is 1000 samples in size. I'm using Labview 7.1.1, and the RT hardware is an 8186 controller.
To make matters weirder, I tried using a different computer as the host computer, and it's much faster. That 10 second delay is down to 1 s or less. The only difference in the two hosts is that the one that shows the delay is an Semperon 2800 and the fast one is a P4 2.5 GHz or so. It seems odd to me that the host processor is the problem, since as you can see in the screenshot, the CPU of the RT target is maxed out for several seconds.
Can anyone shed any light on why this is so slow and/or why the two hosts behave differently?
09-16-2005 06:37 PM
09-19-2005 01:31 PM
@A.S. wrote:
Hi,That is quite strange behavior. From what I understand, the VI is running on the 8186 controller. If you target the controller from a Semperon-based PC, it takes 10-15 seconds. But if you target the controller from P4-based PC, its a second or so. Is that right?
Yes, that's correct.
If that is the case, then the only differentiating factor may be where the problem lies. It could be an issue with your ethernet controller/connections on your host PCs. Can you investigate the differences in the network cards, network setups, etc of the 2 hosts? Are they both using static IP or dynamic IP (DHCP)? Is the slower host on a busier network? Can you replicate this behavior in each PC if you use a cross-over cable?
In both cases, I'm connecting via a crossover cable. The P4 computer has only one network adapter, and the crossover cable is connecting to that. The Semperon has two; one goes to our regular network, the other goes to the PXI controller. The PXI controller has a static IP address on a private intranet (in the 192.168.0.0/16 block). The hosts have IP addresses in the same block, obviously.
I am currently working on finding another computer to swap out with the Semperon. If it behaves as well as the P4, then I'll just chalk it up to something strange with the Semperon and not worry about it any more.
09-20-2005 06:51 PM
09-21-2005 02:55 PM
09-26-2005 11:20 AM
@A.S. wrote:
Hello,I think the issue maybe that you have 2 NICs in your Semperon PC. Can you disable the one that connects to the external network using the Control Panel?...I think this is the source of the problem. Can you verify this please?A SahaNational Instruments
I think I've solved the problem, even thought I don't know what caused it in the first place. As part of trying to figure out what was wrong, I installed the Labview 7.1.1 Maintenance Release. I didn't realize at first that the Labview RT 7.1.1 Update was separate from that. So, I:
The good news is that I also put the PCI Ethernet card in the host computer and that does not seem to be a problem. That means I can connect the host to our main network, and put the PXI system on it's own private network, so the PXI system doesn't have to be exposed to the rest of the network
09-26-2005 11:56 AM
11-03-2005 12:37 AM