• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Aro

  • Rank
  1. Aro

    Logging Notes

    Thanks for the help. I took option 3 from above because we needed the notes and channel data in the same file and using the File. functions to organize the data keeps the log file cleaner looking. One more thing we would like to do is to password protect or lock a copy of the log files so that there is a record of all the logs that cannot be edited or altered in anyway. I couldn't find anything in the user manual or in the forum on this, which leads me to believe it would have to be done external to DAQfactory, but I figured I'd ask just to make sure. Also, if this is not possible with DAQfactory, do you have any advice on how to lock these files? From my understanding Windows will not allow individual folders or files to be password protected, and even though it wouldn't be technically locked I found that DAQfactory cannot write log files to a hidden folder either. Thanks again for the help.
  2. Aro

    Logging Notes

    I am trying to figure out how to add notes to a logging file. I have a device with a motor that needs to be turned on periodically and want to log a few channels while it is running, but before the motor turns on I want to have a popup window with a few edit boxes in which certain notes can be entered (the date, the time, the name of the person turning it on, etc.) and be added to the log. I've created a string channel for each edit box and set the timing on them to 0 since I don't care about them until the motor is turned on. The problem is that the notes are only logged if they are entered after the logging has started. If I enter the notes before the logging starts nothing is logged except for the channel names. I though it had to do with the timing so I tried changing the timing of the channels but then it only logs 0s, and I've tried to use the read() command but that too only logs 0s. How should I go about getting these notes into the log file? Also, would this kind of periodic logging be better served by using an export set? Thanks a bunch
  3. So I took your advice and started a new CTL with no scripting of any kind, added an A to D channel and a corresponding variable value, and now everything appears to be working fine. The startup sequence I gave above is the only scripting in the old CTL and even with it disabled the problem persists, so if the problem isn't there where else could it be? Also, if we can't figure it out and I need to make a new CTL from scratch what lines from the above script should I include or exclude from the startup sequence? I have an idea of what each line does I'm just not sure why I need them, especially when new CTL works without any of it. Thanks and sorry for my lack of programming skills
  4. So I've jumpered the FIO to DAC0 and in the Control Panel things work fine. Whatever the DAC0 is set to the FIO reads the same thing. I then jumpered the FIO to VS and in the Control Panel it reads 2.5V, however, in DAQFactory it reads 0.22V. I'm assuming this means something is wrong in DAQFactory and I have a hunch it may have to do with our startup sequence (though I could be wrong on that too). Upon starting DAQFactory the following sequence runs: include("c:\program files (x86)\labjack\drivers\labjackud.h") using("device.labjack.") global ID1=1 ePut(ID1, LJ_ioPIN_CONFIGURATION_RESET, 0, 0, 0) AddRequest(1, LJ_ioPUT_CONFIG, LJ_chAIN_RESOLUTION, 12, 0, 0) AddRequest(1, LJ_ioPUT_AIN_RANGE, 0, LJ_rgUNI5V, 0, 0) GoOne(1) This was copied from another application using a U9 and was written by an engineer that is no longer here, which is unfortunate since she was the competent one when it came to programming. Any other suggestions? Again, thanks for all your help.
  5. I am using a LabJack U3-LV with an LJTickInAmp to read temperatures from a Type T thermocouple. The value in the LJ Control Panel shows a voltage of 2.5V when no thermocouple is connected and 0.4V when a thermocouple at room temperature is connected. In DaqFactory, however, the readings are 0.02 with no thermocouple and -2.1 with a room temperature thermocouple (this is without any conversions on the channels). It is my understanding that the Control Panel and DaqFactory values should be the same, so what am i doing wrong? Also, shouldn't the voltage read close to 5V without a thermocouple attached? Thanks in advance
  6. Thanks, that was simple. I didn't realize you could put if statements directly into the component expression. One more thing though, the unit (oC) is still added to the end of "OPEN". Is there a way to get rid of this when temp[0] < -300?
  7. I'm a little new to DAQFactory and programming in general so forgive me if this is simple. I have a device with a number of thermocouple jacks for plugging in thermocouple probes, but not all of them are used for some operations. When no probe is connected, the value displayed (after the conversion is applied) is around -170,000 oC. My question is what is the easiest way to get the display to read "OPEN" or "NO TC" when no thermocouple is attached to the jack, but display the temperature as normal when there is a thermocouple connected? Is there a way to do this without having to run a sequence for every reading? Thanks for the help.