LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous digital acquisition to variables for 9421

I have a 9421 DAQ that I would like to output to network variables for access from another computer. I have several analog DAQs working but cannot figure out the digital. I would like to take continuous samples at around 1hz which I have configured in the daq assistant. I would simply like to send each Boolean from the 8 inputs on the DAQ Assistant to an individual network variable but I cannot get anything to work. No matter what I wire or try to split signals it does not match the data types. Thanks in advance.
0 Kudos
Message 1 of 7
(3,360 Views)

Is it possible to post your code or a snapshot of it? I believe you must be getting an array of digital waveform. I'm not sure how exactly you want to communicate this data over but you could use Index Array to get a digital waveform and then use Get Waveform Components to get access to the digital array and then transfer it over using shared variables.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 7
(3,347 Views)

I would like to break up the array to have each input in its on variable. There isnt much code being that I am just taking a DAQ and putting it to a variable. here is an image of what you suggested however I would like to have seperate variables.

 

9421.JPG

0 Kudos
Message 3 of 7
(3,338 Views)
I apologize, I wasn't thinking straight. You will need to use the Get Digital Data Components VI and you can then use the apporpriate shared variable to transmit the data.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 7
(3,325 Views)

Ok I wired it up using those settings but am now confused. It seems to output doubles and not bools, and even stranger the double is not a 0 or 1 it is .001. Do you know how to setup the advanced timing and sample clock? Thank you for the help so far.

9421digital.JPG

0 Kudos
Message 5 of 7
(3,319 Views)
The output of Y in your second last post needs to be connected to the Get Digital Data Components VI.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 6 of 7
(3,315 Views)

I added that in but still cant seem to get it right.  I simply need a continuous output of bools or 1&0's from each input with a freq that can be less than 1hz. Here is the picture now.

 

labview.JPG

0 Kudos
Message 7 of 7
(3,289 Views)