LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interpolation of a complex vector

Sorry, I don't understand your problem from the information given. What is a "vector law"?
 
Try to describe in a few more paragraphs what you are trying to do. Is this a simulation? An optimization? Is there maybe a web site that describes a similar problem? maybe you can attach your vI.
Message 11 of 20
(2,034 Views)
Hi expert.
 
i am trying to simulate a sine,square,triangle and sawtooth wave using mathematical equation. but i need to exchange all the variable equation inside  like amplitude,frequency.
The wave i need to generate from 2 source different direction(wave1 horizontal and wave 2 vertical) and add together which means wave1 and wave2, if we put same value we can get circle(if sine wave). And the result from the 2 wave i need to put some other variable for my application..i can easily change the type of wave and also the frequency,amplitude. and put into the equation. lets says, V is a result of 2 waves. Mrr= D x W x V,
this is the jpg file to show clearly.
thanks you expert..
0 Kudos
Message 12 of 20
(2,031 Views)
Hello,
 
The problem is that you are using two VIs that produce a waveform datatype, and it looks like you want to perform an operation on an array which represents the waveform.  If you use the get waveform components.vi located in the function palette under waveform >> Get Wfm Components.  This will allow you to get the array of data that the function generators produce.  It will be named Y.
 
Since this is an array, you will need to perform an element by element calculation.  This can easily be done with a for loop with your math node inside of it.  I have included a screen capture of my block diagram for you to look at.  I hope this is what you are looking for. 
Brian Coalson

Software Engineer
National Instruments
Message 13 of 20
(2,016 Views)
The signal generation palette tools produce simple array outputs. Might be more suitable if you don't need waveforms.

Message Edited by altenbach on 05-10-2007 08:29 AM

Message 14 of 20
(2,013 Views)

Hi expert,

 I 've designed this program that what I am looking for, but I can't  wire to the plot graph.

I do realize plot graph need a scalar type,and must be related with time.

How can i make this vi run continuosly..

 see attached program

many thanks,

please expert

0 Kudos
Message 15 of 20
(1,969 Views)
Use a waveform Chart to display the scalar.
 
Now put everything inside a while loop and add a small wait statement. Wire the [i] terminal to the "t" input after scaling it with some reasonable value constant.
Message 16 of 20
(1,960 Views)
Many thanks Altenbach,
 
i've got the  program completely run now.
How can i make the value going to array type. because i am using a DAQ card to run  an application. so that means we can see in Waveform graph.
any more vi need to add?
 
many thanks.
 
0 Kudos
Message 17 of 20
(1,947 Views)
What is it that you are trying to do with the DAQ card?  Do you want to output all of the points that are created as a voltage?  If so, then do you want them output as a waveform, with each sample being an equal time apart?  Or do you want to output the voltage as the program is running and calculating the individual points? 
 
If you want to output the voltage as each sample is calculated, you can simply use a single point output.  There is an example of this in LabVIEW.  If you go to the menu bar and select help >> Find Examples..  Then navigate to Hardware Input and Output >> DAQmx >> Analog Generation >> Voltage and open the Gen Voltage Update VI.  You would simply need to have the DAQmx Write inside the loop, writing each sample, and the create channel and clear tasks on the outside of the loop. 
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 18 of 20
(1,921 Views)

Hi expert,

actually i am trying to use my DAQ card to generate a waveform for piezoactuator function.

 And i want the output all of the points that are created as a voltage, then  simulate them output as a waveform, with each sample being an equal time apart.

i am trying to look at the example finder but i dind't find it.

can you please save in the Labview 7.0 and give it to me.

many thanks for your help.

0 Kudos
Message 19 of 20
(1,901 Views)
Shidi,
 
Are you using DAQmx or traditional DAQ?  Also, what board are you using to do the output?  And are you wanting to output the points you calculate as a voltage, then display what you are outputting on a waveform chart?  I guess maybe I'm a little confused about your application because once you have created the waveform that you want to output, it should just be a matter of setting up a simple DAQ write VI that will create the channel, write the data, then clear the task, and there are definitely examples like that. 
Brian Coalson

Software Engineer
National Instruments
0 Kudos
Message 20 of 20
(1,891 Views)