‎08-30-2005 11:48 AM
‎08-30-2005 12:43 PM
‎08-30-2005 01:47 PM
‎08-30-2005 01:58 PM
‎08-30-2005 03:06 PM
Whether you have 1 channel or multiple channels, the example uses exactly the same diagram (assuming all of the analog channels are set the same). In the channel list, you can specify single OR multiple channels. For multiple consectutive channels, it would be Dev1/ai0:7. The example is monitoring a whole port (8 lines) but that can be changed to a single digital line, multiple lines, or multiple ports.
I may also have misunderstood your problem. I thought you wanted to acquire a single digital input of all lines at the same time you acquired the anlaog. If you want to acquire 100 scans of all digital lines in each loop, you can't. Since the digital I/O is software timed, you will read the digital lines once for each loop iteration. You don't have a hardware clock to scan x number of channels at a certain rate like the analog input does. You could have the digital read in a separate while loop with a short delay but since the clock in a pc is not accurate and the OS isn't deterministic, the best way to read the digital lines every msec is to use a timed loop if you have LabVIEW 7.1. The other way is to get a digital I/O card with hardware timing.
‎08-31-2005 11:58 AM
‎08-31-2005 02:07 PM
‎08-31-2005 05:53 PM
‎09-01-2005 09:34 AM
You didn't have to provide a link. You can just use the attachment button below the message body. And, when you post a VI, that doesn't include ths subVIs. What you should do is Save With Options and select Development Distribution. That will create an LLB that contains your main and subVIs.
From looking at the main VI, it seems you're doing a lot of post processing and also a file write with each iteration. All of this is going to drastically slow down how fast you can run the loop. You may want to pull out the digital I/O into it's own while or timed loop and pass the data to the main loop with a queue. You could also speed up the file write considerably by writing a binary file and not using the Express function. You might also want to consider waiting to write the data when the main while loop stops. I also don't understand why you're building 7 different tables. It would probably be more effecient to build a single table with 7 different rows.
‎09-01-2005 05:47 PM - edited ‎09-01-2005 05:47 PM
Message Edited by sdonah2 on 09-01-2005 05:47 PM