LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert a DAQ assistant in producer consumer vi

Hi,

 

I am using a DAQ assistant to receive the measurements in the 10 digital ports.

Hence I use the DAQ assistant icon in the vi s to get these data in to labview.

Now I require it to convert these digital values from DAQ assistant into analog( this i have done )..

Thse analog values are to be taken one at a time for further processing.

I am trying to use this produces consumer loop for it..http://decibel.ni.com/content/docs/DOC-2431

 

however i dont know where to fit in the daq assistant .

Do i still need the DAQ create channel , sample clock etc?

or do i simply place my daq assistant in the place of the create channelDAQ icon?

 

thanks for any help..

 iam completely confused as to what to do with it!!...

 

Regards,

 

ruser

0 Kudos
Message 1 of 3
(3,208 Views)

Hi Ruser,

 

For this type of architecture and application, I would not recommend using the DAQ Assistant express VI. Instead, I would suggest using the lower level DAQmx VIs as is shown in the producer/consumer loop example. Using the DAQ Assistant replaces the need for using any of the lower level DAQmx VIs e.g.. Create Channel and Sample Clock and is useful when getting to grips with DAQ. However, you can achieve far greater performance and versatility when uisng the lower level DAQmx VIs.

 

In order to advise you further, I need to better understand your application. Could you upload me your current code.

 

Best Regards,

 

Christian Hartshorne

Applications Engineer

National Instruments UK 

0 Kudos
Message 2 of 3
(3,194 Views)

Hi,

 

Thank you for the suggestions..

i am sending one vi here..

this is my basic vi which gets the data from the DAQ and converts it into data ( angular info) we require ie angular position data of lower and upper encoders. This is a continuous real time prcess, which will stop when we press stop in the vi.

Now i want to take the a set of data (input and output) each, send it to a vi which will receive this set of data; process it and repeat this for the second set of data etc..

I am also attaching the lvm file . which is the data we are saving now.

 

The first attachment is the vi where i am getting the data.

 

The second attachment is the lvm data file.

 

 

Thanks.. I would appreciate any help here...

 

ruser.

Download All
0 Kudos
Message 3 of 3
(3,165 Views)