03-30-2007 10:30 AM
04-02-2007 08:50 AM
04-02-2007 10:16 AM
Hello Kirtesh,
Thanks for your reply, I am enclosing the VI which I used to acquire data from a single channel.
I have read from examples, have not worked the mult channels.
04-02-2007 11:21 AM
Hello Kirtesh,
I have tried by using APFI0 as the trigger source, give dev1/ai0:1 as physical input channel and run, the programme did not give me error code. ( if I give Dev1/ai0:1 as trigger source, the error is as follow:
Device supports an analog channel as the source of an analog reference trigger only when it is the only channel in the task.
Remove all of the channels currently in the task except the channel that will be used as the analog trigger source, or change the analog trigger source to a terminal.)
However another problem come out, I use BNC-2120 to connect PCI-6251, the BNC-2120 documentation say it can connect to E series, s Series. I checked the BNC-2120, there is no APFI0 terminal. When my supervisor asked the NI technical team, he was told it was ok by using BNC 2120 to connect PCI-6251.
Kind regard
Lyn
04-03-2007 05:14 AM
Lyn
I have taken over this query from Kirtesh and have analysed your problem by setting up the same system here in our Lab. Unfortunately the problem you are encountering is specific to the BNC-2120 device you are using. The device does not have an APFI0 output as you observed, this prevents you from using a second analogue input channel as a triggering device. Unfortunately, the device does not support this function and as such, the pin is 'not attached' (I have attached the pin schematic to this post). You are however, able to use a single Analog Input channel but it must be the signal which you wish to aquire.The BNC-2120 is a suitable device to work with your PCI-6251, however you have unfortunately discovered a limitation of the BNC device. You could potentially hardwire the triggerring input to the device pin, but this will require you to modify the BNC-2120 internally. This is a method we here at NI do not reccomend . Alternatively, you could use an SCB-68 screw terminal block which includes n APFI pin. If you wish to enquire this device, or about a possible exchange, please contact our sales department on 01635 523545 who will be happy to help you.
I'm sorry we could not provide a more straightforward solution to your problem.
Best wishes and thankyou for contacting NI.
Rob
04-03-2007 01:00 PM
04-03-2007 01:18 PM
04-04-2007 06:51 AM
Lyn
Although you may be able to use the BNC 2121, I do not reccomend it. The device is a counter specific accessory and does not include any Analog IO. You may be able to work around this but would probably run into similar problems as with the 2120. you could perhaps use the 2111 which includes 8 Analog IO and an APFIO channel too. However, the device does not include as many other features as the 2120 such as thermocouple inputs, digital IO and quadrature encoders. Therefore if you were contemplating an exchange, in the long run it might not be the best idea. The 2111 is also a single ended reference device unlike the 2120 which can accept floating signals. I have included a schematic of the 2111 in this email and the following link will give you all the information on the BNC accessories your Mseries DAQ card can use.
http://sine.ni.com/nips/cds/view/p/lang/en/nid/201731
With respect to whether you might still be able to use the 2120, I believe the answer may be yes. I have been working all morning on developing some code which might be able to achiveve this and it turns out the answer may be quite simple. After experimenting with a lot of code I found the easiest method would be to use some of the express VI's located in the LabVIEW function pallette. I have attached a simple VI which takes the input of 2 channels and outputs the signal from a reference point on one of the signals. Have a play and see if you can adapt it for your needs, I hope this will provide a simple and effective solution.
Best wishes, I really hope this helps.
Rob
04-04-2007 08:34 AM
Hello Rob,
I am really apperciate what you have done for me.
I have used your sample vi to acauire data from two input channels, I connected my sensor to ai0 and a very low frequency frequency sine wave to ai1. but the signal is not as the same which I acquire by signal channel. I am enclosing the property of the trigger and gate function and a single channel results by using the Daqmx. From these two picture, I guess you can see the difference.
My idea job is PCI-6251 will connect 4 or 8 individual sensor to acquir pulses, these pulses are similar but they arrive to PCI-6251 in different time. The best result is I can get every pulse data as the same I am enclosing one, idealy. is it possible to do it?
Kind regards
Lyn
04-04-2007 09:46 AM
Hi Lyn
I'm not exactly sure what you're trying to achieve, I didn't fully understand your last reply. If you could post back with a few more details it would be very grateful.
Many thanks
Rob