04-20-2012 02:44 PM
04-20-2012 02:55 PM
You should probably set up a proper state machine. That means one loop with multiple cases (states) that determine what a user can and can't do at any given point in time. You can enable and disable controls so that a user cannot change units when they are not supposed to.
04-20-2012 02:59 PM
04-20-2012 03:06 PM
@Bombbooo wrote:
I want to keep the first while loop because i want to limit the user to adjust all units before the vi is run. And i alos want to limit the user to not be able to adjust the units after he starts the accquisition
You still have not shown the VI that does the actual acquisition. All that you have is a VI for display purposes. This code needs to be done before the acquisition - not after like you have here. You can either make the suggested changes or not. It is up to you but the existing code will not work unless you only want to do a single acquisition. It is as simple as that.
04-20-2012 03:13 PM
04-20-2012 03:18 PM
I have no idea what sort of hardware you are using for acquisition. I think I asked you once but you did not answer. Are you planning on acquiring real data or is all of this some sort of make-believe? The code will depend on the type of hardware you use.
04-20-2012 03:19 PM
04-20-2012 03:22 PM
You can easily simulate NI DAQ hardware and I think I already mentioned that as well. I still have no idea what the actual hardware is going to be. I guess you have no idea either.
04-20-2012 03:29 PM
04-20-2012 03:41 PM