04-22-2013 03:31 AM
Hey hey
Okay first of all i want to read in multiple digital signals and see if they are true or false of my NI6212. I did this with the Readmx block and then i did read them individualy but somehow this is giving me problems with one line. This line keeps flickering when the line is true so it gives me true/false values with the Readmx block. So what i did next is use the DAQ assistant and read these ports in and just put them on a 1-D array indicator this seems to have solved the problem i finaly had a real true en false value without flickering (see test 1 program). So what i wanna do next is read them in with the DAQ assistant and split them up but somehow i cant split them up (see test 2 program). Does any 1 here know how or what i can do?
Greetings
Thomas
04-22-2013 08:28 AM
@baloeto wrote:
Hey hey
Okay first of all i want to read in multiple digital signals and see if they are true or false of my NI6212. I did this with the Readmx block and then i did read them individualy but somehow this is giving me problems with one line. This line keeps flickering when the line is true so it gives me true/false values with the Readmx block. So what i did next is use the DAQ assistant and read these ports in and just put them on a 1-D array indicator this seems to have solved the problem i finaly had a real true en false value without flickering (see test 1 program). So what i wanna do next is read them in with the DAQ assistant and split them up but somehow i cant split them up (see test 2 program). Does any 1 here know how or what i can do?
Greetings
Thomas
It concerns me that the Read DAQmx didn't quite work for you. I have a feeling you didn't setup the ports beforehand and the line kept changing states with each read.
As far as what you have now, all you need is to index the Boolean array (Array Index).
04-24-2013 02:36 AM
Hey thanks man for the fast reply. I'm gonna try it. But somehow the flickering is gone and the Read DAQmx works now. What did u mean setting the port beforehand? I fixed the port at the Read DAQmx i added it as a constant.(see test 3). But now i still don't know what caused my input line boolean to flicker. I measured with a scope on my input port that time but didn't see the flickering there.
But thanks again.