02-06-2008 11:59 AM
02-08-2008 12:46 PM
Hi Denys,
If I understand correctly, you have a square wave input signal and you are using the SCXI-1126 module to measure the frequency of. You are setting up and running a task in MAX, and unless you add a negative offset to center the square wave about 0, you are unable to measure frequency. Is this correct?
1) What are you trying to trigger? Are you trying to trigger when you want one frequency measurement- as in on demand acquisition? Or when to begin continuous measurement?
2) What type of trigger did you select?
3) When the square wave is ranging from 0-4.5 V, can you measure frequency without setting a trigger? Just setting the level and hysteresis values and running the task?
4) To what have you set the Threshold Level and Hysteresis values in your task?
5) What DAQ card is your SCXI chassis cabled to?
Understanding the task set up will help to pinpoint the problem and also allow me to try and reproduce this behavior.
Regards, Mallori M.
02-11-2008 12:26 PM
You have a correct understanding of my problem. Pardon my vagueness, but when I said I cannot trigger a reading, I meant I cannot set the level and hysteresis values so that I get a proper reading of the frequency.
It doesn't matter whether I do an on-demand or a continuous reading (a single reading doesn't change the results either).
Whenever
I set the level to anything other than zero, I get an error saying
"error -200223 occured at daqmxcfg_DAZmx Start Task.vi..."
Among the possible reasons is the fact that hysteresis - level has to
be between -0.5 and 4.48. However, I'm making sure that's true when
setting the level.
When I offset the squarewave to center it at 0V, level and hysteresis set to 0 seem to trigger (read) the frequency properly.
The SCXI-1001 chassis is cabled to the PCI-6071E DAQ card.
Also,
this happens even before I set up a task or anything like that. I am
simply testing the 1126 module by going to "test panels" from the
Devices and Interfaces branch of MAX.
Hope this clears up my issue.
Regards, Denys
02-12-2008 06:23 PM
Hi Denys,
Looking up that error code in LabVIEW, I see that it refers back to page 1-3 or page 10 of 61 of the User Manual. However, I noticed that in the manual, it says that it is threshold level minus hysteresis that has to be between -0.5 and 4.48. Perhaps if you tried this range instead of hysteresis minus level.
I would also suggest trying to set up a task in MAX as described on page 28 and 29 instead of running a test panel. This might allow you set the levels and run without error.
Have you tried changing the channel input on your card to eliminate a hardware failiure?
Lastly, what had you set as the max input limit frequency?
Regards, Mallori M.02-13-2008 01:23 AM
02-15-2008 05:59 PM
Hi Denys,
After doing some research, I have a found a number of older corrective action requests (CARs) where this same error was occurring. However, this was a problem with an older DAQmx version. What version of the DAQmx driver are you working with? If you are using DAQmx version 7.2 or a similarly older one, I would suggest upgrading to the newest version of the driver.
Otherwise, this seems to be mostly a software issue. If you do have the most recent version of the DAQmx driver, I might also suggest trying a repair. This can be done by opening the control panel>> Add or Remove Programs>> National Instruments>> NI-DAQmx>> Repair.
Regards, Mallori M.