LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IS IT POSSIBLE TO RUN TWO DAQ CARDS?

 Kevin I would agree..... .in struggling with this thing I went in and deleted all the leds from the front panel and resaved the file.  It only went down very minimally in size when resaved. I have approximately 80 leds,NO GRAPHS OR CHARTS and around 30 UDP text indicators and one bigger concatenated string indicator of  approximately 80-100 worse  failure statements that displays on my front panel.   

When I take dc readings each dc reading has one single  instance of daq assistant, one channel selected in that instance , a pass fail range numeric compare, a true false case decision , a numeric indicator of the value read and then finally a pass fail led ,,,the next reading has exactly the same as above and so on and so on....... all 80 or so text-numeric  answers are fed into a shared concatentaed string function that feeds into my string indicator on my front panel so i will get 80-100  worst case concatentaed failure statements in that one single indicator with a space in between each one of them. 

Is there some basic programming structure approach Im doing wrong that is causing such a  huge file thus failures at the 90mb size  ?  Thanks J

 

 

0 Kudos
Message 11 of 14
(679 Views)
How many instances of the DAQ Assistant are we talking about? Since you only have 2 DAQ boards, you should only have 2. A single DAQ Assistant or DAQmx Read can be used for every channel on a board. I'm sure your code be greatly simplified if you would use the hardware and software as intended. Instead of separate indicators, you can also simplify by using arrarys or clusters. That may make some difference in the file size but I think reducing 80 to 2 DAQ Asssistants will make a huge change. Your diagram has to be enormous to have all of that code in one place as well. A good rule of thumb is that a diagram should be no larger than your screen size.
0 Kudos
Message 12 of 14
(667 Views)
Dennis  .... you are correct its alot of info on the screen which extends well beyond the initial screen size ...I was never instructed this was a problem and I have several other programs I have written up to 76mb that run and edit  flawlessly....... can you show me a brief example of how to take two dc measurements from a single instance of daq assistant using 2 of the 63 possible ai channels and displaying each ?  This may be the key to getting this one to work..obviously-maybe  the way I am doing it is too resource heavy- so maybe your resource conscious approach will work. Thanks in advance J.
0 Kudos
Message 13 of 14
(663 Views)
For multiple channels, you just have to hold down the ctrl or shift key as it says in the wizard whenyou are asked to select the physical channels. You can also add channels to an existing Assistant and do the same thing. I don't know what type of sampling you are doing (i.e. N samples or 1 Sample) but you can use the split signal function to get each channel or you can use the From DDT to create a 1D array of scalars where each element would be a channel with a 1 Sample configuration or a 2D array with an N sample configuration. the attached example is set to read 1 sample from each of 16 channels and display the results in an array.
0 Kudos
Message 14 of 14
(656 Views)