02-12-2016 05:48 AM
Dear friends,
I am trying to implement a fuzzy logic controller. I built MISO type FLC. One input is set point which i will numerically control and the other input should be acquired as analog voltage signal value of my sensor which i acquired through DAQ. The output of the fuzzy controller is to be connected with DAQ and the value should be generated as voltage signal through DAQ.
I have two queries??
1. how to feed the acquired analog voltage signal value of sensor as one input to the fuzzy controller
2. how to generate the output of fuzzy controller as a voltage signal through DAQ
I hereby attached my .vi file. please go through it and give me an solution for this problem
thanks and regards
chandrasekar
09597748312
mds14m002@iiitdm.ac.in
....................................
02-15-2016 01:48 AM
Hi Chandrasekhar,
I went throuhg the vi which you have sent. As I understood there are three parts one is data collection from the sensor, next is the MISO Fuzzy logic and then analog output through DAQ.
Yuo can put the fuzzy logic also in a while loop so that the processing is also continously going on, and you need to send the sensor data to the MISO.vi using queues and and again send the data from the MISO.vi to the analog output using queues, by this you will have a lossless communication between the three while loops. Hope you understood what I said.
GO through this to understand more about queues. Try also seeing the shipped examples of LabVIEW for queues.
Regards
Yaskadeva
India AE
National Instruments, India
02-15-2016 10:16 PM
hi Yaskadeva
Thankyou very much for your reply....I will try that and inform you soon.......
02-16-2016 12:42 AM
Hi Chandrasekhar,
What is the version of LabVIEW you are using. I will do the code for the input part, you do the same for the output.
02-17-2016 12:00 AM
hi yaskadeva,
am using labview 2011...
regards
chandrasekar
02-17-2016 02:20 AM
Hi Chandrasekhar,
I have got your private messages, but please post things here, becuase if somebody searches for this, if you send private messages they will not be visible hear and things may seem incomplete for a thrid person.
Please find the vi, and make necessary changes mentioned there
02-17-2016 02:28 AM
thank you am checking that vi....
02-20-2016 09:57 AM
Dear Yaskadeva,
sorry for the delay.....
I connected the AI output loop as like you connected with AI input....
but i am getting error when i run the vi
the error message is 200609, 200279 related buffer size
the same error 200609 i got when i directly connected the fuzzy output with DAQ2
I hereby attached my vi please go through it...
I think i connected the queues wrongly........
thanks and regards,
chandrasekar
02-21-2016 11:44 PM
Hi Chandrasekhar,
What you have done is a trivial mistake, which I corrected in this vi, whatever is your project I feel that you need to learn the basics properly. Please use the below vi and let ,me know what is the status.
02-22-2016 11:50 AM
Dear yaskadeva,
Thanks for your kind reply...
In this vi also am still facing the errors like 200609, 200279 which are regarding buffer size...
To rectify that some methods are given in some online discussion. by using buffer node vi in task configuration control we can increase the buffer size....
but i can't able to take the output task from buffer node.vi
The above mentioned error occured even when i tried without queues also....expecting your reply....
regards
chandrasekar