If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Customizable graph to display float information over time
8 posts
• Page 1 of 1
Customizable graph to display float information over time
Hi all, I hope I have posted this in the correct place.
I have a Labjack U3-HV Data Acquisition module linked up and created my own signal conitioning and amplification break-out board to read temperature from a k-type Thermocouple. (See attached picture). Basically for a 0 - 250 degree Celcius range the output has been calabrated to linearly output that range over the following voltage 0.1 to 2.6v. This is getting read as a 'float' value that refreshes a a very high speed (too fast actually)
What I need is a visual representation of this information over time (Graphically) but I need the graph to be customisable in that I may want it to record the temperature for 10 minutes with one sample a second (or all the values averaged over a second) or I may need to record the temperature over a 24 hour period sampling the temperature one every minute. (a slider for samples from 1 second to 1 minute would be good, and a slider for duration from 1 minute to 1 hour?)
This needs to be displayed on a graph and can either then be exported as a *.CSV or similar file, or an option to export the graph as a JPG or similar (or both options preferably)
Where would I start with something like this? Also, ultimately I will be turning all this back-end into a easy to use front-end GUI.
Regards, and thank you in advance.
Gareth_SA
http://i123.photobucket.com/albums/o293/Gareth82/20141016_133601ed-small_zps512ab461.jpg
I have a Labjack U3-HV Data Acquisition module linked up and created my own signal conitioning and amplification break-out board to read temperature from a k-type Thermocouple. (See attached picture). Basically for a 0 - 250 degree Celcius range the output has been calabrated to linearly output that range over the following voltage 0.1 to 2.6v. This is getting read as a 'float' value that refreshes a a very high speed (too fast actually)
What I need is a visual representation of this information over time (Graphically) but I need the graph to be customisable in that I may want it to record the temperature for 10 minutes with one sample a second (or all the values averaged over a second) or I may need to record the temperature over a 24 hour period sampling the temperature one every minute. (a slider for samples from 1 second to 1 minute would be good, and a slider for duration from 1 minute to 1 hour?)
This needs to be displayed on a graph and can either then be exported as a *.CSV or similar file, or an option to export the graph as a JPG or similar (or both options preferably)
Where would I start with something like this? Also, ultimately I will be turning all this back-end into a easy to use front-end GUI.
Regards, and thank you in advance.
Gareth_SA
http://i123.photobucket.com/albums/o293/Gareth82/20141016_133601ed-small_zps512ab461.jpg
- Gareth_SA
- Posts: 4
- Joined: Fri Oct 17, 2014 12:21 pm
- Location: South Africa
Re: Customizable graph to display float information over tim
Hey Gareth!
If you search for any of the "scope" or "fft window" tags you should come up with some to help you. I guess they use a mono2float module for the array of data to represent and you could do the same except with temp data instead.
As far as customizing goes, most of them have options to customize
If you search for any of the "scope" or "fft window" tags you should come up with some to help you. I guess they use a mono2float module for the array of data to represent and you could do the same except with temp data instead.
As far as customizing goes, most of them have options to customize
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Customizable graph to display float information over tim
Hi, thank you for your prompt reply!
Probably I am missing something easy, but the problem is that my data is coming IN as a float.
The mono2float block needs the signal coming in as a source, then you can trigger it to capture a float value and then plot that.
mine is coming out the labjack analogue port as a rapidly updating float value.
thank you in advance for any ideas.
Probably I am missing something easy, but the problem is that my data is coming IN as a float.
The mono2float block needs the signal coming in as a source, then you can trigger it to capture a float value and then plot that.
mine is coming out the labjack analogue port as a rapidly updating float value.
thank you in advance for any ideas.
- Gareth_SA
- Posts: 4
- Joined: Fri Oct 17, 2014 12:21 pm
- Location: South Africa
Re: Customizable graph to display float information over tim
Hi again.
I just created this mockup/pseudo code.
This is kinda what I am looking for.
http://i123.photobucket.com/albums/o293/Gareth82/Flowstone-whatIneed_zpsb9bcc4eb.jpg
Regards,
Gareth_SA
I just created this mockup/pseudo code.
This is kinda what I am looking for.
http://i123.photobucket.com/albums/o293/Gareth82/Flowstone-whatIneed_zpsb9bcc4eb.jpg
Regards,
Gareth_SA
- Gareth_SA
- Posts: 4
- Joined: Fri Oct 17, 2014 12:21 pm
- Location: South Africa
Re: Customizable graph to display float information over tim
For the first issue use sample and hold on both values and trigger them with a timer. The premade graph displays all have a value window dependent on the array size. That's unusable for your application. You'd need to develop your own drawing routine that just takes the two values and draws them in a fixed value window size.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Customizable graph to display float information over tim
tulamide wrote:The premade graph displays all have a value window dependent on the array size. That's unusable for your application.
Why is that? Can't you just use a queue prim to cycle the array and graph it?
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Customizable graph to display float information over tim
Perfect Human Interface wrote:tulamide wrote:The premade graph displays all have a value window dependent on the array size. That's unusable for your application.
Why is that? Can't you just use a queue prim to cycle the array and graph it?
You could, but that would involve more than needed. For example, the whole array would be drawn each time. You'd have to fill the array in a certain order, that you have to keep track of, etc. While it is very easy to just draw one point or line at (time modulo whatever-width-you-like). No complex logic of filling the array, no unneccessary drawings. You could also very easily, and lightweighted on the cpu, draw to a bitmap this way and save it when filled (since printing from within FS isn't possible), before starting all over.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Customizable graph to display float information over tim
Thank you very much for all your input and help.
Upon searching around a bit more I found a solution at another topic of the support forum here
http://www.dsprobotics.com/support/viewtopic.php?f=2&t=166
These examples (especially the bottom one here - http://www.dsprobotics.com/support/download/file.php?id=108 ) - Helped me a lot and I believe I can modify one of these for my project.
Regards,
Gareth_SA
Upon searching around a bit more I found a solution at another topic of the support forum here
http://www.dsprobotics.com/support/viewtopic.php?f=2&t=166
These examples (especially the bottom one here - http://www.dsprobotics.com/support/download/file.php?id=108 ) - Helped me a lot and I believe I can modify one of these for my project.
Regards,
Gareth_SA
- Gareth_SA
- Posts: 4
- Joined: Fri Oct 17, 2014 12:21 pm
- Location: South Africa
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 70 guests