03-20-2006 09:37 PM
03-21-2006 06:18 PM
Hello,
This problem usually occurs if you are using the wrong name to refer to your device or if you don't have the device configured properly in MAX. To check what the correct device name is, go to MAX and expand Devices and Interfaces. Under DAQmx Devices you should have the PXI-5122 listed with a name in quotes similar to "PXI1Slot3" or "Dev1". This is the name you have to use when you call the AIReadAcquisition function.
Another thing you can do to check that the device is recognized properly is from MAX, under Devices and Interfaces right-click the PXI-5122 and do a self-test on the board. If the test doesn't pass, reset the device and try it again. If this doesn't fix the problem let me know what error you get and if the chassis is recognized properly. What chassis are you using? Are you using a controller or a MXI connection?
Hope this helps,
Tica T
03-23-2006 01:38 AM
03-23-2006 02:33 PM
Hi,
If you specify your Edge trigger with a trigger level of 3 V then the device won’t trigger until it receives a signal that is at least 3 V. You mentioned that your sensor output is 2.5 V which will never trigger the digitizer for the trigger level you are using.
Does your sensor output a constant 2.5 V DC signal? If it does then the trigger won’t occur either. An edge trigger occurs when the trigger signal crosses the trigger level specified with the set trigger slope. If your trigger is a constant 2.5 V signal then you won’t get the 5122 to trigger. If it is more of a square wave though it would be perfect as long as you set the trigger level to 2.5 V.
Hope this clarifies things a little better.
Good luck,
Tica
03-23-2006 07:19 PM
03-24-2006 07:34 AM
03-26-2006 09:01 PM
03-27-2006 08:00 AM
Assuming you have one of the CVI versions from the last few years try this:
Under the Help menu select Find Examples, this should open the NI Example finder window
Expand the entries for Hardware Input and Output ==> DAQmx ==>Analog measurements ==> Voltage
The two that should interest you right away are Acq-IntClk.prj for acquiring a single block of data and ContAcq-IntClk.prj for continuous samples. Take a look and see if they are what you need. You may also want to look at some of the other examples to see if they give you ideas on which way to go.
Good Luck
04-02-2006 09:58 PM
Hi mvr,
I succeedded in using the software triggering function in the example code, Configured Acquisition. Thanks!
04-03-2006 07:42 AM
That's great that they had the enough information for you to get it going. Good Luck.