LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulated device DAQ assistant

 

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.

 

 

 

 

0 Kudos
Message 1 of 6
(3,732 Views)

Try posting your VI so we can see how you have your DAQ assistant configured.

0 Kudos
Message 2 of 6
(3,728 Views)

Thanks.

Have attached the VI.

0 Kudos
Message 3 of 6
(3,679 Views)

@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.    


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(3,673 Views)

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. 

Message 5 of 6
(3,665 Views)

@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


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(3,660 Views)