Tuesday, September 30, 2014

All done on runs laptop!


Make sure you use Matlab 2012a 

This is important as the mex files are written to that path. DONOT path of your c:/cypress 
C:/program files/Matlab/2012a folder 

Re-writing the codes for Runs PC

So since the MEX64 files compiled on my laptop did not work on Runs lap top, I looked up the solution on the Matlab website and it said to download the missing dependencies. This seemed to be a little confusion for me so the engineer in me urged me to simply re-build the cpp code which was used on my laptop to create those mex64 files in Runs Laptop. I had to do some settings again for his Visual Studio(Which I shall post here once again), but it works clean now.

Things to be noted:

If you look at the EZ usb code:

1. DDS/RFchip uses the USB3 Data packets
2. DAC uses value and index fields
3. SKY and VGA uses value only

Perfect measurement VGA setup


1. 

2.














Monday, September 29, 2014

Signal generators


It's massive !






Spectrum analyzer





Bias-t concept

Adrf 6518 - VGA

UThe vga are present on the front side 


And 


Those two. 

Measuring whether I can see if VGA works properly. Will need to revise spectrum analyser today. 

Setting the dac voltages to - 


100/200/300 since 1v is the max ...as seen in the data sheet - 

Use trig menu and vertical and horizontal knobs to adjust 


So reset doesn't work ! 

Le is fine - data is corrupted ! 

Click seems okay. !! 

If I program all zeros - I get lower power consumption - that's a plus 


I have forgotten how to check back end codes ! Sigh. This is going to be a long night. Okay- focus - peace. Play music and move on. 

Okay. The basic mistake I was making was that the function for transfer of bits was from msb to lsb. But the VGA protocol is lsb to msb! 

Hence I played with Matlab and re arranged the bits to make it work. 



When I pass- I pass based on the register protocol in the data sheet 

If you notice - the b0 was not mentioned in the data sheet directly... But flip the pages to read the programming part and you will see that b0 is actually specifying reading and writing bit. It needs to be one for writing. 

So VGA done !! 



Awesome :) 










Sunday, September 28, 2014

Dds measurements :) works !


We can see that the frequency doubler is not working so well. run is going to debug it Tom. 

Where do you find dds ? Other side !




The white things you see are u16 and u20x those are the buffers. 

Read pins from the dot in anti clockwise sense. 

The 6th pin is the output pin. 




Mex files can't run on runs laptop!




You need to figure it out ! 

One of the solutions says : 


So basically since I used Matlab 13a to compile the mex - it's not capable to run on lower versions.

What's the solution ? 

The possible solution is that you install vb2012 in runs laptop and compile the mex files again. But that's a mess !! Let's hope it works ! 



Testing dac and dds for new chip : Sunday evening session !

Check pins 4/5/13 on the other side : 


The currents are surging to 1.5 mAs . Still can't figure out the reason. 

Friday, September 26, 2014

New connection with rf


After connecting the USB something's wrong - is this the same board ? 

Solution- power comp on using Ac 

The problem is still not solved :( 

Hmmm. 

But we can still rf signals and and the mex codes for the chip work 





Back to the board after a long time

Run is assembling the circuit again and now i am going to test the new RF chip for the following mex files:
A_chip_RW
B_chip_RW
C_chip_RW

Using matlab.