View Single Post
  #1   Spotlight this post!  
Unread 26-01-2013, 18:48
wolfeman wolfeman is offline
Mentor, Team 2590
FRC #2590 (Nemesis)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: NJ
Posts: 18
wolfeman is an unknown quantity at this point
Schrödinger's Analog Trigger?

I'm trying to use the AS5030 rotary magnetic encoder from Austria Microsystems.
I have it wired for the sin/cos outputs cause I want to use it measure RPMs
off a CIM. There are no bundled Labview examples of using the AS5030. There's
an exmaple here in CD using it in SPI mode, not analog sin/cos. A team
did post an example over at ni.com and I started with that example:

https://decibel.ni.com/content/servl...nd%20Motor.zip

The full post starts here:

https://decibel.ni.com/content/thread/11955

When I try this example, it fails right from the getgo at WPI_AnalogTriggerOpen.vi.
THe error is:

Error -63195 occurred at Read/Write Control in
FPGA_AnalogTriggerWriteUpperLimit.vi->WPI_AnalogTriggerOpen.vi->Magnetic Encoder with Motor v2.vi

Possible reason(s):

NI-RIO: (Hex 0xFFFF0925) The handle for device communication is invalid or has been closed.
Restart the application.

It's FPGA_AnalogTriggerWriteUpperLimit.vi that is emitted the error.
I went into Analog Trigger Open and turned on highlight execution to see
what I could see... With highlight execution enabled it all works!! Consistently!
So it only works when you are watching...
I've attached a picture and of the execution path when it works (highlight execution enabled)

So I'm guessing it's a race condition somewhere in the libraries. Are
other folks seeing this issue? Is there a fix or a workaround? What is the right
vehicle for reporting WPI library bugs?

Thanks,

Pete, Team 2590
Attached Thumbnails
Click image for larger version

Name:	WPA_AnalogTriggerOpen.vi..PNG
Views:	58
Size:	76.1 KB
ID:	13674  
Reply With Quote