11-24-2005 12:20 PM
11-25-2005 04:37 AM
11-25-2005 06:53 AM
Hi Mike,
What DAQ are are you using?
Emma R
NIUK & Ireland
11-25-2005 08:01 AM
11-25-2005 08:27 AM
Hi Mike,
please accept my apologees, that was a bit of a fundamental typo on my part.
What I meant to ask was what DAQ card are you using connected up to your SCB-68 board.
Sorry again for any confusion,
Emma R
NIUK & Ireland
11-25-2005 09:05 AM
11-28-2005 05:47 AM
11-28-2005 09:24 AM
Hi Mike,
You need to create a digital trigger task in MAX.
Open your Functions pallet on your block diagram, Measurement I/O, DAQmx – Data Acquisition, DAQ Task Name VI.
Once you have places the Task Name VI on your block diagram, right click it, choose New NI-DAQmx Task, MAX.
The NI DAQ Assistant window will open. Choose from the menus:
Analog Input, Voltage, your card, highlight your channels, Next, enter a name for the task, Finish.
Voltage Input Set-up Window should then open.
Are you using the TTL trigger to stream or as a clock?
If you are using it as a clock:
Go to the Task Timing tab and enter the number of samples you require.
If you are using it to stream:
Go to the Task Trigger tab and set start trigger type to Digital, Edge to Rising.
If you click on the Connection Diagram tab at the bottom of the window it show you how to wire the task.
When you have finished setting up the task click ok, this saves the task along with the configured settings within MAX.
I have attached an example piece of code which reads the 4 channels once triggered as configured in MAX.
If you require the channels to be read iteratively once triggered simply place a while loop around the read function and graph, so that the display updates.
Hope this helps
Emma R
NIUK& Ireland
11-29-2005 05:08 AM
11-30-2005 04:06 AM
Hi Mike,
This link explains what MAX is, does: http://digital.ni.com/public.nsf/allkb/71544521BDE34FFB86256FCF005F4FB6
Thank you for fully explaining what you are trying to do.
Having read your description I am sorry to have to tell you that your hardware is not capable of stopping data acquisition and therefore cannot supply the functionality that you have described.
If you try to configure a task using the method I gave in my last post you will see that within the DAQ Assistant in the Voltage Input Setup Window if you open the Task Triggering tab there are only options for setting a start trigger type and a reference trigger type. You have the ability to start data acquisition using a reference trigger, however, you do not have the capability to stop the acquisition using a reference trigger using your current setup.
To get the functionality specified would require some quite complicated coding even with the appropriate hardware. If you are going to attempt try and write this code I would suggest going on a DAQ course first or at least purchasing the DAQ course guide. For more information see: http://www.ni.com/training
Emma R
NIUK & Ireland