LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the data acquired by DAQ and substitute the data to a calculation in LabVIEW and then output the result through another line of the DAQ?

Solved!
Go to solution

Dear ALL,

 

If I got data continuously from AI0 of DAQ, now I hope to write a calculation with the data in LabVIEW with Numeric function, and then I can get results from the calculation through the output of DAQ.

 

Is it possible? how to deal with it?

 

Thanks!

 

Best.

Jason

0 Kudos
Message 1 of 8
(3,315 Views)

Hi Jason,

 

Is it possible?

Yes.

 

how to deal with it?

Read your analog input.

Calculate the needed output value.

Output that value using an analog output.

 

Do you have a specific problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(3,311 Views)

Thanks for the rapid reply!

 

I got 4 lines of voltage data through AI0~AI3 from the DAC. Next, I hope:

 

1.calculate the data with a mathematical formula inside LabVIEW and output the result through AI of DAQ or

 

2.use the data acquired by AI0~AI3 as the input of a new VI created by multisim and then output the result from the new VI.

 

Could you please show me how to deal with the above problems? It would be better if there is a snippet or example.

 

Thanks again! I am grateful!

 

Best,

 

Jason

0 Kudos
Message 3 of 8
(3,307 Views)
Solution
Accepted by leo321

Hi Jason,

 

1.calculate the data with a mathematical formula inside LabVIEW and output the result through AI of DAQ or

Write down your math formula on a sheet of paper.

Then implement this formula in LabVIEW.

Btw. with an AI you can only read analog data from your DAQ device. To output data you need to use an AO channel!

 

2.use the data acquired by AI0~AI3 as the input of a new VI created by multisim and then output the result from the new VI.

Again: do the beginner courses offered for free to learn LabVIEW.

Here you are asking how to create subVIs with inputs and outputs…
 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(3,304 Views)

Hi GerdW,

 

Thanks for your reply!

 

But how can I use the acquired analog data as a parameter in the formula implemented in labview and just get to know the final result?

 

Thanks again!

 

Best,

 

Jason

0 Kudos
Message 5 of 8
(3,299 Views)

Hi Jason,

 

how do you use any other value as parameter of your formula?

Which formula?

Any more specific information?

 

Simplified example:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(3,279 Views)

Thanks.

 

But it's not what I mean. It's OK. I find the answer.

 

Thanks again!

 

Best,

Jason

0 Kudos
Message 7 of 8
(3,273 Views)

Hi Jason,

 

how can I use the acquired analog data as a parameter in the formula implemented in labview and just get to know the final result?

But it's not what I mean.

Then you should write what you "mean".

And you should attach VIs explaining your problem…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(3,268 Views)