10-18-2015 09:13 PM
Hello i am tryin to send a AC voltage of about .2 volts from the ADC on my MCP3903 board with dspic33f microchip. I am able to communicate with labview through UART but not able to get the sine wave i am hoping for. Im not sure how the data is being plotting like if just garabage or what. I have attached my code and image of the what being plotted on the graph. IF somone can help me that would be great.
Solved! Go to Solution.
10-19-2015 12:07 AM
10-19-2015 12:17 AM
what do mean like concatentate to single string, and what do you need to know about the code as far of how the data is sent
10-19-2015 01:41 AM
10-19-2015 03:02 AM
If you mean the return count on the visa read its a 1000
10-19-2015 04:44 AM
10-19-2015 03:54 PM
Okay here is what the string is ouputing ASCII values and then does the unsigned int conversion. The data on the graph though is just random plots. I want to know how to get the appropraited sine wave function for my AC signal.also it a 24 bit number coming out of my ADC and uart can only send 8 bit. I also attached a picture of the data in a virtual terminal.
10-19-2015 05:06 PM
10-19-2015 06:04 PM
it not random cause when i send it to a dataviewer program that designed to view the ADC it actually produces my AC signal. and forms a sine wave.
10-19-2015
06:14 PM
- last edited on
05-09-2025
01:01 PM
by
Content Cleaner
Hi muscle05,
I think a step in the right direction to handle that error I see in your screenshot is to take a look at Producer/Consumer architecture:
Regards,
G-IV