Hi Olav,
Wow- I didn't know you could clock the Propeller with a crystal that fast? But I guess it's working for you...
Others have gotten ViewPort to work with frequencies other than the standard 5MHz, pll16x. For the latest version of ViewPort you just need to make sure the timing information in the top file is correct- ie setting the "clkmode" "xinfreq" "clkfreq" variables to appropriate values for your setup. The "Conduit" object will use this to calculate the proper constants to transmit/receive data.
The error message about "not compiled with current version of conduit" seems to indicate that ViewPort is connecting fine to your program, but that you're using an old copy of Conduit. On connect, the configuration strings and a code which identifies the conduit version is sent over- this version doesn't seem to match. Best thing would be to download the latest, try an existing known good board, and then make the change in one file and try it. Let me know how it goes....
ps: To get the IODreamkit (which uses a 6.5MHz crystal to allow sampling at up to 100msps) to work I just changed the clock constant in the top file and everything worked right of the bat- even the NTSC frame grabbing code - see attachment of the IODreamkit connected to a camera and doing "tinyCV" (tiny computer vision) processing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Download a free trial of ViewPort- the premier visual debugger for the Propeller
Includes full debugger, simulated instruments, fuzzy logic, and OpenCV for computer vision. Now a Parallax Product!
Code to do the "frame grabbing" and "tinyCV" is tutorial #11 in ViewPort.
The image on my screen shows ViewPort streaming video from the Propeller. Each video frame contains 4 "buffers". The top left shows the raw image coming from the $10 black and white camera. Top right is the "negative" image, blacks become white, white becomes black. Bottom left is an edge finder. Bottom right has bright spots where there are a lot of sharp edges close together- it finds bar codes. All the frame grabbing and vision processing is done in assembly code in the Propeller. In my DanceBot, this is used to interactively dance with people. ViewPort shows you the streamed result for debugging purposes.
My Circuit Cellar article goes into more detail and provides a schematic- it's here: www.circuitcellar.com/archives/viewable/224-Sander/index.html
The IODreamkit makes all of this simple- notice I just plugged the camera and a resistor into the IODreamkit- I had it running in literally seconds.
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Download a free trial of ViewPort- the premier visual debugger for the Propeller
Includes full debugger, simulated instruments, fuzzy logic, and OpenCV for computer vision. Now a Parallax Product!
Hi Blind_bot,
ViewPort let's you export data in multiple formats- some readable by Labview- among them: .txt, .csv, matlab.
Also, ViewPort includes a DDE client and server. This is standard Windows technology to share data between applications, a quick google finds this: zone.ni.com/devzone/cda/tut/p/id/4531 I've put together a sample "kit", showing how to communicate with ViewPort in languages including: vb.net, excel, c#, matlab, - it's here: hannoware.com/viewport/clients.php
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here), 12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
Comments
Wow- I didn't know you could clock the Propeller with a crystal that fast? But I guess it's working for you...
Others have gotten ViewPort to work with frequencies other than the standard 5MHz, pll16x. For the latest version of ViewPort you just need to make sure the timing information in the top file is correct- ie setting the "clkmode" "xinfreq" "clkfreq" variables to appropriate values for your setup. The "Conduit" object will use this to calculate the proper constants to transmit/receive data.
The error message about "not compiled with current version of conduit" seems to indicate that ViewPort is connecting fine to your program, but that you're using an old copy of Conduit. On connect, the configuration strings and a code which identifies the conduit version is sent over- this version doesn't seem to match. Best thing would be to download the latest, try an existing known good board, and then make the change in one file and try it. Let me know how it goes....
ps: To get the IODreamkit (which uses a 6.5MHz crystal to allow sampling at up to 100msps) to work I just changed the clock constant in the top file and everything worked right of the bat- even the NTSC frame grabbing code - see attachment of the IODreamkit connected to a camera and doing "tinyCV" (tiny computer vision) processing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Download a free trial of ViewPort- the premier visual debugger for the Propeller
Includes full debugger, simulated instruments, fuzzy logic, and OpenCV for computer vision. Now a Parallax Product!
Where is the code and schematics you mentioned:
I guess it is presumptous of me to ask for IODreamkit internals.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
Post Edited (James Michael Huselton) : 5/23/2009 3:29:02 AM GMT
The image on my screen shows ViewPort streaming video from the Propeller. Each video frame contains 4 "buffers". The top left shows the raw image coming from the $10 black and white camera. Top right is the "negative" image, blacks become white, white becomes black. Bottom left is an edge finder. Bottom right has bright spots where there are a lot of sharp edges close together- it finds bar codes. All the frame grabbing and vision processing is done in assembly code in the Propeller. In my DanceBot, this is used to interactively dance with people. ViewPort shows you the streamed result for debugging purposes.
My Circuit Cellar article goes into more detail and provides a schematic- it's here: www.circuitcellar.com/archives/viewable/224-Sander/index.html
The IODreamkit makes all of this simple- notice I just plugged the camera and a resistor into the IODreamkit- I had it running in literally seconds.
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Download a free trial of ViewPort- the premier visual debugger for the Propeller
Includes full debugger, simulated instruments, fuzzy logic, and OpenCV for computer vision. Now a Parallax Product!
Thank You
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000
ViewPort let's you export data in multiple formats- some readable by Labview- among them: .txt, .csv, matlab.
Also, ViewPort includes a DDE client and server. This is standard Windows technology to share data between applications, a quick google finds this: zone.ni.com/devzone/cda/tut/p/id/4531 I've put together a sample "kit", showing how to communicate with ViewPort in languages including: vb.net, excel, c#, matlab, - it's here: hannoware.com/viewport/clients.php
Hanno
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
00100000