Search Results

by jimmerson
Fri Jul 29, 2022 2:13 pm
Forum: C#.NET
Topic: DistanceSenor write to file
Replies: 6
Views: 14642

Re: DistanceSenor write to file

Copied ("Distance: " + distanceSensor.Distance + " mm"); from the "Learn" section for the sonar sensor and it works! I guess it was the capital "D" in the previous code? This works outfile.WriteLine("Distance: " + distanceSensor.Distance + " mm&...
by jimmerson
Fri Jul 29, 2022 1:54 pm
Forum: C#.NET
Topic: DistanceSenor write to file
Replies: 6
Views: 14642

Re: DistanceSenor write to file

outfile.WriteLine(DistanceSensor.Distance.ToString() + "\n");

outfile.WriteLine(DistanceSensor.ToString() + "\n"); both get the error "An object reference is required"
by jimmerson
Fri Jul 29, 2022 1:19 pm
Forum: C#.NET
Topic: DistanceSenor write to file
Replies: 6
Views: 14642

Re: DistanceSenor write to file

Well, not I'm stuck on getting the below code to work with a DST1200_0 sensor.

//Write data to file in CSV format
outfile.WriteLine(temperatureSensor.Temperature.ToString() + "\n");
by jimmerson
Fri Jul 29, 2022 1:11 pm
Forum: C#.NET
Topic: DistanceSenor write to file
Replies: 6
Views: 14642

Re: DistanceSenor write to file

Hmm, I have just found the "how to"


https://www.phidgets.com/education/lear ... nsor-data/
by jimmerson
Fri Jul 29, 2022 1:06 pm
Forum: C#.NET
Topic: DistanceSenor write to file
Replies: 6
Views: 14642

DistanceSenor write to file

Hi,

I'm sorry, this is probably dumb but I'm not programmer.

How can I have DistanceSenor (sonar) dump all data into a file?