From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to program labview

Solved!
Go to solution
Excuse me I am programming in labview an i2c sensor but I don't know how to program it in labview please help me
0 Kudos
Message 1 of 13
(3,622 Views)
Do you think you've provided enough information in your question for someone to be able to help you?
0 Kudos
Message 2 of 13
(3,609 Views)
Are you new to LabVIEW, the sensor or both?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 13
(3,594 Views)

How are you interfacing with the sensor?  You need to know that before you can start writing anything.  Maybe something like the USB-8451 or USB-8452 would work for you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 13
(3,589 Views)
The sensor has two pins one for the data and it is named sda and the other is clock and named scl my problem is that there are blocks in labview that corresponds to sensors working with i2c interface but I don't know how to use them because they ask for address of the sensor how many bytes I want to read and several things
0 Kudos
Message 5 of 13
(3,542 Views)
Solution
Accepted by topic author zuzu12

You might want to use the SPI and I2C Driver API from National Instruments:

 

https://www.ni.com/en/support/downloads/tools-network/download.spi-and-i2c-driver-api.html

 

Hope that this helps,

 

0 Kudos
Message 6 of 13
(3,522 Views)
The sort of information you are asking about should be in the sensor documentation.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 13
(3,511 Views)
Ok I will check that thank you
0 Kudos
Message 8 of 13
(3,467 Views)
I think it can be the solution thank you
0 Kudos
Message 9 of 13
(3,462 Views)
I need a help in programming a continuous servo and they told me I should use PWM. Please can you check the code that I made, is there anything else that I should add?
0 Kudos
Message 10 of 13
(3,402 Views)