From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get feed back signal in LabVIEW

Solved!
Go to solution

Dear friends,

I am not getting the required waveform in LabVIEW. I designed a model in MATLAB and recreated the same in LabVIEW. I am not getting the result in LabVIEW. I have attached the pic of the simulink model in MATLAB and the result obtained for the same. But  I am finding some difficulty in getting the same result for the same model in LabVIEW. I have attached the VI. Please help me regarding this. 

Thank You 

 

0 Kudos
Message 1 of 22
(2,509 Views)

Hi prasad,

 

But I am finding some difficulty in getting the same result for the same model in LabVIEW.

The resulting waveform looks very similar to the one shown in Screenshot24.

So what is your "difficulty"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 22
(2,488 Views)

Dear Sir,

The Amplitude of the waveform is not matching in both cases. The first feedback which is a multiplication of 0 and 4.885364 is giving some problem i think. Please suggest the any modification. 

0 Kudos
Message 3 of 22
(2,479 Views)

Hi prasad,

 

you should cleanup and simplify the block diagram:

check.png

Are you sure all those constants are correctly typed in and wired?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 22
(2,466 Views)

Yes Sir,

I have Entered Constants correctly. But When i use only one exponential loop i wont get the result at all. I have attached Both MATLAB and LabVIEW results. 

0 Kudos
Message 5 of 22
(2,415 Views)

Hi prasad,

 

your older VI still runs, even after moving most (?) constant operations out of the loop:

check.png

 

Your new VI looks different, so I guess your formulas are wrong now…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 22
(2,400 Views)

Dear sir,

I actually need the result from new VI i have sent. I checked the formulas and constants. only the multiplication with 0 and 4.88564 is giving problem ( I HAVE MENTIONED IN the same in the attached VI). further multiplication like 2 and 4.88564 are working fine. it is actually a increment from 0 to 2.

0x4.88564(which is not working) 1x4.88564(which is working) 

2x4.88564(which is working)

Hope you got my point. 

0 Kudos
Message 7 of 22
(2,385 Views)

Hi prasad,

 

only the multiplication with 0 and 4.88564 is giving problem

Why do you think so?

I always get the expected result of zero for this (Rube-Goldberg) operation!

Best regards,
GerdW


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

I have attached an image.

Here the red circle loop is not giving result (0x4.88564) 

where as the green circle will give the result. (1x4.88564) followed by (2x4.88564)

That is why i sent new VI with only one loop multiplication of 0 and 4.88564 

Thank You 

0 Kudos
Message 9 of 22
(2,377 Views)

the result should not be 0 for 0x4.88564 case. The result required should be same as the MATLAB result as i have attached the pic of the same. 

0 Kudos
Message 10 of 22
(2,372 Views)