02-25-2008 12:57 PM
02-25-2008 01:11 PM
Ravens Fan wrote:
I think you would be able to duplicate your read functions that are outside the loop and move them inside. They would use the same purple task wires. Sometimes this won't work and Labview will raise an error about conflicting resources. But I think that would happen if you were reading multiple samples at different places based on a clock. Since these are all single point reads and aren't based on a clock, I don't think that would happen. You'd have to try it to find out.
Ravens Fan wrote:
Another alternative would be to put the status of the digital inputs into another action engine. Since you already have one of those in your program now, you are probably getting some experience with them. Set up your DAQ tasks to run in a separate, parallel loop. The values would be fed into an action engine to store the current values. Use multiple copies of the action engine to read the current values of whatever inputs at any location where you need them. This will allow the action engine to be write once, read many without having a read many on the actual DAQ hardware.
02-25-2008 03:36 PM
smm wrote:
So are you impying that I should use 6 read daqms with 6 create channels inside the while loop? Alos if you look at messages 56 and 57, I tried somehting similar. Only instead of create channels and individual lines, I had used global channels for the lines, but in msg 57 Lynn suggested that it would not work since the lines would only be read outside and not inside the subVI. So could you tell me if I'm thinking the correct thing
02-26-2008 07:51 AM
This is the modified version of the demo versions with what I interpreted to believe what you were saying. Could you please take a look. I have attached the modified main VI and the subvi.
The main vi looks like a jungle of wires again, but that is onnly because of the create and read daqmxs. The rest is according to Lynn's demo version.
Also the start stop button does not seem to funstion well. I had to negate the logic to get it moving. I don't know why it wasn't reading it. Also could you tell me what the while loop witht he simulated stop button does? And id it the same thing as the stop in the main while loop(near loop done)
02-26-2008 07:51 AM
Ravens Fan wrote:
One thing you may need to do is create the DAQ task constants that define the lines for each of the 6 tests and pass that into the T-stat subVI so that it reads the correct DAQ channel for each of the 6 instances of the subVI.
02-26-2008 08:31 AM
On testing this I keep getting the error:
"Error -200463 occurred at DAQmx Read (Digital 1D Bool NChan 1Samp 1Line).vi:2
Measurements: Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.
If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.
Number of Lines in Channel: 5
Number of Lines in Data: 1
Task Name: _unnamedTask<10>"
What am i supposed to do to avoid this error?
02-26-2008 09:12 AM - edited 02-26-2008 09:21 AM
smm wrote:
This is the modified version of the demo versions with what I interpreted to believe what you were saying. Could you please take a look. I have attached the modified main VI and the subvi.
The main vi looks like a jungle of wires again, but that is onnly because of the create and read daqmxs. The rest is according to Lynn's demo version.
Also the start stop button does not seem to function well. I had to negate the logic to get it moving. I don't know why it wasn't reading it. Also could you tell me what the while loop witht he simulated stop button does? And id it the same thing as the stop in the main while loop(near loop done)
smm wrote:
Ravens Fan wrote:
One thing you may need to do is create the DAQ task constants that define the lines for each of the 6 tests and pass that into the T-stat subVI so that it reads the correct DAQ channel for each of the 6 instances of the subVI.
Could you also tell me what this means?
02-26-2008 09:31 AM
smm wrote:
On testing this I keep getting the error:
"Error -200463 occurred at DAQmx Read (Digital 1D Bool NChan 1Samp 1Line).vi:2
Measurements: Specified read or write operation failed, because the number of lines in the data for a channel does not match the number of lines in the channel.If you are using the Digital Waveform datatype, make sure the number of lines in the digital waveform matches the number of lines in the channel. If you are using boolean data, make sure the array dimension for lines in the data matches the number of lines in the channel.
Number of Lines in Channel: 5
Number of Lines in Data: 1Task Name: _unnamedTask<10>"
What am i supposed to do to avoid this error?
02-26-2008 10:10 AM
02-26-2008 12:13 PM
I ran the cleaned up code you sent. I am still getting that error. I will try deebugging thought but still. Also Ihave my hardware running well.
I tried testing the other version I sent mux_try_demo[4]. But for some odd reason it goes from power on to fuse check. Whihc implies that the power is not turning on, whihc i s not true since the led's which I have put for testing on the hardware are on indicating that the power is reaching the units. I dont know why the power is not turing on from the code DAQ?