Hello All,
I have a problem (Arduino, SPI, Labview, ADIS 16488) decribed in the following.
I have attached screenshot from the VI and from GUI Inputs. Addional you can find a screenshot from a logic analyser which is connected between the Arduino board and the sensor ADIS 16488.
For testing I want read out the Product ID from ADIS 16488. The expected result (answer from the sensor) is 16488dec (4068hex). If I start my VI the result in the "SPI Data 2 output" is 52, 54 in first cycle and in then it changed to 49 48.
Additonally there is a logic analyser between the Arduino board and the ADIS 16488 sensor connected and the result looks for ok (see screenshot).
Has anyone an idea what could be my problem?
Thanks
Jochen
sligo1972,
The SPI Read Write VI returns a byte array. Any data sent to or from your sensor will be one byte at a time and that is exactly what the VI returns. It is up to you to read the sensor data sheet to deterine how to convert the bytes into the correct format (decimal in your case).
Please post this on the forums so others can benefit from your findings as well.
Thansk,
-Sam K
Hello Sammy_K,
I want use the Labview in combination with Arduino Mega board. Additional there is a sensor "ADIS 16488" via SPI at the Arduino board connected.
Now I want use Labview with the Toolbox (Arduino, LIFA) for to read out signals via SPI.
I created a VI which initialized the communication to the board and SPI and send a request (Production ID) to the ADIS sensor. Additionaly I am using a logic analyser for to monitor the SPI communication.
My problem the the VI "Arduino SPI send receive" because I do not know what is going on here. I can send the correct data to the sensor and I get also an anwer from the sensor. From locking the data from signal analyzer the feedback is correct but inside the VI the information is strange.
Do you have any idea of how the information is coming back from the VI (-> SPI Data, output from VI). Do you know what is the format of the data?
The assume that the format of the SPI Data (input) is Decimal.
Pleas let me know if you need more information.
Thank you in advance.
Jochen
Post this in the forums by using the "Start a Discussion" link and it will be displayed on the tab labeled "Discussions."