LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output data when converting labview vi into matlab mex functions

Morning AdamB,
I now understand what you mean..and as a result i have removed the case structure.  But now i have 2 other question regarding it...let me apologise first if i am asking too many questions but this needs to be finished b this friday. Also thansk for the suggestion of the courses.i will definitely look into it but cant do it right now due to the deadline.
back to the questions then
1) this is something i just realised...the feedback loops that i have used ...they will actually transfer the data to the next loop iteration..but my each while loop executes its subdiagram untill it reads the entire scan of about 120000/sec. that would mean all the processing will happen after 1 second delay....
2) there actually might be a possibility of overwriting of data in the feedback loop after each read hence the fft might actually be done for a part of the data instead of the complete data.

For that case i am thinking of using a while loop inside another while loop so that feedback information is processed without the delay and it also takes care of the overwriting concern?

Also what are producer consumer templates?i cannot process data when the computer is idol..it has to be done parallely..

Please suggest
0 Kudos
Message 11 of 13
(738 Views)
oh no ..aoplogies...i just figured out after doing the highlighted execution that my questions regarding the feedback loop dont arise. the loop takes care of it. but still
what is producer consumer template?

thanks
manuj
0 Kudos
Message 12 of 13
(732 Views)

Hi,

 instead of starting with a blank vi, try the New... button on the main screen (or File->New...)

you should see a dialog box pop up with lots of shipping templates that you can start from.

The producer consumer architecture (or design pattern) is a kind of master slave setup with the producer running at a different rate to the consumer. For more detailed information, please visit the following link :

http://zone.ni.com/devzone/conceptd.nsf/webmain/C54BADADD8BBDE4286256C5200533B80

(Can get to it by going to http://www.ni.com and searching for

producer consumer labview

in the search box top right of the screen)

Hope that help

Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 13 of 13
(714 Views)