10-24-2019 12:10 AM
Im japanese Student
I want to run this project with a gyro sensor with two axes instead of three, but I get error code -363011. Please tell me where to change.
10-24-2019 12:40 AM
Is there any information associated with the error code? Searching in my LabVIEW installation tells me it is undefined, but perhaps the myRIO drivers add some additional error codes.
By information, I mean a string that would appear together with the Error Code if you connected an Error Indicator.
The project you attached uses a myRIO together with a particular sensor (L3G4200D, according to the comment on the block diagram). It passes commands and flags that are presumably specific to this device.
If you have some different accelerometer or gyroscope, I suspect you will need to rewrite most of the block diagram constants, and potentially a lot more, depending on the new sensor.
So, which sensor are you wanting to use? If possible, please link to a datasheet or manual.
Are you still using a myRIO device?
10-24-2019 01:05 AM - edited 10-24-2019 01:06 AM
Use myrio.
The data sheet was in Japanese because it was made in Japan.
I translated it but it is difficult to see.
10-24-2019 01:18 AM
10-24-2019 01:48 AM
Thank you
This is the VI I am currently using
10-24-2019 01:52 AM - edited 10-24-2019 01:54 AM
Hi raimu,
I think you should start with a new project, or a project that gives an Analog Input example.
The gyroscope project you attached to your first project won't help you at all for this measurement.
As GerdW said, you need to make an analog measurement of the OUT pins from your sensor.
Once you have done that, you can scale the measurement using the information in the datasheet (Sensitivity: 0.67mV / deg / sec)
The myRIO has several +5V outputs that perhaps could be used as a power source for this sensor (the sensor does not look like it should draw very large current, and the myRIO has a relatively generous 100mA output current for the 5V supplies (per connector)). If this doesn't provide enough current, you'd need to use a separate power supply.
As a side note, I found the following link for an English-language datasheet of sorts: https://www.elecrow.com/download/ENC-03.pdf
It claims to use "low current", but doesn't actually give a value (neither did the original Japanese datasheet).