« Close

Datasheets and User Guides

App Notes

Software & Driver

 

3.4 - LJlogger

LJlogger sends and receives data in command/response mode by making 2 DLL calls to “AISample” and 1 DLL call to “AOUpdate”. It is capable of logging data to disk (2 Hz max) and performing various actions on trigger events.

The first column in the data file is a timestamp of seconds since midnight January 1st (Universal Time), 1904. The default time format in Microsoft Excel and Open Office Calc is days since 1900, so to convert divide by 86400 (seconds/day) and add 1462 (days from 1900 to 1904). To convert from Universal Time to local time, subtract the difference in days, so for Colorado, USA, we would subtract -0.291666667 (7 hours divided by 24 hours/day).


Figure 3.4-1. LJlogger

The main window for LJlogger is shown in Figure 3.4-1. The white colored items and the “SDX” buttons are controls to be edited/selected by the user. The grey colored items are indicators which display various information about the LabJack. Clicking the button labeled “Save Panel Settings” will save the current values of the controls as the default values.

If SDX is activated for a given analog input, the corresponding SDX DLL will be used to determine the scaled data. Users can make their own SDX DLLs (see the source code for more information), to provide more complex scaling or scaling that depends on other analog inputs.

Clicking the “Configure” button shown in Figure 3.4-1 brings up the window shown in Figure 3.4-2:

  • Working Directory: This is the directory where data and configuration files will be written.
  • Data File Name: Determines the name of the data file to which data will be written. New data is appended to the end of this file.
  • Data File Write Interval: Determines the interval at which a new row of data will be written to the data file. Minimum of 0.5 seconds.
  • HTML Write Interval: Determines the interval at which the HTML file is rewritten.


Figure 3.4-2. LJlogger Configuration

Clicking on the “Internet Setup” button in Figure 3.4-2 brings up the Internet configuration window shown in Figure 3.4-3. Basic customization of the HTML file can be done by clicking on “Advanced HTML Configuration” which brings up Figure 3.4-4.

Clicking on the “Trigger Setup” button in Figure 3.4-2 brings up the window shown in Figure 3.4-5.


Figure 3.4-3. LJlogger Internet Configuration


Figure 3.4-4. LJlogger HTML Configuration


Figure 3.4-5. LJlogger Trigger Configuration

Figure 3-9 shows 9 example triggers:

  • Trigger #0: If the scaled data from analog input row 7 (Figure 3.4-1) is greater than 5, then set AO1 to 5 volts. Once triggered, there is a 10 second delay before it can be triggered again.
  • Trigger #1: If IO3 is high, set IO2 high. Reset delay is zero so this trigger can occur every iteration (every 0.1 seconds) if IO3 is high.
  • Trigger #2: If D15 is low, set D14 low.
  • Trigger #3: If the count is greater than 10,000, set IO1 to an output.
  • Trigger #4: If it has been 3000 seconds since LJlogger started, set D13 to an output.
  • Trigger #5: When the PC’s clock is at 15 minute intervals, the status LED will be turned off and an email will be sent.
  • Trigger #6: Calls FunctionX from function1.dll. If the function returns True, reset the counter. Users can make their own FunctionX DLLs. See the source code for more information.
  • Trigger #7: Calls FunctionX from function2.dll. If the function returns True, stop writing data to file.
  • Trigger #8: Calls FunctionX from function10.dll. If the function returns True, write 1 row to the data file.

6 comments

<sigh> this does not work either... the message displayed is "An error occuresd loading VI'Semaphore Core.vi' LabView load error code 21: an external subroutine required for execution could not be found.

 

And yes, the LabView components all install corectly and I have rebooted since then just in case.

Open Control Panel->Programs and Features, and find the National Instruments Software, what version is installed?  In the not-too-distant past the installer was changed to use the LV 7.1 runtime engine, but it's possible that some U12 .vis were not re-built on the 7.1 core. 

Sure enough ... the NI LabVIEW Run-Time Engine is version 6.0.2

 

So whats the fix?

You can download the 7.1 runtime from NI.com, searching for LabVIEW 7.1 run-time engine.  Or use this direct link
http://files.labjack.com/utilities/LVRunTimeEng.exe

Do you have the installer that you refer to -- the download page only has a link the the old installer bundled with the LV 6 run time --- which implies that there might be a mix up with the modules wanting the 7 run time??