LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA-Multiple Tasks Simultaneously with Arduino MEGA

I want do following:

1. Set DO and DI lines to monitor status of 3 SPI devices

2. Acquire signals via the AI continuously (3 sensors- temperature, humidity and light): can be finite AI - 500 Hz , 500 samples per channel but do it continuously, until VI is closed.

3. Control a 7 segment display via SPI which displays a specific task for a short while and changes the task. It consists of 8 tasks which repeats periodically.

Display 0 for 200 ms, display 1 for 200 ms and so on and repeat this until stopped.


Is it possible to do this all simultaneously?


An example will be a great help.


Thanks

RY

RY
0 Kudos
Message 1 of 2
(3,446 Views)

Generally, it depends on your definition of 'simultaneous'.  If you are interpreting the definition as literal, then the answer is 'No' to all of the above.

You cannot use SPI devices simultaneously because they all use the same Rx/Tx lines.  This means that you have to do them sequentially.

The continuous acquisition will only work for a single analog pin (in LIFA).  I cannot remember if you are able to send commands while you are acquiring data via this method but I think not.

0 Kudos
Message 2 of 2
(3,025 Views)