03-25-2015 10:38 AM
Hi,
I have couple of questiobns about NI PXI 6251 in PXI-1045(with pxi-8360 Mxi-express controller).
First it works with some huge delays when Daq_mx_stop is called or even the vi is stopped by RED button
Second The reference trigger is not working for me...
When the simple start trigger is set anf APFI0 is used everythzing works fine (except previously described lond delay)
But if I set reference trigger it do not react on the triger pulse.
thanks in advance
03-26-2015 02:05 AM
Hello YuriyPodoba,
can you please post your code and explain it for me a little bit deeper what exactly happend.
For your information about the delay, when using analog trigger
Unexpected Delay When Using DAQmx Analog Start Trigger
Addtional:
When you use an Analog Reference or Pause Trigger, and the analog channel is the source of the trigger, there can be only one channel in the channel list. If you have more than one channel for Pause or Reference Triggers, you must use APFI 0 or APFI 1.
When you use an analog reference trigger source, the acquisition stops on the
first rising edge of the Analog Comparison Event signal.
Hope it helps, if not please let me know.
03-26-2015 08:21 AM
Hi,
Unfortunately the problem is not solved.
This behaviour is observed not only in my .vi but also in NI MAX when I create a task there.
If I use start trigger option acqusition works with external trigger, but DAQ-assistent shows me a warning: 200010 (not all points are acquired or generetaed )
Long delay before the task finishing occures here as well.
If I try to config reference trigger for the same input (APFI0) with the same parmeters it also reacts on a trigger but no data is read and DAQ-assistent shows me an error: -200281.
Also a long (~15sec) delay is observed before the task in NI MAX is finished comletely.
In attachment I've add an example where I have all these troubles but it is nothing else as very basic read example I have the same problems also in standart example from NI library.
Thanks in advance.
03-26-2015 08:27 AM
sorry some correction in the case of reference trigger system do not reacts on trigger at all ... it looks that the task is finished by timeout.
03-26-2015 08:56 AM
Hello YuriyPodoba,
i run your test vi with reference and normal trigger with a simulated device and no error is happend.
The configuration and settings seems to be possible. Can you please check, if
the external trigger or the APF1 trigger happend so the daq device can react on it.
Thanks.
03-26-2015 09:44 AM
as I've sad when i use start analog edge trigger (not reference) the system reacts and aquire the data as it should so I conclude that the trigger singnal is ok (it is also good on oscilloscope).
03-26-2015 10:55 AM - edited 03-26-2015 10:59 AM
Hello YuriyPodoba,
i tested your programm with real hardware and it works. Could it be that the card is demaged?
I used the 5V from the device (Pin 96) to trigger the APFI0 on PIN 29.
Can you plesae try this way to generate the trigger?
How will be your external trigger generated?
03-26-2015 11:15 AM
the card is new, the trigger is generated by external signal generator and is also +5v it is checked with oscilloscope.
Which device you have used? I have PXI-6251 card in PXI-1045 Chassis- in documentation it has no pin with number 96 the maximum pin number is 68.
But nevertheless I've used tested external trigger generator which is working with all other Ni cards we have.
03-26-2015 01:49 PM - edited 03-26-2015 01:50 PM
Hello YuriyPodoba,
sorry for the missunderstandings i tested with the USB-6251.
On your dervice is Pin 8 or 14 for the 5V and Pin 20 for the APFI0.
03-27-2015 11:08 AM
Unfortunately it not helps.
Can the reason be in Hardware compatibility?