06-27-2017 03:22 AM
Hello all, I have a brand new NI USB-6501, and I'm looking for some help with operation. I want to use 6501 as a 8:1 multiplexer controller. This table below are the signals that I want to generate.
Step P0.0 P0.1 P0.2 P0.3
1 0 0 0 1
2 0 0 1 1
3 0 1 0 1
4 0 1 1 1
5 1 0 0 1
6 1 0 1 1
So there are 6 steps, 4 lines generate signal at the same time. I want to set the step time as 10 second. I am just not too familiar with LabView. Please help!
Solved! Go to Solution.
06-27-2017 05:41 AM
1. Write to the port, not the individual lines. This will make things a little simpler.
2. There is a nice function called Elapsed Time that should help you along.
Otherwise, there is not much I can recommend without seeing what you currently have written.
06-28-2017 08:28 AM - edited 06-28-2017 08:39 AM
You can use the following snippet to generate those signals as a Digital Waveform, and output them using DAQmx
Here, the sample rate is 0.1 to give 10 seconds, and the samples are 1, 3, 5, ... as you wanted. Alternate patterns could be generated by slightly modifying the For loop, and the rate could be changed to alter the wait times.
In this case, I used the U32 1 Channel NSample mode for Digital Write, because I couldn't use Buffered mode on ports 1 and 2, and 0 has 32 bits. You can adjust as needed for the hardware port you choose.
07-05-2017 03:08 AM
Thank you, it really helps a lot!
07-05-2017 03:08 AM
Thank you for your help~!
10-19-2022 02:47 AM
It seems that the function "DAQmx timing" is not supported in NI USB-6501. I want to generate a 10 Hz TTL digital pulse by this function but that can not work. I think hardware-timed is not supported in this borad.