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

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an Image File
Check here to include your profile signature.
    

T O P I C    R E V I E W
Berlin_kirsk Posted - 02/15/2014 : 18:20:57
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
4   L A T E S T    R E P L I E S    (Newest First)
Berlin_kirsk Posted - 02/18/2014 : 18:43:00
Thank you so much! That gives me a great place to start. Thank again for writing the software, it is very appreciated.
phgphd Posted - 02/17/2014 : 19:40:54
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;
Berlin_kirsk Posted - 02/16/2014 : 06:22:30
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.
ZLM Posted - 02/15/2014 : 23:25:38
"just output the CPM to file"?
What you needed exactly?

GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.08 sec. Snitz's Forums 2000