LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuously display waveform by arduino?

Hi,

I am doing my final bachelor thesis about controlling a simple robotic arm using EMG signal. I have done using the DAQ. Now I need to try Arduino as the replacement for the DAQ because I am doing this during the exchange period in another country, but when I come back home next month, I won't have the DAQ to continue the work.

I have bought Arduino Uno R3 board, tried Continuous Sampling example, and modified it several time. However, the chart doesn't display visualized signal as when I did with the DAQ (recorded video in the attachment). Could you please help me how to display the signal like that, and is it possible to do what I did with the DAQ by Arduino?

Thank you.

Regards,

Phuong NGUYEN.

Download All
0 Kudos
Message 1 of 10
(8,886 Views)

Put a waveform chart inside the same nloop you are using to acquire data.

hrh1818

0 Kudos
Message 2 of 10
(4,956 Views)

That is the first option I tried, but it didn't work. Here is my simple VI, just includes the acquisition part

0 Kudos
Message 3 of 10
(4,956 Views)

I don't have access to Labview 2012.  Please save a copy of your VI in labview 2010 format and add it to this thread.

hrh1818

0 Kudos
Message 4 of 10
(4,956 Views)

Here it goes.

It is quite similar to the example in LVFA. I just change to a chart

0 Kudos
Message 5 of 10
(4,956 Views)

The VI is still saved for version 12.  On the file menu, you need to choose "Save for Previous Version...".  I usually choose 9.0 because I've seen some people on here with that version.  If it's just basic Arduino stuff there should be no loss of functionality.  If for some reason it says you will lose functionality, try the next steup up until it works.

0 Kudos
Message 6 of 10
(4,956 Views)

I use the chart to display similarly as in the program with DAQ, but it still doesn't display the same way.

Here is version 9.0

0 Kudos
Message 7 of 10
(4,956 Views)

Remove the "Convert to Dynamic Data" VI and just wire the array directly to the chart.  I tested this with random numbers and it will scroll across the chart as in your video.  It may be a little more choppy but that will depend on your sample time for each chunk of data.

0 Kudos
Message 8 of 10
(4,956 Views)

That palette has been exsisted since I connected a express filter between arduino VI and the chart. I also have some problems with that express VI, but they are solved thanks to another post in the forum.

Thank you so much.

0 Kudos
Message 9 of 10
(4,956 Views)

So what was the issue in the end?  Maybe posting the previous VI with the solution will help others with continuous sample problems (saved in LV9 of course).

0 Kudos
Message 10 of 10
(4,956 Views)