|
could you help me for create my real time graph?
i have task for c# language to make GUI for plotting real time MPU9150 from arduino
|
|
|
|
|
And what would we get out of this? What I see here is you wanting us to do your job for you.
This space for rent
|
|
|
|
|
Member 14142133 wrote: i have task
Go back to whoever gave you the task and tell them you have no idea how to achieve the goal. Maybe they can find someone with more knowledge to do the job.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Quote: All of them, do you want to guide me to make my own graph step by step?
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.
So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
come on bro, i just wanna somebody help me. i have gave everything for create it
|
|
|
|
|
No, you haven't - you just said "I want this" without telling us what you have tried so far.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi,
if you search CodeProject for real time plot , you'll find an inspirational article series by DaveAuld. I haven't read it but it looks good; and I did read and appreciate lots of Dave's stuff in the past.
modified 7-Feb-19 12:00pm.
|
|
|
|
|
thank's bro, do you have more information about my problem. could we talking more about this
|
|
|
|
|
No
|
|
|
|
|
Hi,
Very new to this so appreciate the help.
I am creating an C# application that has a simple database .mdf inside with a table that will hold numbers. Headings are REF and ID as a primary key.
the .csv file will be formatted as:
number,
number,
number,
My application can browse the file path to a text box but then I need to use an 'Import' button to cycle through the numbers in the .csv file and update the table in the database and place them in the REF column.
I can read the .csv into a DataGridView but would rather it just went into the table and didn't create any duplicates when doing so.
Any help appreciated.
Thanks
|
|
|
|
|
|
You need to do some basic research, there are many examples for this process, CSV to Table to CSV (shameless plug)[^]
Then all you need to do is write it to the database and there are a myriad of examples for that as well.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
How to convert docx,pdf or doc files into html file use c# ?
only use Microsoft class + library, without using third party library
|
|
|
|
|
|
You could just use Word automation to do it. Have it load the file and just do a SaveAs and tell it to save in HTML format.
Then you have to put up with the horrifyingly bad HTML that Word generates...
Or you could just a 3rd party library...
|
|
|
|
|
It's been a long time since I've worked with column sorting. It was working until I fine tuned it.
Now I can't figure out where it's broken. I don't if broke the code in the form, or the class I fined tuned.
But I can't click and go descending, but when I click it stays the same, descending.
It fires twice, the first time is correct, then the 2nd time it goes back
private void LVRecord_ColumnClick(object sender, ColumnClickEventArgs e)
{
Cursor = Cursors.WaitCursor;
if (e.Column.Equals(_lvrColumnSorter.SortColumn))
{
if (_lvrColumnSorter.Order.Equals(SortOrder.Ascending))
{
_lvrColumnSorter.Order = SortOrder.Descending;
}
else
{
_lvrColumnSorter.Order = SortOrder.Ascending;
}
}
else
{
_lvrColumnSorter.SortColumn = e.Column;
_lvrColumnSorter.Order = SortOrder.Ascending;
}
this.LV_Record.Sort();
Cursor = Cursors.Arrow;
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Well that took forever to figure out
I went to the listview properties and registered the column click event.
Now it fires 3 times.
Changed up the code but it wasn't a factor
And my class wasn't the issue as well.
private void LVRecord_ColumnClick(object sender, ColumnClickEventArgs e)
{
Cursor = Cursors.WaitCursor;
var comparer = (LVDataViewStockComparer)LV_Record.ListViewItemSorter;
if (!e.Column.Equals(comparer.SortColumn))
{
comparer.SortColumn = e.Column;
comparer.Order = SortOrder.Ascending;
}
else
{
if (comparer.Order.Equals(SortOrder.Ascending))
comparer.Order = SortOrder.Descending;
else
comparer.Order = SortOrder.Ascending;
}
comparer.SortColumn = e.Column;
this.LV_Record.Sort();
Application.DoEvents();
Cursor = Cursors.Arrow;
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Hi,
1.
I have no experience with ListView sorting, however I read one page of documentation[^], and what struck me was the example there explicitly states a new Comparer object needs to be created each time (not sure why!).
2.
I have been sorting lots of DataGridViews, and the functionality I typically want is sorting by multiple columns, so I always resort to a list of sort criteria (think MRU) and hence an explicit Comparer method.
3.
BTW, I strongly object against your call to DoEvents; this method is to be avoided at all costs, the one thing it does is reshuffling the processing of events, and at best it apparently fixes a structural problem in existing code while adding lots of new anomalies in its behavior. If DoEvents seems to fix a problem, think again and come up with a real solution!
|
|
|
|
|
I read that as well on the ListView, but found Microsoft examples saying just do it in Form Designer initialization.
I ended up trying both last night and doing it everytime the column was clicked didn't work as smooth or just failed.
On the DoEvents, that's something I picked up in C++ WinForms programming. The idea is to let the Windows Message Pump process other commands on the GUI thread like paint, move a progress bar, move the form over while something is processing.
As an experiment I took all the Application.DoEvents out and gave it a test run and it wasn't very fluid. I suppose the next thing I need to learn of how to create GUI threads. If anybody is up to it, take my splash screen and refactor it with GUI threads, it would be a great learning experience for me.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
A Windows forms "splash screen" can be as simple as a form that the user can't interact with while the app is starting up. (Show, process, close).
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Thats what is does, but I use Application.DoEvents to show the status of looking for the database server and connecting.
It paints the screen. I didn't think it was a bad thing and works great.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
modified 7-Feb-19 15:46pm.
|
|
|
|
|
DoEvents is a way to avoid using a background worker.
It's "more" than what application code should be aware of.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Could you elaborate a bit more?
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
I am using signalR client and service applications - both hosted as console apps.
I'm interested in making the following scenario work:
1. One Service starts up at "someaddress.org"
2. Second service starts up at "172.123.2.5"
3. Client starts and creates a hub proxy to an address "someaddress.org" which points to "172.123.2.3" by the DNS server
4. Client starts to receive updates from the server
5. At some point, the server crashes and is not available anymore
6. A Health checker service detects that the service is down, and updates the DNS server to make "someaddress.org" point to "172.123.2.5" where the second (identical) service is already up
At this point, the client is not able to establish connection with the new server and I'm trying to understand why and make it work.
If the first service is going down and up again all is working fine, but when the DNS record changes to another server it does not work anymore.
Any ideas?
|
|
|
|
|
Does the client recognise that the server has gone down and do a new DNS lookup? Also updates to DNS servers can take some time to proliferate through the system.
|
|
|
|