08-25-2010 04:23 PM
OK I clean up your code a little. It still needs more cleaning. You need to make it fit on one window. I would also think about a communication subvi where you have one vi that generates the command in a state and one that sends the command in a state. Then I would use a State Machine array to do all of the generates commands and sends. Sounds like a lot of work but I did this with a high speed camera and it was the best thing I ever did.
08-25-2010 04:24 PM
OK I clean up your code a little. It still needs more cleaning. You need to make it fit on one window. I would also think about a communication subvi where you have one vi that generates the command in a state and one that sends the command in a state. Then I would use a State Machine array to do all of the generates commands and sends. Sounds like a lot of work but I did this with a high speed camera and it was the best thing I ever did.
08-25-2010 06:59 PM
Hi,
Thank you for answering? I do not know what is arrrayed state machine. I just want to make the two buttons for one, no matter which one is kept.
08-25-2010 07:10 PM
Thank you for cleaning up. Can you help me to creat a state machine, I really do not know what it is. Also, when I use this code to control the soucemeter, the current display is mA, I want it to display as uA. Do you know which part of the code I should change. Thanks
08-26-2010 04:14 AM
First, have a read through this document
Then, have a play with the template VI, which can be found in
New... -> From Template -> Frameworks -> Design Patterns -> Standard State Machine
If you're still unsure, we are still here
08-26-2010 07:32 AM
Give me a little time to work on this today. I will try and give you some updates later on.
08-26-2010 09:23 AM
Can you give me the time delat - gpib and the Wait Until BufferFull - gpib vi's?
08-26-2010 09:36 AM
Hi Tim,
Sure. If you need anything else, just tell me. Thanks so much.
08-26-2010 02:13 PM
Well you have been waiting all day. This was a lot of work. I did not finnish this but wanted you to see the concept. You will have to finish the rest of the commands and check what I did. You may have to tweek some of the commands to get then to work correctly since I do not have you device here to test with. I was still missing two or three vi's but everything was working except that when I boxed it up. Let me know if you have any problems or questions.
08-26-2010 02:52 PM
Hi Tim,
Thanks so much for your kind help and thanks for your patient. You really helped me a lot. I think I can figure out the rest of them, just need some time. Thanks again.
Best regards,
Perry