LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need help with sending sensor data from Arduino based circuit to LabVIEW

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? 

0 Kudos
Message 1 of 6
(3,982 Views)

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.

0 Kudos
Message 2 of 6
(3,966 Views)

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.

0 Kudos
Message 3 of 6
(3,961 Views)

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.

0 Kudos
Message 4 of 6
(3,933 Views)

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.



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 5 of 6
(3,922 Views)

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

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 6
(3,904 Views)