Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to connect the output of fuzzy logic controller to the DAQ to generate the analog output voltage signal

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 

 

 

 

 

 

 

 

 

 

 

 

 

 

....................................

 

 

 

 

 

 

 

 

0 Kudos
Message 1 of 14
(5,617 Views)

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

Regards,
Yaskadeva
India AE
National Instruments, India

There are only two ways to tell somebody thanks: Kudos and Marked Solutions 😛
Message 2 of 14
(5,567 Views)

 hi Yaskadeva

       Thankyou very much for your reply....I will try that and inform you soon.......

0 Kudos
Message 3 of 14
(5,543 Views)

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.

Regards,
Yaskadeva
India AE
National Instruments, India

There are only two ways to tell somebody thanks: Kudos and Marked Solutions 😛
0 Kudos
Message 4 of 14
(5,533 Views)

hi yaskadeva,

           am using labview 2011...

 

 

regards

chandrasekar

0 Kudos
Message 5 of 14
(5,516 Views)

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

Regards,
Yaskadeva
India AE
National Instruments, India

There are only two ways to tell somebody thanks: Kudos and Marked Solutions 😛
0 Kudos
Message 6 of 14
(5,509 Views)

thank you am checking that vi....

0 Kudos
Message 7 of 14
(5,506 Views)

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

0 Kudos
Message 8 of 14
(5,440 Views)

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.

Regards,
Yaskadeva
India AE
National Instruments, India

There are only two ways to tell somebody thanks: Kudos and Marked Solutions 😛
0 Kudos
Message 9 of 14
(5,419 Views)

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

0 Kudos
Message 10 of 14
(5,408 Views)