01-14-2021 04:02 AM
When I have to change configure Discrete Delay or even rewire a wire, the IDE takes about 30 secs to responding.
Also, if I open Windows resource manager I can see it shows LabVIEW is waiting for network IO? I can't get the point why LabVIEW is waiting for network IO? or maybe this is not relevant?
The VI is kind of complex, it is a custom FIR filter, and I prefer to have this function in one VI.
I also tried to close VI and reopen it, restart LabVIEW, restart PC, none of them really helps, maybe the first 3 or 5 wires respond better (also takes 5+ secs), soon the overall performance drops to unbearable.
01-14-2021 05:34 AM - edited 01-14-2021 05:35 AM
Are you connected to any target on the network?
Or is your compile cache in your user account folder on a server drive?
01-14-2021 05:56 AM
Not that I know.
I was editing the VI in local SSD, also, simply wiring a wire shouldn't trigger save operation, I suppose?
01-14-2021 07:08 AM
Wiring a wire will cause a recompile. Remember, LV compiles on the fly. I have had pretty dramatic pauses when my front panel has a lot of data in it. Sometimes it even gets tough to move stuff because of that.
01-14-2021 08:22 AM
@billko wrote:
Wiring a wire will cause a recompile. Remember, LV compiles on the fly. I have had pretty dramatic pauses when my front panel has a lot of data in it. Sometimes it even gets tough to move stuff because of that.
Precisely because of this "recompile-on-the-fly" means that just installing LV or having your VIs on an SSD will not help as LV automatically places your compile cache in your profile folder which, if it's not also on an SSD, will seriously slow things down.
Here in the options of LabVIEW, you can move the default data directory (Which is where LV puts your compile cache I think) to another drive.
01-14-2021 09:05 AM - edited 01-14-2021 09:17 AM
Thanks, I will give a try, and will it help if I set this data folder to a ramdisk?
---------------------------------------------------------------------------------------------------
I checked the data folder, seems there are lots of files, I only changed the temp folder to a ramdisk hope it will help...
And I have two SSD, no HDD, and 64GRAM on a 8 core i7, which should be far from enough for a simple wiring...
Also, I already set on the fly recompile level to 1, which doesn't seems to help.
01-14-2021 09:18 AM - edited 01-14-2021 09:19 AM
Oh no, not a ramdisk. That would be catastrophic. My understanding is that a ramdisk is not persistent..... My knowledge may come from previous decades (centuries if we want to be pedantic 👴), but I presume this is still the case?
Sure, once things are compiled, things would run nice and fast. But it would need to re-create everything every time you reboot, which will end up costing you huge amounts of time.
Make sure your default data folder is persistent.
OK; I see now that you don't have any HDDs, so that step I mentioned should be completely unneccessary. You should be fine with the directories at their default locations.
01-15-2021 02:19 AM
Nothing really changes after I set the temp dir to ramdisk. still very slow when I rewire the wire.
Can anyone give me some suggestions?
01-15-2021 03:26 AM - edited 01-15-2021 03:27 AM
If you do a "save all", does that maybe help?
Do you have classes with a lot of version history?
Have you excluded LabVIEW folders (DefaultData, your Code) from any anti-virus on your PC?
01-15-2021 09:28 AM
How much memory is being taken up by this VI? (Even if the VI itself isn't very complex, if you have arrays holding lots of data as either constants or front panel objects, it might take up quite a bit of memory.)