Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Encoders and Data (http://www.chiefdelphi.com/forums/showthread.php?t=74052)

Ori2630 10-02-2009 03:12

Encoders and Data
 
Hi everyone,
it's my FIRST post, and I need help with the kit encoders (optical)
and I have a question about real time data saving:
1) When I tring to run the program with the encoder code, LabVIEW wants me to give a password for the FPGA (which, I don't have).
2) I was wanderring if I can save in the flash memory data form the ran time, like the last angle of the gyro, and to use that data in the next run.

thankyou,
Ori-2630.

Mark McLeod 10-02-2009 13:42

Re: Encoders and Data
 
If it's asking for the FPGA password you might be defaulting to running the vi on your PC, not the cRIO.

Are you running the Basic or Advanced Framework or just a standalone vi?

If your program gets stopped between runs, but you want to save and pass data between runs, then you'd probably want to write it to a permanent file and read that file back in each time you start.

Ori2630 10-02-2009 14:36

Re: Encoders and Data
 
About the FPGA, I fixed the problem...I was needing to update my LabVIEW to 3.0a, and it worked like a megic (except of the Gyro issue-solved).
And about the saving thing, I figerd that I need to save it on permanent file...but HOW?
If some one could sand me an exemple, it will help us.
One more thing, how should I connect the 4 wire form the encoder to the cRIO?

Thankyou again,
Ori-2630

Alan Anderson 10-02-2009 14:52

Re: Encoders and Data
 
Quote:

Originally Posted by Ori2630 (Post 817981)
One more thing, how should I connect the 4 wire form the encoder to the cRIO?

The encoders that come with the ToughBoxes? The cable has four colors. Brown is ground and should go to the - of a DIO on the Digital Sidecar. Orange is power and should go to the 5v of the same DIO. Yellow is (either A or B, I don't remember exactly right now) and should go to the SIGNAL of the same DIO. Blue is (B or A, whatever yellow isn't) and goes to the SIGNAL of another DIO. Leave the - and 5v of that second DIO unconnected.

Mike Betts 10-02-2009 15:36

Re: Encoders and Data
 
I would look here first: http://usdigital.com/first

Ori2630 11-02-2009 06:41

Re: Encoders and Data
 
Thank you all I succeeded with the encoders, but i need more information about saving data (logging) to the flash, and how to use it later (after power off...)


All times are GMT -5. The time now is 10:33.

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