Jump to content

Recommended Posts

Hello,

I'll explain the application that I have to make.


I have a laser sensor (Scan Control) which rotates with an electric motor, it will measure a hole. For that, he turns and must to collect data for each grade of rotation. 180 / half turn -> 180 points / half turn. I have already a Labview program that translates the data sensor in mm.

Now I have to make a program to to synchronize the data acquisition.

I thought about two solutions:
-Drive will sent the triggeur (I do not know if it can be done)
-Analog encoder with a rising edge of the sine or cosine signal.
The encoder has 32,000 points per revolution (resolution) so it should acquire at each 32000/180 = 180 periods of the encoder signal.


How can I do this on Labview?

I hope I have expressed well,

Thank you in advance to all.

Link to post

This isn't so much a question of how to do this in LabVIEW as how to do this with the hardware you have. Are you using NI data acquisition cards? If so, then there is a way to bring the encoder in as a start scan trigger and there are examples that ship with LabVIEW on how to use an external clock with a data acquisition. You've not listed what data acquisition hardware you're using, so it's hard to provide more information.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By paulofelora
      I have a requirement that I thought would be SIMPLE, but can't get it to work.  I have a 9205 card in a little 9174 cDAQ USB chassis.
      My *intended* behavior is to wait (block) at the DAQmx Trigger/Start Analog Edge on, say channel ai1, until I get a falling edge thru, say, -0.050V.  So I have a little vi (that contains 2 parallel loops) that I want to sit & wait for the trigger to be satisifed.  I'm doing "routine" voltage measurements in another AI loop on a different channel.  I want this vi to run separately from my "routine" voltage measurements because I want the app to respond "instantly" to input voltage exceeding a limit to prevent expensive damage to load cells.  I was afraid that if I used either Finite or Continuous sampling to "catch" an excessive voltage, I might miss it while I'm doing something else.  Yes, yes, a cRIO real-time setup would be better for this, but this is a very cost-sensitive task... I just want to "Arm & Forget" this process until it gets triggered, whereupon it fires an event at me.  SO... I'm also reading the same voltage on channel ai0 for regular-ole voltage measurements, and just jumpering them together.  I did this because I read somewhere that you can't use the same channel for multiple DAQ tasks - I *thought* I would need to set up the tasks differently.  {but now that think about it, the setups can be the same...}.
      I've set up the DAQmx task the same as shipping examples and lots of posts I've seen.  I'm supplying a nice clean DC voltage to a 9205 card using a high quality HP variable power supply.  Using NI-MAX, I've verified that my 9174 chassis & 9205 are working properly.
      THE PROBLEM - When I run it, the vi just sails right through to the end, with no error, and an empty data array out.  No matter WHAT crazy voltage I give the "DAQmx Trigger.vi" (set up for Start Analog Edge), it never waits for the trigger to be satisfied, just breezes on through as if it weren't there.  If I set the Sample Clock for "Finite Samples", the DAQmx Read fails with timeout - makes sense, since the trigger wasn't satisfied.  What could I possibly be doing wrong with such a simple task???????
      So my fundamental misunderstanding still vexes me - does the DAQmx Trigger vi not block and wait for the trigger condition to be satisfied, like the instructions state - "Configures the task to start acquiring or generating samples when an analog signal crosses the level you specify"?
      I stripped my requirement down to the bare essentials - see the 1st snippet, the 2nd is my actual vi.  Any ideas, anybody?


    • By Flavien
      Hi guys,
      I am trying  to make a picture controler on my interface. I can drag and zoom my picture but my zoom is too bad ....
      My picture is big and I didn't find the way to make a zoom on the center of my indicator image with the zoomfactor. All my calculate tries failed and my reseachs on the web failed ...
      I am not really sure if i am clear but I can answer your questions.
      Best,
      Flavien
       
      Control_Picture.vi
    • By Voklaif
      Hello all,
      I am looking for a way to find controls on an executable LV program. 
      I need this function because I want to automate a series of tests (user mouse clicks for example) on an executable LV program.
      The normal tools who does it with windows objects are not able to recognize LV controls individually.
      My idea is to find a way to recognize LV controls so I can interact with them individually.
      If anyone knows any third party programs to do automation tests for a LV exe that would also be highly appreciated.
       
      Best Regards,
      Vlad
    • By Benoit
      This XControl has the nice feature that a Calendar control should give you.
      Multilanguage support by property node.
      The input and output are Labview Time Stamp.
       
      When selecting a date, the date in the calendar become light blue.
       
       
      Please you receive this XControl for free. The minimum you can do is to rate it.
       
    • By Benoit
      Name: Calendar XControl
      Submitter: Benoit
      Submitted: 09 Jan 2016
      Category: *Uncertified*
      LabVIEW Version: 2011License Type: BSD (Most common)



      This XControl has the nice feature that a Calendar control should give you.
      Multilanguage support by property node.
      The input and output are Labview Time Stamp.
       
      When selecting a date, the date in the calendar become light blue.
       
       
      Please you receive this XControl for free. The minimum you can do is to rate it.
       

      Click here to download this file
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.