GQ Electronics Technical Support Forum Active Users: / Visits Today:
Highest Active Users:
GQ Electronics Technical Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 GQ Electronics Forums
 2.GQ Geiger Muller Counter
 GMC 300 Linux Software
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Berlin_kirsk

Canada
3 Posts

Posted - 02/15/2014 :  18:20:57  Show Profile  Reply with Quote
So I will be the first to admit I am no good with C++. Has anyone tried to strip and recompile the software provided? Basically take it apart and make it just output the CPM to file?

I have tried numerous ways in bash to get it to work. It does work for a while but isn't stable and usually errors out or locks the port up.
If anyone out there has had success with the C program provided, please let me know

thanks
Reply #1

ZLM

1261 Posts

Posted - 02/15/2014 :  23:25:38  Show Profile  Reply with Quote
"just output the CPM to file"?
What you needed exactly?
Go to Top of Page
Reply #2

Berlin_kirsk

Canada
3 Posts

Posted - 02/16/2014 :  06:22:30  Show Profile  Reply with Quote
Yes. The c++ opens and closes the port a bit more gracefully than it can be done in bash script. Was wondering if anyone has compiled a c++ script that they might be willing to share.
Go to Top of Page
Reply #3

phgphd

USA
12 Posts

Posted - 02/17/2014 :  19:40:54  Show Profile  Reply with Quote
Hi, I am the author of the C++ linux software. Several people have let me know that they were able to compile and use it on their linux system. As to writing out the CPM to file, that is a relatively easy C/C++ programming excercise. But I won't do it for you, I am onto other personal projects and with work I have no spare time. So here is a quick and dirty hint of how to do it:

1. Open the file

fstream cpmFile;
cpmFile.open(fileName.toStdString(), ios::out);
if (cpmFile.is_open() == false)
{
// issue error message
return;
} // end if (!cpmFile.is_open())

2. Write to file
cpmFile << setw(4) << setfill(' ') << cpm << endl;
Go to Top of Page
Reply #4

Berlin_kirsk

Canada
3 Posts

Posted - 02/18/2014 :  18:43:00  Show Profile  Reply with Quote
Thank you so much! That gives me a great place to start. Thank again for writing the software, it is very appreciated.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.08 sec. Snitz's Forums 2000