LJLog/Stream Working Directory | LabJack
 
« Close

Datasheets and User Guides

App Notes

Software & Driver

 

LJLog/Stream Working Directory

The working directory is where LJLog/Stream stores data files and a couple config files. You must have read and write access to the working directory.

The location of the working directory for each application is stored in the Windows registry in:

Computer\HKEY_CURRENT_USER\SOFTWARE\LabJack\LJxxxxxx

Every time you run LJLog/Stream it checks the Windows registry for the location of its working directory. If it does not find this entry in the registry (i.e. you have never run the program before), or if you click Change Working Directory, it pops up a window asking you to select a directory. The default location when this window first pops up is the current user's Documents directory, which typically looks like:

C:\Users\joey\Documents

After navigating to the desired directory in the pop-up window, click Select Cur Dir at the bottom-right.

Not sure where your working directory is?

A.  Click Change Working Directory and it will show the current location.

B.  Click Change Working Directory and set the directory to a location you can find.

C.  Select Write To File and the Current Data File indicator will display the path of the working directory.

D.  Note the location and name of the data file from step C above, open Windows File Explorer, and navigate to that location to confirm it is there.

E.  Note the name of the data file from step C above, open Windows File Explorer, navigate to the root of your hard drive (c:\), and search for the file by name.

F.  Run RegEdit to look at the registry entry.

 

One thing to watch for is sometime Windows can be tricky with locations. In the Current Data File you see one location, but you can't find that on your hard drive (step D above) and when you search for the file (step E above) you find it is in some different strange Windows folder. This is related to Windows permissions complications. A possible solution is to make a new simple directory (e.g. c:\data), go to the properties for that directory and make sure it is writable and readable, and then select that directory as the working directory.

2 comments

krishna's picture

Hello,

I use my U6 in a laboratory for various uses. One day I could measure force, another day I'll measure temperature on a different experiment. I usually save my data and configs in separate folders. But each time I start up LJLogUD, it pulls up the last used configs. If I want to use a different set of configs from another test, is there an easy way to load those configs (channels, ranges, scaling equationes)? My current work around for this is to copy paste configs into the last known folder (if I remember it). Am I missing somehting here? 

LabJack Support's picture

That's one way to do it.

You could also create a folder for each experiment and put a renamed copy LJLogUD.exe in each of those folders. For example, you could use the following folder structure:

C:\experiment_force\LJLogUD_force.exe
C:\experiment_force\(force experiment config files here)
C:\experiment_force\(data files)
C:\experiment_temp\LJLogUD_temp.exe
C:\experiment_temp\...

Then LJLogUD_force.exe and LJLogUD_temp.exe each keep their own working directory.