• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About siemantic

  • Rank
  1. siemantic

    EI1050 Digital Temperature/Humidity Probe

    Yep! I'm glad too :-))) Keep your probe buried I tried it for you... Now, this issue solved, others arise from what to do with the data retreived, but i'll fool around a bit and you will be the first to know when I'm totaly stuck again ;-) Thank you so much anyway ! Here's the promised threadlink: c'u'
  2. A warning ahead: I'm afraid, that you will hear from me often in the near future, since I truly need assistance. 'Sorry in case I'm wasting your time! OK, here's my issue at the moment: I am trying to create a quite simple time switch. I have setup 2 "Date & Time Edit" boxes. One is meant for setting the time to start (global ontime) and one is meant to tell how long the load is switched on (global duration). I understand that both are strings and therfore need to be converted in order to be used for further needs. The ontime is not so much of a problem because I figured out how to use the formattime function. But the duration variable does my head in! If I understand it right, the formattime function applied to this does return a numerical value, but it is based on the seconds since 1970 (am I correct?) so obviously it is not what I need. I need a way to set a value in a HH:mm:ss format and cnvert this to an absolute value -> between 0 and 86400sec. The edit box seem to be perfect for this as it is automaticaly limited to 24:59:59 (obviously it would be much easier to use an edit box into which a numerical value is entered, but if a the future user enters a value above 24h ( / 86400 secs) it would hang again. So in that case I would need a way to limit the value entered to a max of 24:59:59... Either way I don't know how to do it :-( Please Help! The code I want to use should look somewhat like this: global lamp_priority global duration global ontime while(1) // as long the start/stop botton lets the sequence run // the following loop should cycle if (systime() < ontime()) // assures load doesn't switch //until the desired time is reached waituntil (ontime()) endif while (systime() > ontime()) if (lamp_priority < 2) // this is what would be called a marker in some plcs. // the purpose is to switch loads in reverse order at every cycle lamp_1 = 1 lamp_priority = 3 // assures the other load switches first at next cyle(tomorrow) else delay (5m) // switches load 5 mins after the first lamp_1 = 1 endif delay (duration()) // i want to have the load on for as many hours as are set in the edit box lamp_1 = 0 endwhile waituntil (ontime() + 86400) // assures repetition at the same time everyday delay(1) //just to make sure it doesn't hang endwhile I have a second identical sequence running paralell to this one - except the values for the marker are reversed. This way the load starting first reverses every day. So much for the theory. I'm pretty sure you can see straight away why it doesn't work; please help me see too! Thanks in advance!
  3. siemantic

    EI1050 Digital Temperature/Humidity Probe

    OK, I have to correct myself: I have never done anything like this before. Some years ago, I did some Assambler programming (running lights, clocks,...) in school and some PLC stuff as well and was quite good at it, so I thought I'd get the logic of getting the LJ running fairly quick. I was WRONG. I checked out the sample you got from LabjackSupport and it even contains the exact scripting for the ei1050 probe (fyi: it contains exactly the code I quoted in my last post). But even with that I still can't get it up&running... As this is more of a LabJack issue and they wrote sample too, I will go to the LabJack forum with this issue but will - if you don't mind - post the threadlink here when the problem is solved. in any case: a big "THANK YOU" for taking me by the hand and guiding me through these darktimes ;-)
  4. siemantic

    EI1050 Digital Temperature/Humidity Probe

    Hi again! That's what I have thought. Standing by for what LabJackSupport says... Allthough it leads me to another question: what exactly is a pseudocode? I ask because it is mentioned everywhere, but I still don't quite get it! For example there is some of this mentioned in the manual for the EI1050 probe. I do get the general meaning, but have no idea how to translate this into DAQFactory / U3 comunication. Is it possible that pseudocode is some sort of windows related language? Maybe you could explain? Heres the code and some explenation from the manual: The LabJack UD driver for Windows (V2.48+) has special support for the EI-1050. There is 1 IOType and 4 special channels: LJ_ioSHT_GET_READING LJ_chSHT_TEMP // Used with IOType above. LJ_chSHT_RH // Used with IOType above. LJ_chSHT_DATA_CHANNEL // Used with LJ_ioPUT_CONFIG. LJ_chSHT_CLOCK_CHANNEL // Used with LJ_ioPUT_CONFIG. Go to for examples. The following pseudocode demonstrates retrieving measurements from a single probe: //Set FIO6 to output-high to provide power to the EI-1050. ePut (lngHandle, LJ_ioPUT_DIGITAL_BIT, 6, 1, 0); //Specify the data and clock lines. ePut (lngHandle, LJ_ioPUT_CONFIG, LJ_chSHT_DATA_CHANNEL, 4, 0); ePut (lngHandle, LJ_ioPUT_CONFIG, LJ_chSHT_CLOCK_CHANNEL, 5, 0); //Now, an add/go/get block to execute multiple requests. //Request a temperature reading from the EI-1050. AddRequest (lngHandle, LJ_ioSHT_GET_READING, LJ_chSHT_TEMP, 0, 0, 0); //Request a humidity reading from the EI-1050. AddRequest (lngHandle, LJ_ioSHT_GET_READING, LJ_chSHT_RH, 0, 0, 0); //Execute the requests. Will take about 0.5 seconds with a USB high-high //or Ethernet connection, and about 1.5 seconds with a normal USB connection. GoOne (lngHandle); //Get the temperature reading result. GetResult (lngHandle, LJ_ioSHT_GET_READING, LJ_chSHT_TEMP, &dblTemperatureKelvin); //Get the humidity reading result. GetResult (lngHandle, LJ_ioSHT_GET_READING, LJ_chSHT_RH, &dblHumidityPercent); I do have the Power and Enable Line set to 1 now. I also have the clock on high. And I get a reading on the dataline which - you guessed it - is 1.... Don't get me wrong! I'm not really stupid - just haven't done anything like this for a long time Thanks in advance!
  5. siemantic

    Getting into it / simple switching

    I had the problem "solved" before I read your answer... by trying the whole thing in the Factory Pro Trial Version. Obviously the timing there was set to 0. Works fine now! The visual appearance of the Pro Version is much better too. So I'll probably opt for the Lite Version. I seriously hope that all I do now will run on the light version - especially since I have allready incorporated quite a few objects (eg. LEDs, Edit Controls, Switches,...) that aren't available in Express. Anyway: THANKS for the help!
  6. Aloha! My further mission is to create an aquarium/terrarium control unit. But for now I'm just trying to get the hang of it and in order to do that I'm playing around with the good ol' "trial & error" method. Unfortunately the score is much higher on the "error" side of the count First of all, here's the equipment I currently use: U3-HV EI1050 Probe LJ compatible 8 relay card (from easydaq / connecting directly to IO8 to 15) and FactoryDAQ Express I stated my question regarding the EI1050 probe elsewhere already. The question here is probably far more basic: I just want to turn a relay on and off by pushing a button I created on a page. So I currently have a button set to toggle the value on a channel (set to DigOut) between 0 and 1. This has corresponding Display telling me wether the output is high or low. The Problem is: the related relay does switch, but only for about a second and then it turns off again, allthough the according channel value stays at 1. I also tried to write a simple sequence " Channel = 1 " and asign that to the action ofthe button - same result. I have a lot more questions - should I start new threads for each (so users might find it easier in the future) or simply keep adding them into one thread? Thanx in advance!
  7. siemantic

    EI1050 Digital Temperature/Humidity Probe

    Hi there! I'll spare all the excuses for being a newbie ... The above stated link is not valid anymore... allthough I'd doubt that it would help me any, since I have a U3-HV which doesn't offer the option "Special" in the "I/O Type" Section. I searched through both azeotech and labjack forums on how to get this probe running, but couldn't find anything of use for me (mind: I don't know scripting / can't even figure out where to write it into if I would be able to write it :-( I also read the datasheet of the probe - still no enlightment. I got the wiring ok, except that I used FIO7 for power&enable, FIO6 for the clock and FIO5 for data instead of the ones suggested in the probe manual. Because as far I know the AIO0 to AIO3 on the U3-HV are not configurable as DI/Os - is that correct? I would just want to get displays on a page showing me the temp/rel. humidity for now - that would get my spirit up greatly until I've learned more about that scripting stuff! Thanx in advance! Daniel P.S.: great products! great support! - both of you!