Go to Post If winning that individual match is more important to you than being there in the first place, then I believe you've got your priorities in the wrong spot. - Tom Bottiglieri [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-03-2009, 16:44
ZInventor's Avatar
ZInventor ZInventor is offline
Registered User
AKA: Zeno Le Héricy
FRC #2915 (Riverdale Robotics Pandamonium)
Team Role: Alumni
 
Join Date: Feb 2008
Rookie Year: 2000
Location: Portland Oregon USA
Posts: 247
ZInventor is just really niceZInventor is just really niceZInventor is just really niceZInventor is just really nice
Question Help with Personal labview project

First off, i want to make sure readers understand, this is not a team project.


I'm working on making a program to pull data from a USB Geiger-Mueller counter that i was given.

the programing specs are as folows:

[QUOTE user="black cat sysems"]Interfacing a GM-10 / GM-45 Radiation Detector

Writing your own software to take readings from a GM-10 or GM-45 is very easy. The RS-232 versions are self powered off of the DTR and TX Data lines of the serial port. Open the serial port (usually the handshake lines are correctly asserted automatically by the computer) at 57,600 baud, 8 data bits, one stop bit.

Each time a particle is detected, a pulse is sent down the serial line, which is interpreted by the serial port in the computer as byte. So if you count the number of bytes received per minute, you have the Counts Per Minute (CPM). Likewise you can count the number of bytes over any time period you wish. The value of the byte received is not defined, just count the bytes.

The USB version of the GM-10 and GM-45 are also self powered. Drivers for MacOS, Mac OS X, and Windows are provided to make it emulate a standard serial port, so the software interface is the same. Visit our Linux Details page for specific Linux information. [/quote]

i've gotten labview to get the first byte of data, but the system seems to stop running after that (the geiger counter turns off)

I'm wondering if anyone could help:

what i need is a program that displays the CPM (counts per minute) and a continuous counter (with reset)

i'm frustrated as to how to get this to work.

i've attached what i have so far.

if anyone has any ideas, please tell me!

thanks so much

-Z
Attached Files
File Type: vi radmeeter.vi (18.7 KB, 53 views)
__________________
[center]
Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2009, 18:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Help with Personal labview project

I've attached an image of a slightly modified VI. I cleaned up the wires, got rid of the timeout setting that was redundant, and put a loop around the serial read. Does the loop make sense? If you only run the node once, you can only read one byte.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Picture 1.png
Views:	93
Size:	19.5 KB
ID:	7596  
Reply With Quote
  #3   Spotlight this post!  
Unread 01-03-2009, 19:36
ZInventor's Avatar
ZInventor ZInventor is offline
Registered User
AKA: Zeno Le Héricy
FRC #2915 (Riverdale Robotics Pandamonium)
Team Role: Alumni
 
Join Date: Feb 2008
Rookie Year: 2000
Location: Portland Oregon USA
Posts: 247
ZInventor is just really niceZInventor is just really niceZInventor is just really niceZInventor is just really nice
Re: Help with Personal labview project

WOW thanks, i can't believe i missed that!

Now i'm having troubble figuring out how to have the system count cpm's (which requires counting the number of counts in the past 60 seconds)

i'm not sure how to do this, and can't find any help in the help files

thanks,

-Z
__________________
[center]
Reply With Quote
  #4   Spotlight this post!  
Unread 01-03-2009, 20:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Help with Personal labview project

With counts and millisecs, you can get cpm by taking count * the number of millisecs in a minute divided by the millisecs you have. Or count * 60,000 / millisecs. Put that expression in the loop.

If you want an instantaneous reading, think about how often you want it to update, then look at keeping an array of values in an accumulator, sum the array, rotate and replace. I'll explain in more detail if you decide you want to do it, but I'll give you a chance to do it first.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 01-03-2009, 20:56
ZInventor's Avatar
ZInventor ZInventor is offline
Registered User
AKA: Zeno Le Héricy
FRC #2915 (Riverdale Robotics Pandamonium)
Team Role: Alumni
 
Join Date: Feb 2008
Rookie Year: 2000
Location: Portland Oregon USA
Posts: 247
ZInventor is just really niceZInventor is just really niceZInventor is just really niceZInventor is just really nice
Re: Help with Personal labview project

i still haven't figured out how to use arrays... so an explanation would be extremely helpful,

also, it only needs to update once a minute (CPM), but the data comes in quite randomly, and there are times where the program may have to deal with values in the 100,000 CPM range (uranium chips in science class)

thanks for the help!

-Z
__________________
[center]
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2009, 09:00
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Help with Personal labview project

If you want it to run for a minute before giving a result, you will not need to use arrays. You can eyeball it, or change the while loop to stop after xxx millisecs.

If you want to instantaneous readout, look at some of the array examples, specifically things like circular buffers -- built up from arrays.

As for the upper range, you are by default using 32 bit ints so that won't be an issue. You can switch to doubles for the accumulator if you like. I don't remember if I initialized the shift register that was accumulating, but that is where you would make it a double if you like. It should also be initialized to zero or it will continue counting from where it last left off. Be sure your serial is configured to a fast enough rate.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with connecting default dashboard project mminutto NI LabVIEW 2 30-01-2009 15:26
Forklift project with mecanum wheels HELP adra Technical Discussion 12 21-01-2009 00:44
Fun Personal Project Caio Chit-Chat 14 23-03-2008 22:03
Urgent help with a project; brennerator Technical Discussion 3 05-03-2007 13:40
help with simple project erikh98 Technical Discussion 8 27-08-2004 11:24


All times are GMT -5. The time now is 04:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi