07-09-2010 10:41 AM
Im trying to send a pulse train from PC to USB-6501 using labview signal express 2.5.0. I am doing the following,
1) generate signal -> DAQmx generate signal -> digital ouput
: write a "High" to the line selected
2) generate signal -> DAQmx generate signal -> digital ouput
: write a "low" to the line selected
3) do a conditional repeat around the above until iteration reaches 100
it gives the following error while execution on both 1 and 2 tasks
Error -201003 occurred at DAQ Assistant
Also, is there a way to control the period of the pulses I intend to generate
07-12-2010
04:31 AM
- last edited on
10-25-2024
11:28 AM
by
Content Cleaner
Hi there
Have you made sure you have configured the DIO ports on the USB-6501 correctly?
Please see here; USB-6501 Manual to configure the ports correctly. The NI USB-6501 has 24 single-ended digital lines, P0.<0..7>, P1.<0..7>, and P2.<0..7>, which comprise the three DIO ports. P2.7/PFI 0 can also function as a 32-bit counter.
The error you are receiving is due to the USB device not being recognised. Have you used MAX (Measurement & Automation Explorer) to make sure this is performing correctly? Please make sure you clear the task before restarting it.
Error 201003 is generally caused due to the following reasons:
To resolve this error, carry out the following steps:
If the card is not visible in Device Manager or never appears in Measurement and Automation Explorer, it could indicate that the card is damaged. In this case please contact National Instruments Support.
07-12-2010 05:26 AM
Hi David
Thanks for the reply
I tried another task on USB-6501 and it seems to work fine. The error, mentioned above, said there is probably a clash in using the same line ouput for two tasks at the same time.
I have changed the task and now use DQAmx generate and sweep (value to write) to generate this pulse train. But the signal I see on the scope has a period of 2.3s. And I cannot see the complete pulse train as the scope goes into "slow acquisition"
Is there an better way to generate pulse train on USB-6501 outputs and see it on the scope without slowing it down
Thames
07-12-2010
05:37 AM
- last edited on
10-25-2024
11:36 AM
by
Content Cleaner
Dear Thames
You are correct in using different lines for acquistion. Please see Page 10 of the USB-6501 manual I referenced in my earlier post. You will see that there are 24 single-ended digital lines, P0.<0..7>, P1.<0..7>,and P2.<0..7>, which comprise the three DIO ports. You should use P0.1 and P1.0 for exampel to seperate the ports.
With regards to generating a pulse train using one of the output ports, the USB-6501 does not support pulse generation; please see the specifications description at the below link; The board's timer can only count edges, it doesn't have output modes. The DIO lines are software timed, so the output is as fast as the software can run. This is usually around 1kHz, which was more than adequate for his application.
I recommend using USB-6211 which supports Digital Pulse Generation and also uses 32bit counters and 4 DIO ports.
07-12-2010 11:38 AM
Hi David
I will debug whether the period '2.3s' is due to actual software timing or incorrect task sample period setup:since from what you said it is possible to get upto 1KHz even with software timing
Thanks for your promt reply
Thames
07-13-2010 05:26 AM
Hi David
I can read back a waveform of 10Hz freq (from waveform generator) using USB-6501 and signal express sampling every 5ms. But I am not able to generate a pulse train at USB output (by toggling its value using "sweep") at a period better than ~2.3s. The sample period for this "DAQmx Generate" is also 5ms.
Can I improve the write rate some other way
Thames
07-13-2010
05:44 AM
- last edited on
10-25-2024
11:36 AM
by
Content Cleaner
Dear Thames
As I mentioned previously, the USB-6501 does not have the hardware capability to generate a hardware timed pulse train. However, a pulse train could be produced with a digital line and some software timing. It would entail toggling a digital line in a loop structure. In this situation, the pulse train would of course be software timed as mentioned and at the mercy of the operating system.
Take a look at the KB I ve linked below; this will enable you to use the counter on the USB-6501 and a pause drigger to enable a pulse train; before you would need 2 counters, but this method, although not as accurate will enable you to accomplish a pulse train
As I mentioned this isn't the most optimum approach and is not as accurate as using one of our Pulse Generation Modules I referenced earlier; and hence why your timings are slightly out. I hope this is of help.
01-27-2013 01:57 PM
Excuse me:
I have the opposite problem; I have a pulse train coming from a pulse generator (square wave) and as a technician some times I need to check how is the pulse train; so I must use the oscilloscope that is mounted on a oscilloscope cart and after the readings I must go back to the maintenance shop pulling the oscilloscope again, my question is if can be possible to use an Ipad or an blackberry or a galaxy tab or an Alcatel one touch tribe and read the data from the usb port of the mobile gadget maybe with a java program; somebody knows about that???;( the mobile gadgets list is because every technician here uses a different gadget, I use a big screen Alcatel One touch tribe (and I am pretty sure can use Java) but the second shif technician uses blackberry and so); if somebody knows about this please send an email to ofsalcido@gmail.com
Thanks in advance
Octavio Salcido
01-29-2013 04:43 AM
Hi Octavio Salcido
Please start a new thread for new questions!
This thread is three years old and posting here will likely not get you an answer at all.
Kind Regards