I installed DV 3.1.8.3 on two different laptops yesterday. One works just fine, but the second one won't load any of the dashboards.
The first laptop let's me select dashboards from the dropdown and auto-loads the Default_DCX_07.dsh file just fine. It also let's me create dashboards and save them and select them from the drop-down just fine.
However, the second laptop is not working at all in relation to dashboard functionality (communication is just fine). If I go to Real Time Data Mode, I get all the PID's listed and I can add whatever I want to either a gauge or chart tab. When I save it though, it does not appear in the list of dashboards (but the file is present in the db directory). None of the default db's appear in the drop-down either. Only the option for <new dashboard> and the save icon are available.
I've uninstalled and re-installed and it doesn't change the behavior.
Any ideas??? I really need the second laptop for datalogging as the first is too small to easily navigate and view.
Dashboards won't load!
Moderator: mikel
RE: Dashboards won
The DataViewer builds a directory tree under My Documents and moves the default open/save directory there. On that laptop have you done something odd with permissions under your My Documents folder?
johnc <at> diablosport.com
I have full administrator rights for the folders. Here's something that may make a difference. The laptop is a member of a network/domain and as such has the "My Documents" folders for users mirrored on both the laptop and the server. When disconnected from the server all the files under "My Documents" are still available locally on the laptop and then are automatically synchronized to the server upon reconnect. This is built-in functionality that is part of XP-Pro & Windows Server 2003 - nothing special going on.
Is there any way to tell dataviewer to use the dashboards and log locations under "Program Files" instead of "My Documents"? "Program Files" are not replicated like "My Documents" are.
Is there any way to tell dataviewer to use the dashboards and log locations under "Program Files" instead of "My Documents"? "Program Files" are not replicated like "My Documents" are.
- Attachments
-
- Sync-Files.JPG (121.22 KiB) Viewed 4795 times
OK, here's the solutions for you.
It appears that you are pulling the location from the environment variable for %USERPROFILE%. While it is true that this is the location of the users profile, it is not always the location of the users data files or "My Documents".
If you pull the location from the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, then you can be certain to have the proper location for stand alone PC's, networked PC's and those that use file replication as well.
Here's a TechNet reference for it: http://www.microsoft.com/technet/prodte ... x?mfr=true
It appears that you are pulling the location from the environment variable for %USERPROFILE%. While it is true that this is the location of the users profile, it is not always the location of the users data files or "My Documents".
If you pull the location from the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, then you can be certain to have the proper location for stand alone PC's, networked PC's and those that use file replication as well.
Here's a TechNet reference for it: http://www.microsoft.com/technet/prodte ... x?mfr=true
I am using the SHetFolderPath Function with CSIDL_PERSONAL. This will return what Windows thinks is your My Documents folder. Windows could be getting that from the Registry setting you found, who knows.
johnc <at> diablosport.com
Are you calling this function with the flag SHGFP_TYPE_DEFAULT or SHGFP_TYPE_CURRENT? For a stand alone computer with no redirection, they will both return the same folder, but for a computer that uses redirection, SHGFP_TYPE_CURRENT will return the proper location and SHGFP_TYPE_DEFAULT will return the original/invalid location.johnc wrote:I am using the SHetFolderPath Function with CSIDL_PERSONAL. This will return what Windows thinks is your My Documents folder. Windows could be getting that from the Registry setting you found, who knows.
Using SHGFP_TYPE_CURRENT will work in all instances. Can you check this?
Huh, good catch, that could be the issue. Try this version and let me know if that makes any difference:
http://www.diablosport.com/beta/DataViewer_3.1.8.4.exe
http://www.diablosport.com/beta/DataViewer_3.1.8.4.exe
johnc <at> diablosport.com
Success!! Thank you! It works like a charm now!johnc wrote:Huh, good catch, that could be the issue. Try this version and let me know if that makes any difference:
http://www.diablosport.com/beta/DataViewer_3.1.8.4.exe