LabVIEW Interface for Arduino Discussions

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/2
3,533件の閲覧回数

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 件の賞賛
メッセージ2/2
3,112件の閲覧回数