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.


Photo

U12 and Mountain Lion


  • Please log in to reply
6 replies to this topic

#1 ScottC

ScottC
  • Members
  • 10 posts

Posted 30 April 2013 - 06:47 PM

I've seen references to OS X 10.6 in some of the documentation here. Has anyone gotten the software working under 10.8.3? I installed the Exodriver and ljacklm, apparently successfully. But when I try to run digitalIO I get Driver version: 1.200 libusb error: LIBUSB_ERROR_ACCESS U12 Firmware version: 0.000 libusb error: LIBUSB_ERROR_ACCESS DigitalIO (update) error 3: LabJack n not found I've seen posts from others reporting this error but no acknowledged solutions. Here's some info about my permissions: ScottC-371:~ scottc 504 $ ls -l /usr/local/lib total 7224 drwxr-xr-x 3 scottc staff 102 Sep 13 2007 X11 -rwxr-xr-x 1 scottc macports 826 Aug 9 2007 libdc1394.la -rwxr-xr-x 1 root wheel 95532 Sep 20 2012 liblabjackusb-2.5.1.dylib lrwxr-xr-x 1 root wheel 40 Apr 30 17:43 liblabjackusb.dylib -> /usr/local/lib/liblabjackusb-2.5.1.dylib -rwxr-xr-x 1 root wheel 104044 Apr 30 19:09 libljacklm.dylib lrwxr-xr-x 1 scottc staff 18 Apr 9 2009 libusb-1.0.0.0.0.dylib -> libusb-1.0.0.dylib -rwxr-xr-x 1 root wheel 230080 Sep 20 2012 libusb-1.0.0.dylib -rwxr-xr-x 1 scottc staff 189064 Apr 9 2009 libusb-1.0.a lrwxr-xr-x 1 root wheel 33 Apr 30 17:43 libusb-1.0.dylib -> /usr/local/lib/libusb-1.0.0.dylib -rwxr-xr-x 1 scottc staff 825 Apr 9 2009 libusb-1.0.la ScottC-371:~ scottc 505 $ ls -l /usr/local/ total 8 [email protected] 24 root wheel 816 Apr 30 19:09 lib [email protected] 3 root wheel 102 Feb 20 19:05 libexec [email protected] 3 root wheel 102 Feb 20 19:06 man All I need to use is the digital I/O. Any suggestions? I know the hardware's working because I just used it with an old G4 tower. I'm now using a Late 2012 iMac. And the OS sees the "Labjack U12" in the system profiler, under "USB 3.0 Hi-Speed Bus". When I plug the USB cable in the green light flashes fast a few times, goes off for around a second, blinks 1 or 2 more times and then stays on. I haven't found any messages in syslog. I did install the Exodriver first, using the package installer. Thanks- Scott

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 01 May 2013 - 02:03 PM

Install Exodriver and the LabJackHID kernel extension from the latest Mac installer I uploaded today:

http://labjack.com/s...ac-os-x-drivers

OS X 10.8 broke the LabJackHID kernel extension, but that is fixed now. That is probably the cause of your problem.

#3 ScottC

ScottC
  • Members
  • 10 posts

Posted 01 May 2013 - 04:52 PM

Install Exodriver and the LabJackHID kernel extension from the latest Mac installer I uploaded today:

http://labjack.com/s...ac-os-x-drivers

OS X 10.8 broke the LabJackHID kernel extension, but that is fixed now. That is probably the cause of your problem.



Excellent- it finds the U12 now. I think the unit is more than 5 years old. Should it still work with this software? It says
U12 Firmware version: 1.100


Thanks for the prompt help-
Scott

#4 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 02 May 2013 - 10:40 AM

Firmware 1.1 is the latest and will work with the software.

#5 ScottC

ScottC
  • Members
  • 10 posts

Posted 02 May 2013 - 03:33 PM

Firmware 1.1 is the latest and will work with the software.


OK, thanks. Unfortunately I've only gotten one thing to work (other than list-all), analog inputs. I grounded AI0 and got 0.0 as reported by examples/U12/u12AISample and in ljacklm's easyFunctions.

I'm trying to set a couple of digital outputs without success. The Labjack is connected to an Opto 22 G4PB8, where 0-3 are inputs and 4-7 are outputs. Here is the modified section of easyFunctions that I'm using:

/* Setting digital outputs */
	idnum = -1;
	printf("\nSetting digital lines D5 and D6 to output-high.\n");	

	channel = 5;
	writeD = 1;
	state = 1;
	error = EDigitalOut(&idnum, demo, channel, writeD, state);
	handleError(error, "EDigitalOut (D5)");

	channel = 6;
	idnum = -1;
	error = EDigitalOut(&idnum, demo, channel, writeD, state);
	handleError(error, "EDigitalOut (D6)");
	//Wait for 2 seconds 
	usleep(2000000);

	/* Reading digital inputs */
Am I using the right channel numbers? The second half of the 8 positions are outputs, and I'm trying to set the middle two of those to 1.

Is it possible that there's a 64-bit problem with the data types or something?

Thanks again
Scott

#6 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 02 May 2013 - 04:21 PM

I did a quick test with your code in 64-bits and it ran fine on our test Mac. Your code will set the first found U12's D5 and D6 lines to output-high. D5 and D6 are DB25 pinouts 6 and 7, so you will want to test the pinouts directly first to make sure they are output-high and then check your Opto 22 G4PB8 connections.

#7 ScottC

ScottC
  • Members
  • 10 posts

Posted 03 May 2013 - 07:28 AM

I did a quick test with your code in 64-bits and it ran fine on our test Mac. Your code will set the first found U12's D5 and D6 lines to output-high. D5 and D6 are DB25 pinouts 6 and 7, so you will want to test the pinouts directly first to make sure they are output-high and then check your Opto 22 G4PB8 connections.


Thanks very much for your help! My problem was I had my polarity reversed. Setting a state of 1 turns them off, which I didn't expect.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users