Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Output using DAQmx

Hello,

i want to write some digital output on multiple digital ports/lines. therefor i am building a string (as told in the LV help) looking like this for example:

Dev0/port0/line0, Dev0/port0/line5, Dev1/port0/line31

so i want to write on every line in the string a 1, true, ... whatever.

I tried with Create virtual channels, but all i get is something like this:

______________
Physical channel range syntax in the input string is invalid.

Invalid Input: Dev1/port0/line31

Task Name: _unnamedTask<1F>
______________


could someone post a vi for me or tell how exactly i have to setup those channels? i don't get it 😞

Thanks in advance

vayu
0 Kudos
Message 1 of 6
(3,945 Views)
Vayu:

I *think* that you can't have more than one port in a DIO task. Since you are using three different ports, try making three tasks for it.
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 2 of 6
(3,939 Views)
but why does the help tell me to put them in a comma seperated list?
0 Kudos
Message 3 of 6
(3,921 Views)
ok now i got so far, as I got some output.

I used "DAQmx Create Virtual Channel.vi"

and gave it a list, which looked like this ...

Dev1/port0/line28, Dev1/port0/line29, Dev1/port0/line30, Dev1/port0/line31

but it only works so far, that it only puts out the last line "Dev1/port0/line31"

grateful for every help.
0 Kudos
Message 4 of 6
(3,919 Views)
Well, now you're getting into more nitty-gritty details. I can address your question for C/C++ but I don't use Labview.

In C/C++ there is a parameter to DAQmxCreateDOTask (or whatever it is- I haven't turned on my PC yet, and I can't read teh documentation on my Mac) to tell it to create a separate channel for each line, or to create one channel for all the lines. This affects how the bits are interpreted.

You probably better post your vi, and hopefully someone else will respond who knows Labview.
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 5 of 6
(3,908 Views)
hi and thanks for your answer,

i already got the problem now 🙂

the string of channels was to be connected to the "channels"-connector, which wasnt of type string. So as a LabView newbie I didnt recognize, that it could also be put on there.

now all runs perfectly wonderful 🙂

Thanks

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