LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm very frustrated by this samll program. It 's expected to give out the dynamic respones of a pile partly burried in soil, but it gives out....

I'm translating a small simulation program from ASYST to LV which simulates the dynamic response of a partly burried pile(mobility vs. frequency), the expected result should be a wave shape varying with frequency, but what I got is not such thing. I don't know if anybody can help me to check what's wrong with it. it's attached.
0 Kudos
Message 1 of 7
(2,807 Views)
You didn't include a global and one subVI and without the algorithm from the original, it's going to be be pretty hard to figure out what you're trying to do. What I did was rearrange your VI so that it's easier to read. Left to right/top to bottom is a fairly conventional way of wiring a LabVIEW diagram. Maybe this will help you spot the flaw in the logic.
0 Kudos
Message 2 of 7
(2,807 Views)
thanks.let me re-post the vi and it's subvi. Do you know about ASYST? an out of date language.
Download All
0 Kudos
Message 3 of 7
(2,807 Views)
Dennis:

you are so kind. thank you very much. What I 'm actually doing is to figure out the mathematics from the old program in ASYST and then translate it into Labview. It's really a little hard for me to do this. If you know about ASYST, i can give you the old source code.
0 Kudos
Message 4 of 7
(2,807 Views)
I don't know anything about ASYST but you might as well post the code anyway. Someone here might be familiar with it. You've got a lot a places where you might have mistranslated the old program. Maybe an array index is wrong. LabVIEW arrays start at index 0. Some other languages start at 1. You're mixing complex and real numbers a lot. Myabe something there. On you subVI, the shift register contents are being modified with every execution of the loop. It seems intended but if you make it an input constant, you get drastically different results.
0 Kudos
Message 5 of 7
(2,807 Views)
Thanks. I will post teh ASYST code this evening.

I'm trying to give that shift register a given initial value(other than 0.0 or the previous value of the last running)(which is passed from the calling simulation VI), I need to give variable ZS an initial value before the loop runs. That's what I intended to do. But I don't know if I have achived what I expected or have induced the mistake.
0 Kudos
Message 6 of 7
(2,807 Views)