10-08-2020 11:39 AM - edited 10-08-2020 11:46 AM
Dear members.
Need your help, I have designed a 2 bit binary counter using a digital signal acquired from an arbitrary waveform generator through NI USB 6212 DAQ. I am using DAQ assistant ......In setting, I have selected 01 samples on demand and using PFI 0/P1.0 channel as input. I have designed 02 bit counter using a shift register but I don't know how to get that delayed signal back to check it on the oscilloscope. Which port number or changing in the code for that digital output port
The related device configuration and VI are attached.
Solved! Go to Solution.
10-08-2020 02:13 PM - edited 10-08-2020 02:21 PM
Hi photonick,
what exactly are you doing in your VI?
Your DAQAssistent is set to read "one value on demand", but you are converting:
Wouldn't it be much easier like this?
Why is the second shift register set to DBL datatype when you want to count integer pulses?
@photonick wrote:
I have designed 02 bit counter using a shift register but I don't know how to get that delayed signal back to check it on the oscilloscope. Which port number or changing in the code for that digital output port
When you want to output a digital signal you may use another DAQAssistent.
I advise to use regular DAQmx functions…
10-08-2020 05:24 PM
Haha, I knew the conversion is quite complicated as I did not know the shortcut as you did. I just wanted to implement 2 bit counter through shift registers.
I converted the second shift register to DBL maybe I was using a waveform chart, I did not exactly remember but as you can see I have messed everything because of that data type issues everywhere in the code. Another DAQ assistant? I think I need to switch DAQmx functions because that simple code is going complicated for me if I go like this.
Thanks for the valuable input. I am learning about DAQmz functions to acquire a digital signal, divide its freq, and provide it to another output port of the DAQ.