LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRio control motor & monitor accelrometers

Hii,,

Actually i face a problem in programming cRio device with modules 9505&9234 for motor & accelerometers.
we get the examples code for the two modules & it worked well for each one individually.

 

when we tried to make a new project for the 9234 module & a new vi for the host and the fpga then copy the contents of examples VIs into the created one, we have an error in transfer data from the FIFO in the fpga to the read FIFO in the host.

what is this problem ? 


P.S.
The path for the project created have a ".lvproj" for the project & two ".vi" for the host & fpga but,

the path for the example project have a ".lvproj" for the project only


Thanks in advance

Ali Zein 

0 Kudos
Message 1 of 3
(2,695 Views)

Hello Ali_Zein,

Thanks for the post, I have a few questions for you in order to have a better understanding of your application:

  • Are you using the shipping examples from the NI Example Finder, if so which 2 examples are you trying to combine?
  • I assume you are using a Target to Host FIFO based on your description, what settings do you have set for you FIFO?
  • What errors codes or error messages are you getting when running your code?
  • Can you provide some more information about your application, such as what you are trying to do with these module and what the end goal is for your application?

Based on the information provided I did some research and found some documentation that may help you with in your application.

CompactRIO Motor Control Basics Tutorial
http://www.ni.com/white-paper/6143/en

Hope this helps!    Paul-B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,655 Views)

Dear Paul-B, thanks for reply ..

1) Exactly, I use two examples from example finder as my local distributor suggest:

    • "9234 Getting Started" for acceleration monitoring
    • "PWM Generation - NI 9505" for motor control

 I am trying to combine these two VIs together or any other thing to control motor & monitor accelerometer simultaneously 

 

 

2) I used the same setting in the example FIFO which is Target to Host - DMA / Data Type: FXP, word length: 24bit, integer length: 4 bit.

 


My application is a structure mounted on it 8 accelrometer & an unbalanced motor, and the student should change motor speed & monitor the frequency response of the structure through the 8 accelerometers.


--
There is a problem too in using example project for the 9234 module .. its response is similar to be a noise more than signal & tottally different from DAQ & it gives me just a noise & don't respond to vibrations changes as expected.

I tested the accelrometers on cDaq & run well but on cRio it's very strange as i can't configure sensitivity like DAQ.



Thank you very much for help Mr.Paul-B :))

Sincerely,
Ali Zein 

0 Kudos
Message 3 of 3
(2,644 Views)