02-26-2008 12:26 PM
I think the error is with the daqmx read. I broke it down to test just one unit instead of 6. I kept it as simple as possible without the start/stop button anything. Just one while loop with 1 subvi and the read daqmx and create channel outside the loop. It still gives me that error. I think it cannot comprehend lines coming in from two ports. I maybe entirely wrong but thats just my guess.
Can you help? Sorry to keep bothering you over and over again.
02-26-2008 01:51 PM
02-26-2008 04:30 PM - edited 02-26-2008 04:31 PM
02-27-2008 10:54 AM
So I have been debugging the code. But I know for a fact (or atleast I think that is it ) that there is one problem witht he index arrays. My problem is, if you see the heat mode for example. In the flat sequence structure,the 1st frame has a write daqmx vi. And the array subset vi in the next frame has the data line coming from the putside (the main vi inherently). Now the operation that the write vi does, actually changes the data read. But as of now because I cannot show that the write vi comes before the array subset, i cannot see the change. Hence reads incorrect results.
I want to be able to make the write vi run first and change the data read instead of the write vi and data read run in parallel.
02-27-2008 10:55 AM
02-27-2008 04:00 PM
02-28-2008 09:08 AM
That is exactly a good idea and it seems to wrok. But you see, the heat mode is just a precursor to bigger prblems. The cool mode is where the major issue lies since there are about 3 writes on which consequent reads depend.
Having said that, my problem as of now also seems to be that the LEDs on the front panel (heat_read, cool_read....etc) do not illuminate for the correct signals even though the mode passes. It shows the 1st and 3rd led on often (1st i.e top LED almost always on).
I think its the read1 lines, that I am reading are in some conflict. Initially I had it set up to read from the mainn VI via the data control.
Then for testing purposes I disconnected the data terminal and instead am reading it individually in each mose as in the attached VI.
Do you think you could take a look and tell me what could be wrong.
Thanks.
02-28-2008 01:05 PM
02-28-2008 01:16 PM
02-29-2008 08:06 AM
I tried them all together along with the start stop button and all that and it all works. Thanks to you guys. But I still ahven't been able to figure what to do with the unit in. I know lynn said that it's supposed to be connected to a shift register but when I connect the unit in htp the left or roght wall of the while loop, it gives me a broken line and an error saying you are connecting 2 different data types.
Also why don't the units get tested in order. As in the states run randomly for any unit instead of doing a unit 1, unit2....unit6. It runs randomly like unit6, unit3, unit4, unit5, unit2, unit1 etc.
Please help.