Justin Reina
Members-
Posts
93 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Gallery
Everything posted by Justin Reina
-
Microcontroller PWM/ADC/DigPort Code & LabVIEW Testbench
Justin Reina replied to Justin Reina's topic in Hardware
Hey jmt6009, In my opinion, Simulink is generally a better mechanical engineering tool set. LabVIEW generally involves systems that rely either on- a) a lot of electronics/compSci or b) a lot of expensive (but worth it ) NI hardware Go with the simulink, its generally better served for the mechanical engineering stuff. Plus bosses never recognize or appreciate LabVIEW block diagrams, but they always seem to gawk at a nice Simulink model. A quick side note to this opinion: ME 'mechatronics'-type courses that teach with packaged boards (i.e. everything is bolted, soldered and buffered by some slaving TA), these courses have No business using MATLAB to control hardware. If they disagree, ask them how truly 'convenient' it was to go with the MATLAB in the first place. Also ask them how much they are really teaching their students about the hardware they're controlling. Typically this decision is made out of a lack of product awareness, and the students suffer as a consequence. Just my two cents. -Justin *Awesome Side-Topic: LabVIEW-Solidworks Mechatronics toolset!!!! http://zone.ni.com/devzone/cda/tut/p/id/6183 - It is in Alpha right now, so its a free download. what will they think of next... Tell your friends! -
Microcontroller PWM/ADC/DigPort Code & LabVIEW Testbench
Justin Reina replied to Justin Reina's topic in Hardware
Hey jmt6009, I'll get back to you Sat morn. School's kinda busy till then. With regards to ISP connection, that's why I was saying its not fun cause it either works, or it doesn't. Two things to help: (1): There is a troubleshooting guide in ISP the manual. P.27 may be helpful. (2): Get a DMM that does the 'beepie' connectivity status. Use it to confirm pin locations. Like I said though, this is the lame part, cause its hard to troubleshoot. The ISP is a snap though once this stage is over. Talk to you Sat., -Justin *What school are you at? -
Cool! Glad to see it worked. -Justin
-
Calling other VIs to execution
Justin Reina replied to Pollux's topic in Application Design & Architecture
This is the part where your own schemes take flight I think you're own the right track. Perhaps a 'queue handler' that knows who is running and can be asked to kill those queues... Maybe you enforce registering your threads with the 'queue handler'. -Justin -
Proof Microsoft just doesn't know how to handle LabVIEW
Justin Reina replied to Justin Reina's topic in LAVA Lounge
I agree. All you do in LabVIEW is place squares and draw straight lines. MS Paint has been able to do that since Windows 1.0 in 1985. Come on NI guys, step it up a notch. -Justin -
Just thought this was too funny to let pass by. On a serious note, how do you open LabVIEW in XP? Media Player won't work. -Justin
-
Microcontroller PWM/ADC/DigPort Code & LabVIEW Testbench
Justin Reina replied to Justin Reina's topic in Hardware
Just found this nifty guy online ($4 for an ISP 6-10 adapter) http://www.nkcelectronics.com/avr-isp-prog...t-10-to-6-.html This might be the easiest option if you feel so inclined. Best of Luck, -Justin Oops the genders are backwards on that board nevermind.... but you get the jist of it. -Justin *Have a lab tech help out with making this adapter. Chances are he's got the parts ($.50 parts) and it would take him two seconds) -
Hey jmt6009, Started a new thread for this topic, thought it might be useful info for others: http://forums.lavag.org/Microcontroller-PW...nch-t13796.html Check out the info there. That should be enough to get you acclimated and running. If you have any questions (pretty sure there will be some ) don't hesitate to ask. -Justin
-
Hey jmt6009, Here is how to get AVR Studio up and running, (1) Install WinAVR: http://sourceforge.net/project/showfiles.p...ackage_id=66543 *Download the '-install.exe' file (2) Install AVR Studio: http://www.atmel.com/forms/software_downlo...dio416Setup.exe *Fill Out Registration (3) Install MkII Driver *Plug In mkII *Go through Auto-install sequence from Windows (4) Plug mkII into your devboard's ISP *Manual: http://www.atmel.com/dyn/resources/prod_do...RISPmkII_UG.pdf *Don't Proceed until the micrcontroller LED goes from red to green *If it is red, check your wiring and setup. this part might not be fun (4) Open AVR Studio *For now don't open a project (*.aps file), so hit cancel at the main dialogue *Open the Programmer Window (see openProgrammer.jpg) *Check for device (see checkDevice1.jpg & checkDevice2.jpg) *Set Correct Clock Fuse Bits (see setCorrectClockFusebits.jpg) *Uncheck the clock divide fuse (see uncheckClkDivide.jpg) *Make sure to hit program after making fuse changes (5) Load the binary file (the *.hex file) *Try the togglePins.hex first (see program.jpg) *This is the 'code' that runs on the uC (6) Hopefully it works *Work through the examples. They should get you up and running. @all: Here is previous thread: http://forums.lavag.org/Using-the-USB-6008...I-O-t13671.html Best of Luck, -Justin *All the Atmel code and LabVIEW code is in the zip file
-
Hello, 20mA? Could you post a link to it, it seems small. If it is this small, any opamp would work configured as a buffer. A 741 may do the trick. Chip: http://search.digikey.com/scripts/DkSearch...me=LM741CNNS-ND Example: http://www.eecs.tufts.edu/~dsculley/tutori...ps/opamps5.html -Justin
-
Hello, Hook the motor up to a power supply at 5V, and observe the current. How does this compare to the DAQ's limits? Solution (probably): Use a 'buffer' between your low current circuit (DAQ) and your high-current circuit (Motor). Some people call this a 'driver'. Maybe try something like this: http://en.wikipedia.org/wiki/Darlington_transistor http://search.digikey.com/scripts/DkSearch...e=296-1979-5-ND Best of Luck, Justin *This is an electrical-type prob. Maybe find someone at your work/school to shed more light on it. Kind fun stuff, I think
-
I will be at DevDays in Portland and Seattle next week
Justin Reina replied to Aristos Queue's topic in LAVA Lounge
Hello, I will be attending the Seattle event. What topics are going to be covered in the 'architectures' lecture? -Justin -
Can I make an array with strings and doubles?
Justin Reina replied to Scooter_X's topic in Application Design & Architecture
hello jgcode, There may be, and probably is a better way out there, but you can use the 'sort 1D array' function. Just be careful of the order of the elements in your cluster. See the attached example. Best of Luck, Justin -
No prob -Justin
-
Check the subdir. Three progressive trial codes. There are two different ribbon headers for ISP, a 6-pin and a 10-pin. You're gonna have to make an adapter , but its just a matter of wiring. -Justin
-
I'll have to get back to you tomorrow. Busy Today. -Justin Try installing AVR Studio 4, and confirming connection to the ISP unit. Then try to get the ISP unit to recognize the uC on the board. Here's a .hex file to flash a pin. -Justin
-
Yeah that's a hobby servo. Pretty simple to use (PWM) and prob pretty good for a throttle. -Justin
-
Hey jmt, Which kind of servo are you referring to? I would recommend keeping it to one chip if you can, and a Hobby Servo (servocity) might work best for your situation and should be around $20. btw, here is my testbench for the uC. So far I have two PWM and the ADC written and working. Should take care of the rest this week I think. -Justin
-
Calling other VIs to execution
Justin Reina replied to Pollux's topic in Application Design & Architecture
@Mark: That's the pattern in my example <br> -
Calling other VIs to execution
Justin Reina replied to Pollux's topic in Application Design & Architecture
oops I've never saved for a previous version. Either the 'first' or 'second' directory contains the 8.0 version. Not sure which though, so let me know which one works! Best of Luck, Justin -
Calling other VIs to execution
Justin Reina replied to Pollux's topic in Application Design & Architecture
@mross: that wasn't nice Like a few other people mentioned, your deal is you want parallel stuff to run ('tasks'). So use your event structure to dispatch these tasks (use multiple loops). Main Concept: Responisve GUI handling should be lightweight (i.e. no event response greater than, say 20ms). Try this concept: Best of Luck. -Justin -
Again, I only have limited experience with MAX, but perhaps the DAQmx utilities don't support your device? It is kinda old, correct? Do you need to install this? http://sine.ni.com/nips/cds/view/p/lang/en/nid/14914 Let me know how it progresses, -Justin
-
Hello Durden, Do any error codes get thrown from your DAQmx calls, and if so where do they originate and what do they say? -Justin
-
I am not sure whether that was intended for syah or myself -Justin *My intentions were to ellicit more details about the codebook he requires.
-
sad