Go to Post If chairs really inspired me that much I would be in woodcrafting club and not robotics - CJ_Elliott [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 28-03-2012, 01:56
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Offboard Vision Tracking Help

I am currently working on an offboard vision processing application using the given LabVIEW example. I am attempting to send the target info to the robot using UDP, and have noticed others having success doing this. For some reason, though, I can not get it to work efficiently. Right now, I am getting error 74 when running the robot code - Memory or Data Structure Corrupt in Periodic Tasks.vi. I don't know what could be happening here, as I have copied and pasted the data right from the example to the code now.

Some more background information: We are using the 2010 classmate, and having that plugged into (and attached to) the robot itself. When we run the app, it takes the CPU of the classmate to ~80%, and there is noticeable lag in the camera feed, where it is fine in the Dashboard on our driver station laptop. One thought I just had while typing this up is that could the laptop be slowing down so much, the data is getting corrupt while being sent? I tried to switch to TCP, but it threw even more errors at me.

I have attached the code here, any help at all would be greatly appreciated. The zip is the entire application for the standalone vision, and the picture is what I have in Periodic Tasks.vi.
Attached Thumbnails
Click image for larger version

Name:	Periodic Tasks.JPG
Views:	71
Size:	30.9 KB
ID:	12446  
Attached Files
File Type: zip Vision x3.zip (855.0 KB, 6 views)
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-03-2012, 07:32
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: Offboard Vision Tracking Help

Memory corrupt is a harsh way of saying that the typecast can't create the array of ... from the string that it was given.

Connect the error output of the typecast to the edge of the loop, or to a Clear Error function so that it will run with the error being thrown. Then probe the string and see what it is being given. You may want to look at the type you are sending it and make the constant match exactly. Orange colored numerics can be different sizes, and casting types is precise business.

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


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

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