01-07-2007 05:22 PM
01-07-2007 07:37 PM
01-07-2007 08:22 PM
I made a few minor cleanups to give you some ideas. I am sure major improvments are still possible. Please check for bugs.
(I won't comment on how much sense the algorithm makes, because I haven't studied it. 😉 ...but for example if the frequency is set to 0.05, the thing does not "lock".)
01-07-2007 09:11 PM
01-08-2007 12:22 AM
@snowman13 wrote:
Ha, you wanna know something really funny? That code is actually a an example code from the NI website. LOL.
Hmm, the only similar code I found is LabVIEW 6.0 code from http://zone.ni.com/devzone/cda/epd/p/id/5153, and it seems your posted code is derived from it. Where exactly did you find your VI. LabVIEW 8.2.1 does not exist and there should not be any examples using it on the NI web site. 😉
My RF knowledge is pretty spotty so maybe somebody else can help you with that. I don't quite see the purpose of it all, because the phase used for the feedback is obtained from the signal generation tool, a luxury you don't typically have with real signals. 🙂 Still, I think that whatever you need can easily be done in LabVIEW. Just start coding, then post again if you get stuck. 😄
01-08-2007 01:24 AM
@altenbach wrote:
LabVIEW 8.2.1 does not exist and there should not be any examples using it on the NI web site. ;)
Actually, I've seen one of Ben's recent attachment which was saved in 8.2.1 (at least that's what LV told me), so I assume that's what was meant by an example from this site - it was probably an attachment in the forum.
Snowman, you should note that if this code is from the forums then it is not official NI code and is probably just something someone wrote quickly. There are also examples which are submitted by users and not validated by NI, so you can have bad code there too.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
01-08-2007 08:09 AM
01-08-2007 08:12 AM
01-08-2007 11:04 AM
@tst wrote:
@altenbach wrote:
LabVIEW 8.2.1 does not exist and there should not be any examples using it on the NI web site. 😉
Actually, I've seen one of Ben's recent attachment which was saved in 8.2.1 (at least that's what LV told me), so I assume that's what was meant by an example from this site - it was probably an attachment in the forum.
tst, you can find plenty of people that swear to have seen Bigfoot, Sasquatch, Yeti, or a flock of UFOs. 😄 This case is much simpler: If it exists, it is only available to select users that signed an NDA agreement, therefore it does not exist (by definition!). 😉
snowman (abominable? aka Yeti? :o). Good luck with your programming. Let us know how things progress.
01-30-2007 07:18 PM