LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate arbitary signal

Hello Sir,

 

I am trying to simulate arbitary signals from a set of data. I have attatched two VIs first one isFF.png which is just simulating the signals and sending the output to a oscilloscope using DAC assistant.

I have attached another code inwhich i have two signals going into DAC assistant one generated from triangular signals generator and another from Simulate arbitary signal. Now in this case it is not working.

If i send two signals from tri signal generator to DAC it works fine. but when i use simulate signal VI there is not output through dac.

 

 

Is there anything wrong with my code.

Download All
0 Kudos
Message 1 of 12
(3,194 Views)

@Sachindian wrote:

I have attached another code inwhich i have two signals going into DAC assistant one generated from triangular signals generator and another from Simulate arbitary signal. Now in this case it is not working.


Not working: as in throwing any error OR just there is no output being generated from the DAC OR something else happening... NEED MORE DETAILS

 


@Sachindian wrote:

Is there anything wrong with my code.



Can't say anything (but wild guesses) without seeing your code...!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 12
(3,182 Views)

Another problem i am facing is that the simulate arbitary signal vi generates only one set of data which is written in the file in the main VI.

0 Kudos
Message 3 of 12
(3,176 Views)

I am not able to attach the code dont know why.

There is not output also not error in the code while running it.

 

0 Kudos
Message 4 of 12
(3,175 Views)

here are the codes in a zip file

0 Kudos
Message 5 of 12
(3,170 Views)

@Sachindian wrote:

I am not able to attach the code dont know why. 


Why are you not able to attach it???

ZIP your code, make sure that in the name of ZIP file there should be just ONE '.' (dot, period) that too before extension.

So the valid name would be: Myzip.zip

and example of invalid name is: Myzip_LabVIEW8.5.zip

 

This is a bug I observed, sometimes while uploading files, if there is a period in the name of file, forum page doesn't allow to upload the file by saying, invalid file.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 12
(3,166 Views)

I have aatached the code in my previous reply.

 

just to summerise there are three main problems.

 

1) the FF code runs perfectly fine. I am getting the wave form out of dac. But when i write the data which is input to the dac its just the same data which is i put in the simulate signal. i mean it is not a continous waveform its just the data of one period.

2) When i copy the feed forward code and connect to the DAC in the main code it doesnt work. I believe that its because there are two signals comming in to the the dac.

0 Kudos
Message 7 of 12
(3,157 Views)

@Sachindian wrote:

just to summerise there are three main problems.

 

1) the FF code runs perfectly fine. I am getting the wave form out of dac. But when i write the data which is input to the dac its just the same data which is i put in the simulate signal. i mean it is not a continous waveform its just the data of one period.

2) When i copy the feed forward code and connect to the DAC in the main code it doesnt work. I believe that its because there are two signals comming in to the the dac.


--> Where is the 3rd main problem??

--> What is the exact problem in point 1, it's not clear

--> can you remove all extra code (as your VI is too clumsy) and save it to another VI, with just relevant code, where you think problem exists.

--> remember to use 'Clean up diagram' tool (Ctrl+U).


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 8 of 12
(3,141 Views)

IN the first part what i am trying to explain is that the simulate arbirary signal just generates the same data which i have given to it. it just gives one single waveform. The DAC is regenerating the waveform.  The simulate arbitary signal VI  is not generating a continous signal just one timeperiod. I want it to continue generating the wave.

 

0 Kudos
Message 9 of 12
(3,135 Views)

I have cleand up the part which is not required in the vi and attached the relevant one.

in ths Vi there are two signals which are generated one from the trigular signal generator and another is the simulate signal.

The problem is DAC is not giving any output. It works fine when I put one signal at a time.

 

 

 

0 Kudos
Message 10 of 12
(3,128 Views)