LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulating the behaviour of PXI by creating virtual channels with DAQmx

Hello,

 

I would like to simulate the behaviour of a PXI and it's the first timle I'm working with DAQmx. Following some examples that I found in the forum, I could start by creating a virtual channel and using DAQmx functions,  but not in the right way appearently because I'm having this error 200460 which says thar "read failed because there's no channels in the task from which data can be read". Nevertheless, I created a channel.

Maybe, I did it wrongly, so can you help me know how to simulate a PXI correctly, starting by creating virtual channels?

 

Thank you in advance.

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

In MAX (Measurement & Automation eXplorer), you will want to create a simulated device.  Then you can create your tasks and channels from that simulated device.



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 2 of 6
(3,134 Views)

I've already done that.

sorry but this doesn't answer my question. thank u any way

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

i'm asking how can I possibly repair this error 200460? What are the exact steps to configure a virtual channels and tasks? I know that this starts in MAX, but I think either I made an error when doing it or I missed a step.

The goal of all this is to simulate a PXI.

Hope you understood me, don't you?

 

Thank you for your help.

0 Kudos
Message 4 of 6
(3,125 Views)
Channels do not need to be created in MAX. You can create them on the VI itself. In any case, you need to show your code and the task configuration from MAX in order for someone to determine what you did wrong.
0 Kudos
Message 5 of 6
(3,117 Views)

Hello,

 

the Channels you are talking abou are created in the VI itself. Have you tried to use the example-VIs, wich are includet in LabVIEW?

Go for: Help->Find Examples in any LV-Window, enter DAQmx and search. Try to communicate to your simulated Device by using the DAQmx Examples (Analog Input/Analog Output, Digital Input/Output ...). If that works, you can compare your VI with the examples to see which differences might occure.

If that doesn't hel, please please attach your VI to the next Post.

 

Kind regards,

Jan Göbel

Applications Engineer

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