LabJack and mpu6050


LJP

Recommended Posts

I need to collect data for vibration analysis. I have a windows laptop, labjack u3-hv, and a mpu6050 accelerometer. I was able to find a way to hook up to my raspberry pi 4 however there is no timer on this so i have no way of actually knowing my sample frequency. I know next to nothing about coding for daq. I was given example code for matlab that should work. When i run the code i get:

Opening U3
Unable to resolve the name LabJack.LabJackUD.DEVICE.U3.

Error in u3_MPU6050_Example (line 28)
        [ljerror, ljhandle] = ljudObj.OpenLabJack(LabJack.LabJackUD.DEVICE.U3,LabJack.LabJackUD.CONNECTION.USB,'0',true,0);
>> 

 

I was given 3 matlab files. One calls on the other two to run. I have all 3 in the same folder. When i run the code my labjack led does not flicker. I need to be able to collect this data so if you recommend different hardware or software that will work better for my application i am open to any input.

 

 

LJM_I2C_Utils.m

u3_MPU6050_Example.m

UD_I2C_Options.m

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.