08-18-2008 09:40 AM
Where is that "error" generated?
Also, you cannot drive a for-loop using both the "N" terminal and auto-indexing. Worse, you've wired a 4 to N, and are auto-indexing 2 loops, one which is 4 elements, and one which is 5 elements. The loop will run for the lowest number, which is 4. Why are you inserting a zero element into your "Phase Distribution" array?
08-19-2008 06:27 AM
''Labview found an unexpected token while parsing. error 9001, line 25'' is the message i get when i run the VI.
I have to put my first value for the Phase_distribution at zero, there a equation in the matlab code explaning why. i still have the same error
08-19-2008 10:48 AM
I don't get that error when I run your code. Keep in mind that you're using the Mathscript node, not the Matlab node.
Also, you've set up the code so it's impossible to stop it without doing a force-quit on LabVIEW. There is no way to click the "Stop" button in time since the dialog box from the Mathscript node always takes over.
Your explanation of the adding of the array element makes no sense. You're still trying to drive the for-loop using three different methods.
08-29-2008 05:03 AM
ok, ok, must say that at first i did not understand what you meant, now yes. About my for loop, if i tried one method, i could not have the result i wanted. Secondly, should i use the matlab node instead of the mathscrip i used cause i still have this error. Also i am want to drive out my voltages via parallel port to op amps working at 15nA. i simply don`t know where to start.
Please help...
08-29-2008 09:11 AM
It will make little difference whether you're using the MathScript of Matlab node unless you're trying to use Matlab-specific functions. MathScript is simply NI's implementation of a Matlab-like language in LabVIEW. In most cases it substitutes just fine. As I indicated before, I don't get the error that you're referring to, so I can't say as to what's going on there. Perhaps it's a LabVIEW version problem.
As for generating the voltages: the parallel port cannot be programmed in terms of voltage levels. You can either set a line high or low. That's it. You need a data acquisition card or module to generate varying voltage levels. NI sells several inexpensive USB-based devices. There are also other manufacturers, but you should make sure that they will work with LabVIEW if you intend to do the programming in LabVIEW.
09-22-2008 04:51 AM
Hello everyone!!
I have a question. i plot the pattern of the antenna i want to control in matlab. Now i need to show the user where the beam will be directed after entering an angle ( i explain this previously). But the plot i obtain does not look like the one in matlab.
Can it be done?
09-22-2008 09:24 AM
09-24-2008 03:41 AM
Here we go...
09-24-2008 10:31 AM
09-25-2008 05:18 AM