03-19-2013 02:14 PM
Hello
I am trying to to trigger a digital function generator from a daq-assistant that is used to move an x-axis motor. Now the programs run side by side but I want the function generator to trigger and send a pulse every time the x-motor is said to run via the program. Know I have the capability to export the signal the x-motor signal via daq-board or use a digital signal via the program itself. I would prefer the digital signal but will take any help I can get. Attached is an example picture of my code for the motor and the function generator
03-20-2013 05:05 PM
Hi,
I wanted some more information on your setup. What DAQ device and signal generator are you using? Can you please clarify how you want to trigger each device?
Regards,
03-20-2013 08:57 PM
Sure i would love to would you also like the entire program uploaded so that you could take a look at it?
03-21-2013 07:36 AM
We will start with the basics. Please describe in details what you are trying to do and what hardware and software you are using.
Thanks!
03-21-2013 07:35 PM
I am using labview 2012 and two daq boards
I will update with specific ports that they use tomorrow
I will also upload the program that I use its a little big
basically all I want to do is trigger the function generator overtime a signal is sent for the x axis motor to move
I hope that answers some of your questions will update tomorrow in lab with complete program
03-24-2013 04:42 PM
Hi,
The link below provides information on triggering and why it is not recommended to use the DAQ assistant for triggering.
I recommend reading the link below which has useful information on triggering and how to effectively use it with NI-DAQmx.
http://www.ni.com/white-paper/4329/en
Regards,
03-27-2013 04:20 PM
Thank you for that helpful advice I looked over what you said and tried to fix my program I will upload it here.
As you can see it includes an oscilloscope and create array function for that data that is captured on the oscilloscope. That works fine the only part that I am having trouble with is triggering the function generator every time the raster scan moves along the x-axis. I just need to know what values to set as the trigger for the function generator to get it to trigger every time the daq assistant for x gets a signal and exports it to the daq board. I hope that clears some things up.
03-28-2013 09:49 PM
Hi,
What do you mean by 'what values to set as the trigger for the function generator'? Your trigger value is going to be what you set based of a level you want to pass to start acquisition.
I am a little confused with your VI. Can you please comment in the block diagram the part where you are having trouble with? Also, is there a reason why you are using timed loops?
Regards,
04-01-2013 06:05 PM
I believe I answered your questions correctly let me know if you have any more. The two images are the sections that I need help with and the comments are in the VI with answers to your question.
04-02-2013 07:30 PM
Hi,
Since you are using an analog output with the DAQ assistant you can't do digital triggering with it. You can try to use analog triggering and the analog channel should be connected to APFI0 on the BNC. It's better to use low level VIs rather than the DAQ assistant.
Also are you using LabVIEW Real Time (RT)?
Regards,