AzeoTech

Administrators
  • Content Count

    5,671
  • Joined

  • Last visited

Everything posted by AzeoTech

  1. AzeoTech

    Importing picture

    There is not a way to directly import a picture into DAQFactory. However, you can copy and paste images into DAQFactory. You might need to resize your image with another program before pasting it into DAQFactory. Once you paste the image into DAQFactory, it becomes a symbol component. It can be a static symbol or you can animate/change the symbol based on a value. For example you could change the symbols location based on a value.
  2. A simple sequence such as the following will store the bits to an array in the variable Var.Binary. Var.Decimal = 255 Private.j = 0 for (Private.i = 7, Private.i >= 0, Private.i--) Var.Binary[Private.j] = TestBit(Var.Decimal,Private.i) Private.j++ endfor
  3. As LabJack Support mentioned, the easiest way would be to use original integer with the TestBit() function rather than the string. However, if you prefer to use the string, there is a way to do it with the Evaluate() and Mid() functions. For example: if your string is Private.strBinary and you want the third bit do something like this. Var.thirdbit = Evaluate(Mid(Private.strBinary,2,1)) The Mid() function returns a subset from the center of the string. From the above code it will look skip the first two characters (2) and then return a single (1) character. The Evaluate function converts the character from a string to a value that you can use in mathematical functions. You may or may not need the Evaluate function.
  4. Email functions are not supported in DAQFactory Express, although this is easily accomplished with a higher version of DAQFactory. The cheapest version to support Email functions is DAQFactory Base which retails for $399 USD. See the following link for a list of features for each version and their respective price. http://www.azeotech.com/dffeaturegrid.php You mention that you use eight channels for the voltage to fahrenheit conversion. Instead of taking up channels for this conversion you could do a conversion using CONVERSIONS: under the Workspace and applying it to the appropriate channel. Or another way to do it without using up channels is to do the conversion directly in a display component.
  5. AzeoTech

    Factory Express - playback

    With DAQFactory you can reload data from files to view it at a later date. Unfortunately this functionality is beyond the scope of DAQFactory Express. There is a sample on the Azetoech Knowledgebase that shows how to do this, but you would only be able to use this sample with a higher version of DAQFactory. The following will link you to where you can download the sample. http://www.azeotech.com/faq.php?do=article...le&articleid=76 A possible way around this (using Express) is using the Vchannels. You could save each batch of data within the program into Vchannels and then graph the Vchannels as you want to see them. The best way to do this is by creating a Vchannel (virtual channel) and then in the Event of your regular channel add code like this. V.MyVChannel = MyChannel[0] Everytime an new data point is read into MyChannel it will be saved into the Vchannel V.MyVChannel. Of course for every new batch of data you will need to create a new Vchannel and change the code in the channel Event. One other thing to note is that since you are storing all the data inside the program rather than in separate data files, the size of the program can get large.
  6. AzeoTech

    DAQFactory Express

    DAQFactory Express has been shipping with the LabJacks for over a year now, so if your LabJack is older than this it is possible that it is not on your installation CD and you should contact LabJack at support@labjack.com. If your LabJack is less than a year old, run the installation from your CD again and make sure you check the box to install DAQFactory Express. After the installation is complete, DAQFactory Express will show up as it's own program group under Start => All Programs => DAQFactory Express.
  7. AzeoTech

    Digital output issue

    The AddValue function is not used for writing values to output channels, it is meant for writing values to a channels history. To simply use code to set your output channel use the following: Dout1 = 1 If your output channel is a digital output this will set it to digital output high. If your outut is an analog output it will set it at 1 volt.
  8. AzeoTech

    Array index by time

    You could do this with a little bit of code in a sequence. Var.i = 0 Var.array_length = NumRows(MyChannel) while (Var.i < Var.array_length) Var.strtimestring = FormatDateTime("%H %M %S", MyChannel.Time[Var.i]) if (Var.strtimestring == "22 05 32") Var.index = Var.i break endif Var.i++ endwhile This code assumes data was taken once a second, so that a point was recorded on 22:05:32. Really this code would work better if you are reading your data faster than once a second so that you guarantee a point falling inbetween 22:05:32 and 22:05:33. This code also assumes that the array is static and that no new data is coming into the array at the moment.
  9. AzeoTech

    Just starting

    LabView is a full blown programming language and DAQFactory offers a non-programmable way to interface with your data. If you are not familiar with either program, I would recommend DAQFactory as the learning curve will not be as steep and you should be able to develop what you describe in no time. At the speeds and data rates the U12 offers the limitation is really with the hardware rather than either development zone. One thing to note with the U12 is that while streaming data you cannot execute any other commands without first stopping the stream. For example you mention streaming data while controlling an analog output. Doing this simultaneously with the U12 is not possible. If you are using command / response mode rather than stream then this would be possilbe however you lose speed that the stream mode offers. For more information on data rates see the following link. http://www.labjack.com/lju12datarates.html If you need the speed and the simultaneous control, I would recommend using the UE9 as this is possible with this device. For more on the UE9 see the following link. The UE9 also works just as well with both LabView and DAQFactory. http://www.labjack.com/labjack_ue9.html
  10. AzeoTech

    Synchronising Streams

    There is not going to be a way to get the read and the output to happen at the exact same time, but we should be able to get very close. First off, delete your sequence that includes the read (ADInput) commands as you don't need it. Next, in the Workspace click on your DAOutput channel. Select the Event Tab and paste the following code into the Event page. if (DAOutput[0] != DAOutput[1]) read (ADInput) endif Note that if DAOutput does not have any history, the first time it runs through the above code it will return an alert because DAOutput[1] does not exist yet. To avoid this you could initialize DAOutput to zero before you start the timed sequence. Actually, this should be done anyway or the first time you set DAOutput = 1, DAQFactory does not recognize that it has changed from anything so it will not make a read of ADInput. But if it changes from 0 to 1 then your read will happen. Your other option is to upgrade to a higher version of DAQFactory that does not have the sequence code limitations. The following link will give you more information about higher version. http://www.azeotech.com/dffeaturegrid.php
  11. The following link will direct you to a sample on the Azeotech Knowledgebase that will help you with Burst mode. There is a file there that you can download as well as step-by-step instructions on how it was created. http://www.azeotech.com/faq.php?do=article...e&articleid=160 We have not come across the problem you mention when trying to use burst mode. In all our testing, burst modes works as described. Try out the above sample and see if it works correctly for you or if it also delivers continuous streaming. If the above sample works properly for you, check your burst mode parameters under your command channel and make sure they are properly setup. If you continue to have problems we would be interested in what you are doing to create this problem.
  12. AzeoTech

    Temperature Control

    I added a second PID loop into the sample and saved it under the same FAQ topic where it can be downloaded. The file is called PIDSimple_Multi.ctl and it can be downloaded from the following link. http://www.azeotech.com/faq.php?do=article...le&articleid=92
  13. First question is are you using the U12 or the UE9 with your application? If you would like to send your file to support@azeotech.com I would be happy to take a look at it to see if I can troubleshoot it for you.
  14. AzeoTech

    multi analog channels

    DAQFactory can support four LabJacks. In DAQFactory under the Channel Table click on the Device Configuration button or go to Device Configuration under Quick on the main toolbar. Select LabJack U12 as your device. When the new window pops up click the Configure ID's button. If you have all four LabJack U12's plugged in you should see a serial number that corresponds to each one. Click in the ID column and give them ID's 1-4. Do not use zero as that is used for first found LabJack. Hit OK and then close the LabJack Wizard. Create a channel on each LabJack U12 making sure to use the corresponding ID number in the D# column of the Channel Table. Note that you can not use the same channel name for different device numbers. I suggest using something like AIO_LabJack1, AIO_LabJack2 and so on. Check to see if data is being read by going to the data Table under a specific channel name.
  15. It is possible to read in data from the EI-1050 sensor with DAQFactory. Make the connections as indicated on your sensor with the LabJack. Connect the enable line to +5V so the sensor is always enabled. You can change the enable later to a digital line if you want to disable and enable on command. Create two channels, and select Special as the I/O Type. Channel # 0 will be the temperature reading in degrees celcius and Channel # 1 will be the relative humidity reading as a percent. If you would like to view a simple sample of this use this link. The sample is available for download at the bottom of the page. http://www.azeotech.com/faq.php?do=article...e&articleid=135
  16. AzeoTech

    Loggin Interval? or ?

    Go to the Channel Table and change the Timing parameter on the channels. For example, 0.5 would have it read twice a second. We strongly recommend you go through the guided tour in the manual as it will go through these basics and only takes 30 minutes or so.
  17. AzeoTech

    DAQFactory Express

    Within the next few days you will be able to try DAQFactory Express by downloading the regular DAQFactory Trial. A dialog will appear on startup allowing you to select the version of DAQFactory you would like to try and Express will be an option. As for receiving a licensed copy of DAQFactory Express, we will be selling DAQFactory Express for $35 starting next week, or you can now get a free license with the purchase of a LabJack U12.
  18. AzeoTech

    Loggin Interval? or ?

    Alternatively, you can set the logging set into Fixed Interval mode. This causes the logging set to go out at an interval specified in the logging set and either take a snapshot of the last read value of all the channels in the logging set, or average all the data points that have accumulated on each channel over the interval. This mode is often nice when you need to get your data on a particular time interval, but is not as precise and in many situations can create time noise, i.e. noise in your signal due to noise in how precisely time is recorded. DAQFactory records time to the microsecond to keep this at a minimum, but using fixed interval mode bypasses this as the time logged is the time the logging set happened to go out and collect the data to log and not the actual time of acquisition.
  19. AzeoTech

    Loggin Interval? or ?

    When the "All Data Points (aligned)" option is selected (the default) in a logging set, all data is logged. The interval is determined by the polling interval to the device. So if you are reading the LabJack once a second, you will get a line in the log once a second. If you are reading the LabJack twice a second, you will get two lines each second and so forth. With this mode there is something called Alignment threshold, which by default is set to 0.05 seconds. This number determines how close two data points need to be to be considered happening at the same time. For example, lets say you are reading all 8 analog input channels with a timing of 1 and an offset of 0. It takes 20 ms (approx) to read the first 4 analog channels, and another 20ms to read the second. The second block with therefore have a time stamp that is 20ms later. Since the Alignment threshold is set to 0.05 or 50ms, all eight points will appear on the same log line. The problem comes when you try and read faster than 20hz. Lets say you are streaming 4 channels at 300hz. In this case the difference in time between consecutive is 1/300th of a second or 0.0033 seconds. With the alignment threshold set to 0.05, only one in every 15 data points will be written. To fix this, you have to set the alignment threshold smaller than the acquisition rate, or in this case, you can just set it to 0 since all the streaming channels will have the same time stamp.
  20. There are an infinite number of nice features that we could add to DAQFactory, but if we did, the program would be impossibly combursome to use as you would have pages and pages of options to do anything. Instead, we provide easy to use standard features that offer the more popular options, and then give you the ability to create sequences to extend the capabilities of these standard features. Using your example, a logging set offers many options for the time format, automatically splitting files, and several different logging formats. If you want to add the features you described, you would use a combination of logging sets and sequences. In the sequence, you would use "File." direct file access functions to create the necessary directory structure and specify the logging set name. DAQFactory would then take care of logging the data as it came in with the logging set. The File. functions you will probably want to use is File.MakeDirectory(). This will enable you to create your desired directory structure on the fly. Use the FormatDateTime() function to add year, month, day to the directory name. Then use Logging.MyLoggingSetName.strFileName to change the name of the file that the logging set is writing to. When you change this variable, the current file is closed and the new file opened, so you don't need to stop and restart the logging set.
  21. AzeoTech

    DAQFactory Express

    This download does not include the complete application. You must install DAQFactory Express from the LabJack CD before updating with this download. You are receiving this error because the files from the LabJack CD are missing.
  22. AzeoTech

    DAQFactory Express

    DAQFactory Express is currently only available on the LabJack CD. You must purchase a LabJack to receive DAQFactory Express. It is a special version for use with the LabJack and not publically distributed on our website. As I mentioned, if you want to see what DAQFactory Express does, just download the regular DAQFactory trial and note the limitations mentioned above in our earlier post in this topic, or buy a LabJack U12.
  23. AzeoTech

    DAQFactory Express

    DAQFactory Express is just a limited version of DAQFactory. To try it, simply download a trial of DAQFactory from www.azeotech.com. Here are the limitations: -Only 2 pages allowed -the following components: --text --panel --variable value --descriptive text --symbol --graph --button --edit box --multiline edit box --combo box -limit of 16 channels -limit to 5 sequences, each with a maximum of 10 lines -plus all the limitations of DAQFactory-Lite (i.e. no PID, email, networking, etc) Unlike the other versions of DAQFactory where features are controlled by the license key, DAQFactory express is a complete rebuild with the features fixed. The menus and workspace therefore do not show features of other versions of DAQFactory. All documents created in DAQFactory-Express will work in other versions of DAQFactory.
  24. AzeoTech

    DAQFactory

    The startup guide is located at: www.azeotech.com/dl/labjackintro.pdf
  25. AzeoTech

    Graph Scale

    If your axes are thawed, the graph should use the Scale From and Scale To values specified in the properties. But, until you have data in the graph, the scale might not display exactly these values. Once you have two data points, the scale should pop into the correct value. One other thing to watch out for is to make sure the bottom axis is set to Lin (Linear) and not Date/Time (the default) when creating an XY graph. Also, make sure the bottom axis doesn't have Use Time Width checked (also the default.)