LJP Posted September 11, 2020 Share Posted September 11, 2020 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 Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted September 11, 2020 Share Posted September 11, 2020 Matlab files aren't going to run in DAQFactory. For DAQFactory and the U3 you should review the DAQFactory - LabJack Application guide that is installed with DAQFactory. The script will be similar to Matlab but not identical. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.