12-12-2016 01:37 PM
I configured the DAQ assistant to read a digital line input from a simulated PCI-6221 DAQ device. The values generated are correct while using the 'run' button in the DAQ Assistant configuration window (LED flashes).
Whereas, while running the VI the DAQ assistant always returns zero. I tried using the NIDAQmx functions instead, but no change.
Even when using the analog input (one sample on demand) in a loop, the DAQ assistant always returns the same value (-0.15)
Tried a couple of suggestions on this forum but still same, looks like something very basic, but unable to zero it down.
This is true for both LabVIEW2014 + Windows 7 + NIDAQmx 14.5
<and> LabVIEW2016 + Windows 7 + NIDAQmx 16.0
Thanks in advance.
12-12-2016 01:42 PM
Try posting your VI so we can see how you have your DAQ assistant configured.
12-13-2016 11:12 AM
Thanks.
Have attached the VI.
12-13-2016 11:23 AM
@rajisub wrote:
Thanks.
Have attached the VI.
There is nothing wrong with your vi (OK that error handler inside the loop is bad but, that is not relevant)
The DAQmx Wizard will generate random values for an input task on a simulated device. The DAQ Assitant will not, nor will the DAQmx API vis.
12-13-2016 12:42 PM
Thanks.
I was looking throught the examples in LabVIEW >> Hardware input and output >> Digital input >> Digital-SW-TimedInput.vi (also attached)
I chose the simulated device PCI-6221 as the input and the LEDs do flash.
I can use this as a template for now, but just trying to understand why it would not work when using DAQ assistant or when generating DAQmx code from it.
12-13-2016 12:57 PM
@rajisub wrote:
Thanks.
I was looking throught the examples in LabVIEW >> Hardware input and output >> Digital input >> Digital-SW-TimedInput.vi (also attached)
I chose the simulated device PCI-6221 as the input and the LEDs do flash.
I can use this as a template for now, but just trying to understand why it would not work when using DAQ assistant or when generating DAQmx code from it.
I now have no idea why your vi does not generate simulated data! Ignore my previous post and Thank you for demonstrating that example