LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate a DAQ Board

Can someone point me to any documentation that tells how to simulate a DAQ Card ( PXI-6229) then be able to use Labview to run a VI as thought  LV was obtaining data from the channels on the simulated DAQ?

So I simulate the DAQ in MAX??  How?  Documents?

How do you hard code say voltages in the simulated DAQ so that when I run my VI it uses them?

 

Thxs

0 Kudos
Message 1 of 6
(1,573 Views)

Hi Clint,

 


@Clint1000 wrote:

Can someone point me to any documentation that tells how to simulate a DAQ Card ( PXI-6229) then be able to use Labview to run a VI as thought  LV was obtaining data from the channels on the simulated DAQ?

So I simulate the DAQ in MAX??  How?  Documents?


You can create (simulated) devices in MAX. Your 6229 should be one of them…

 


@Clint1000 wrote:

How do you hard code say voltages in the simulated DAQ so that when I run my VI it uses them?


You cannot "hard code" signals for simulated devices. Analog input channels will give full scale sine waves…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,542 Views)

Go give this idea a kudo: Interactive DAQmx simulation interface 



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(1,534 Views)

So not to be sarcastic but what is the purpose of creating a simulated DAQ if you can't simulate signals to see if your code is correct?

0 Kudos
Message 4 of 6
(1,497 Views)

Hi Clint,

 


@Clint1000 wrote:

what is the purpose of creating a simulated DAQ if you can't simulate signals to see if your code is correct?


But MAX does exactly that: it creates your simulated device and it creates simulated signals.

Those signals don't fit to your expectations, but they fit to the capabilities of the simulated device…

 

You still can test your code for "correctness" in terms of creating DAQmx channels/tasks and so on.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(1,493 Views)

@Clint1000 wrote:

So not to be sarcastic but what is the purpose of creating a simulated DAQ if you can't simulate signals to see if your code is correct?


Testing tasks, configuration, etc. But yeah, actually testing with modifiable signals is not possible from within NI Max. You would need to create your own VIs and use their generated data.

 

Which is why you should go kudo that idea up there.

0 Kudos
Message 6 of 6
(1,441 Views)