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
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.