02-26-2011 05:13 PM
I'm attempting to develop some data acquisition software for a fleet of suitcases that our company will use for going out to customers sites and auditing their setups for some pressure data, some temperature data, and some flow data.
I'd like for someone else to take a look at the code just to double check if it looks like I'm doing everything right or if there are any glaring problems here. I'd also like to get a few questions answered about the code I've written.
I've had lots of great help from the forums so far with other programs I've written and gotten through lots of issues because of it so I thought I'd toss it out here to see if anyone has a few minutes to take a look at what I've got and offer some constructive feedback.
One thing I was wondering about, these suitcases will have a cDAQ-9174 inside of them with a 9203 current module onboard to do the readings, each cDAQ will be serialized, along with the sensor package for the case, and the netbook that will be going along with it. What I wanted to know is how to write one program that I can install on each computer and have it recognize the DAQ that's in it's case, (either through a setup process, or through some interaction with the operator) so that I don't have to write the program for each case, going into the DAQ assistant in each one and changing the DAQ name. I'd also like this option in case any of the DAQ's/computer's need to be switched from case to case. I know that most of the forumites shun the DAQ assistant, and if it's easier to do this using DAQmx, then I guess it's time I manned up and learned how.
Thanks in advance for any help.
-Ian
02-26-2011 05:28 PM
I updated the top level .vi with some notes to explain a little more. Probably easier to understand what I was going for if you download this one instead of the first one.
02-26-2011 05:56 PM
Overall it looks pretty good.
My comments
02-26-2011 06:17 PM
Please don't ever again post a VI set to run when opened.
02-26-2011 10:14 PM
Sorry about the run when open, I didn't think about that. Won't happen again.
The Get Queue Status was put there originally to check to see if the queue had items in it before proceeding to the read and write cases. I realized it didn't need it so I unwired it but forgot to remove the status.
Thanks for the other tips, I'll put them to use.
Anyone have any ideas for writing something to identify the program to the case that it's in? Can this be done during installation of the program. I'm still new to distribution, so any help there would be great.
Thanks,
-Ian
02-27-2011 11:30 AM
@Dennis Knutson wrote:
Please don't ever again post a VI set to run when opened.
I didn't notice that since the vi was broken - I don't have DAQ-MX installed. But that could be dangerous. Is there any way to avoid automatically running a vi? Maybe LabVIEW should have some kind of "safe mode"?
02-28-2011 07:39 AM
If you drop the VI into a blank VI as a subVI, then open it from there, it will open in edit mode. It is not automatic but not very much of a burden either.
Lynn