Problem in Project 5

My graph is not working in my project5 after I finish coding and hardware set up. So what I do next?

Hi @gopa7172,

could you please provide us with more details about the issue you’re experiencing? Specifically, if you could share screenshots of your code and the graph window, it would be very helpful. Once we have a clear view of the code and the graph window, we’ll be in a better position to provide you with guidance on how to proceed and resolve the issue.

If you are having any doubts regarding the syntax for the 3 graphs mentioned in the Task, go through these links for better understanding

  1. https://docs.boltiot.com/docs/stepped-graph
  2. Scatter Graph
  3. https://docs.boltiot.com/docs/multiple-graph-beta

@gopa7172,

There are some syntax errors and missing elements in your provided code.

  1. In the setChartLibrary line, it appears that there’s a typo in specifying the Google Chart library. It should be setChartLibrary("google-chart"); with double quotes around “google-chart.”
  2. In the setAxisName line, there seems to be a typo in the second parameter. It should be setAxisName('time stamp', 'frequency'); with single quotes around ‘frequency’ and a semicolon at the end.
setChartLibrary("google-chart");
setChartTitle('Your Graph Title');
setChartType('lineGraph');
setAxisName('time stamp', 'frequency');

plotChart('time_stamp', 'gbfr');

singleButton({
  name: "Buffer_high",
  pin: "0",
  action: "analogWrite",
  value: "250"
});

singleButton({
  name: "Buffer_medium",
  pin: "0",
  action: "analogWrite",
  value: "150"
});

singleButton({
  name: "Buffer_low",
  pin: "0",
  action: "analogWrite",
  value: "50"
});

singleButton({
  name: "Buffer Off",
  pin: "0",
  action: "analogWrite",
  value: "0"
});

dataDownload(false);
setCrosshair(true);