U12 and Mountain Lion
Posted 30 April 2013 - 06:47 PM
Posted 01 May 2013 - 04:52 PM
Install Exodriver and the LabJackHID kernel extension from the latest Mac installer I uploaded today:
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-
Posted 02 May 2013 - 10:40 AM
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?
Posted 02 May 2013 - 04:21 PM
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