Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Getting Started with Software

  • Please log in to reply
1 reply to this topic

#1 Svoboda

  • Members
  • 1 posts

Posted 29 January 2013 - 06:40 AM

I need help picking the software for a U3. There is so much information on this site and with user guides that are hundreds of pages long, figuring out where and how to start is a challenge. I am hoping some kind soul will stear me in the right direction with some beginners code. I am good with hardware, not so much with software. I have done a lot of programming, but it was in assembly language a few decades ago. I have tinkered a bit with C++ and Visual Basic but am not proficient. If you give me a program, I can read it, and modify it, but couldn't write one from scratch. What I am trying to do is pretty simple, but I don't seem to be able to do it with LJLogUD. I currently have two projects. For the first one I want to take periodic measurement of an analog signal and a pulse width (later converted to RPM). Once I have the log file, I can do the rest of what I need in Excel. The second project is slightly more complicated. I need to log an analog channel and the time; but I also need to periodically set and clear a digital output bit. The period for doing this is much longer than the period between measurements. Does someone have a program I can start with? Preferably C++ or Excel Visual Basic. I have also downloaded DAQ Factory but am a bit intimidated by it. I need something simple to start with. Thanks in advance for your help.

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 29 January 2013 - 09:19 AM

For a LabJack programming standpoint, your needs are quite simple. You can do everything with about 5 functions:




eTCConfig() & eTCValues()

You should read the following 2 pseudocode sections:



You mentioned C and VB, and between those we like C better. Do you have a compiler you plan to use? If you have visual studio get the VC6_LJUD archive, otherwise you probably want the DevC_LJUD archive:


In the VC6 archive, there is an example called "U3_Functions" that calls all the functions you need to use. Beyond that, your needs (writing to file, looping, etc.) are just generic programming needs and not specific to hardware.

Start there, and then you can use the forum to post code snippets and get more help with specifics.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users