Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202541

Re: Producer consumer with analog and digital inputs and outputs

$
0
0

Hi Robert,

 

How would changing the que to a 2D array help? As I understand, each element in an array has to be the same data type. I am having some success with converting my digital waveform to an analog waveform though I have not tested my code yet.

 

Also, I have a question regarding architecture: The way I want my program to work is:

 

1. Read from all input sensors.

2. Perform calculations on input sensors.

3. Update PID controllers using calculations from step 2.

4. Write results from step 3 to output sensors.

 

Do you think a producer/consumer architecture is the type for my program? Currently my program reads and write to sensors in the producer loop, so I guess the writing to outputs (step 4) would be done with data thats from the previous cycle.


Viewing all articles
Browse latest Browse all 202541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>