05-29-2016 03:50 PM - edited 05-29-2016 03:52 PM
Hi everyone,
I have build a circuit to detect tissue oxygenetation and I have used the Arduino as my DAQ. I can successfully see my voltage values in Arduino. I want to send them to LabVIEW. I have already built the algoritm but I can't understand how to receive the information from Arduino. The examples didn't make sense either. My sensor data comes from two OPT101 photodiodes and they read the light from a multiwavelenght led. I installed VISA, LIFA etc. and they all seem to work. I have embedded my Arduino code into the LIFA file and uploaded to the device. What is next?
05-29-2016 04:05 PM
What examples are you referencing?
What communication protocol do you plan to use to send data from the Arduino to your pc? You've installed VISA. Does that mean you intend to use a serial communication?
Without knowing these answers, it's hard to advise you.
05-29-2016 04:09 PM - edited 05-29-2016 04:13 PM
All I want to do is, receiving the data from these sensors. (Via SC) and after passing them through some Mathematical algoritms, obtaining a Sinusoidal signal. I don't know how to implement the sensor data into LabVIEW.
05-29-2016 06:42 PM
If my understanding of your post is clear, you want to do the following:
Read data to sensors, process the data on the ardunio, send that data to LV. It may be:
Read data on sensors, send the data from the ardunio to LV, process the data on your PC.
In either event, you've figured out how to read the data with the arduino. Now, you're looking to send it elsewhere. To get it from the arduino to the PC, you need a communication path. Without knowing how you plan to do this, how can we help you? How are you planning to talk to the arduino? This is the key piece of information required to help you. Please, share it.
05-29-2016 08:32 PM
The simplest way to send the data from the Arduino to the PC is through the serial port. There are plenty of examples around here for reading the serial port, even from an Arduino. My recommendation is to convert the data into an ASCII format and use WriteLn. This appends an End Of Line character to the end of the data, which VISA can then use to know when the message is complete.
05-30-2016 01:45 AM - edited 05-30-2016 01:45 AM
Also remember one thing. In few application it is found the when Labview send command to arduino, arduino get reset.
This you can ensure by seeing the arduino LEDs. In arduino when reset switch is there, once pressed one LED on it turn off and on. if after sending command from labview if led is turning off and on i.e. arduino is getting reset and you will not receive any response
In that case you need one reset circuitary