08-18-2005 10:51 AM
08-19-2005 01:59 PM
08-19-2005 03:26 PM
Thanks for the quick reply.
1) There is only one object on my front panel (error indicator).
2) I tried introducting a wait timer in my main loop, but I still have the same behavior. I am using a TCP Listen.vi in my main loop. It had a timeout setting of -1 (wait forever), but now I have put timeout of 100ms with a loop wait of 200ms (had to put a case structure around the rest of my code with error status input FALSE). But I still have the same behavior. Do you know if TCP Listen includes internal wait time, or does it dominate the processor until a connection is established?
Using the RT System Manger, I see that my RT CPU usage never gets above 4%, and there is plenty of free memory.
I even stopped the VI using RT Sys Manager, switched execution target back to the RT target, and this time it took 2 minutes to release the front panel! So I think there is another problem not related to the VI structure. Could there be some MAX setting incorrect, or even an incorrect dip switch? I've checked as thoroughly as I know.
Some interesting behavior: if I target Windows and MODIFY the vi that is running on the RT target, then switch back to the RT engine, LabVIEW catches the discrepancy and asks if I want to update or abort. When I click OK (update), the new VI is loaded immediately and I have full control. It is like there were no VIs running on the RT engine, and I simply targeted it and loaded one. So this leads me to think that the problem is in the loading of the current VI from RT engine....
Thanks.
08-22-2005 05:16 PM
08-23-2005 01:39 PM
I have to jump in here and say I have seen much the same behaviour as Laine is describing.
It doesn't seem to have anything to do with the actual VI running on the RT system, it just seems that the system by which LabVIEW checks a running VI on the RT system versus it's corresponding file on the host PC, and then releases control back to the RT-targetted LabVIEW, takes a very long time. As Laine has mentioned, if the file on the host PC has changed, LV seems to pick this up very quickly and prompt you. But if it hasn't, the process seems to take much longer than it should.
Hope this info helps,
Jaegen
08-24-2005 11:01 AM
I am not using any startup VIs, nor am I operating in safe mode. My loop is running in High priority, but exhibits the same behavior in Time Critical.
Some additional test data on load times (includes request VI list, load VI and release control to user) is below. All loops use 100ms wait until timers unless noted.
Empty while loop = 3 sec.
While loop with 10 controls and 10 indicators, no operations = 3 sec.
While loop with 4 math operations and shift reg = 4 sec.
Timed loop with 1 add and shift reg = 12 sec.
While loop with TCP listen = 20 sec.
While loop with TCP listen, 5ms wait = 20 sec.
Example>TCP Communication - RT Engine.vi listening on TCP = 65 sec. (12 sec. to complete req. VI list)
Example>TCP Communication - RT Engine.vi transferring data = 85 sec. (20 sec. to complete req. VI list, 2 x wait on RT eng. to respond)
Thanks
08-25-2005
07:51 PM
- last edited on
07-16-2024
08:24 AM
by
Content Cleaner
Hi Laine,
Is your system connected via crossover network? Also, have you installed the LabVIEW 7.1.1 updates? The updates for LabVIEW Real-time fixed some latency issues in TCP communication in RT. Check out the readme file below that discusses the updates/fixes implemented in 7.1.1.
https://download.ni.com/support/labview/labview_rt/Updates/Windows/7.1.1/Readme_RT.html
Below are links to updating LV Development system. This needs to be done before updating LabVIEW RT to 7.1.1
http://download.ni.com/support/labview/updates/windows/7.1.1/readme.html
I know that this may take a bit of time to do. But we addressed some serious performance issues in this update for RT that may be the answer to your questions. Can you try this and let me know of the results. I was not able to get the same behavior as you, but I have 7.1.1 isntalled...I hope you get the same results as I do.
Have a nice day!
08-26-2005 09:04 AM
Thanks A! (can I call you "A"?)
I had no idea of this update - will try it and let you know the result.
10-07-2005 02:08 PM
10-07-2005 03:51 PM
I have not done this update yet, and may not with the new release coming out.
Whie targeting the host, I have been making changes to the RT code, saving, then targeting the RT system. It still takes 15 seconds to access the VI list, but finds the changed VIs almost immediately after that and aborts any VIs running on the PXI.
If I make the upgrade, I will post the results here immediately.