LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding sine waves

You can only add them if they contain the same number of points. If they also have the same freqeuency, this seems like a silly exercise. Can you explain?

0 Kudos
Message 21 of 33
(5,205 Views)

What problem are you having?

 

The wiring in your VI is impressively orderly (when you ignore those spots where wires disappear under other structures), but it is massive and impossible to follow what is going on.  You have numerous case structures all with the same code.  They should be reduced to a subVI.  You have function like a boolean wire AND TRUE.  Why?  Something AND True will always give you the something.

 

You have numerous boolean wires being ANDed in a sequence.  Do you know that the Compound Arithmetic node can be set to AND, thus you can AND multiply wires together in a single node?  Or you can build the wires into an array, then use And Array Elements to get the result.

 

What are you really trying to do here?  It looks like you have about 1000 times as much code as you actually need!

0 Kudos
Message 22 of 33
(5,200 Views)

Here's another way to do this using simple linear algebra 😄 (assuming the six sines are fixed).

 

(compare the diagram size with yours!)

 

 

Of course you would autoindex over arrays of desired function paramters in the for loop if needed.

 

 

Download All
0 Kudos
Message 23 of 33
(5,192 Views)

🙂 thank u 

we need to add six different sine waves with differnt frequencies, but by this we dont have a chance to give frequency as input, we should give frequency value as our wish individually .

0 Kudos
Message 24 of 33
(5,151 Views)

we need to convert this .vi file(addition of six signals) to stand alone application to run on another system with out using labview can u please help in that, and we are using labview 2013 professional development system.

0 Kudos
Message 25 of 33
(5,138 Views)

You need to create 6 waveforms.  Make sure you have the same number of samples and the same delta T when you construct each waveform using the functions that LabVIEW provides.

 

To run on another system, you'll need to install the LabVIEW runtime system and the DAQmx drivers on that PC.  Within your development PC, you'll build your application into an .exe.  Search LabVIEW help and also the forums to find more detailed instructions.

0 Kudos
Message 26 of 33
(5,133 Views)

Creating a custom "about" dialog box is optional.

0 Kudos
Message 28 of 33
(5,111 Views)

thank u

 

0 Kudos
Message 29 of 33
(5,096 Views)

It,s working when we converted to .vi file to .exe file but, all the other .vi files are opening when we select from File->Open->select, how to overcome that.

0 Kudos
Message 30 of 33
(5,085 Views)