取消
显示结果 
搜索替代 
您的意思是: 

How to creat a global variable?

已解决!
转到解答

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.

Tim
GHSP
0 项奖励
11 条消息(共 20 条)
2,233 次查看

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.

Tim
GHSP
0 项奖励
12 条消息(共 20 条)
2,232 次查看

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.

0 项奖励
13 条消息(共 20 条)
2,216 次查看

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

0 项奖励
14 条消息(共 20 条)
2,212 次查看

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

_____________________________
- Cheers, Ed
0 项奖励
15 条消息(共 20 条)
2,184 次查看

Give me a little time to work on this today. I will try and give you some updates later on.

Tim
GHSP
0 项奖励
16 条消息(共 20 条)
2,169 次查看

Can you give me the time delat - gpib and the Wait Until BufferFull - gpib vi's?

Tim
GHSP
0 项奖励
17 条消息(共 20 条)
2,152 次查看

Hi Tim,

 

Sure. If you need anything else, just tell me. Thanks so much.

0 项奖励
18 条消息(共 20 条)
2,145 次查看
解答
已被主题作者 Perry_Liu 接受

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.

Tim
GHSP
0 项奖励
19 条消息(共 20 条)
2,127 次查看

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

0 项奖励
20 条消息(共 20 条)
2,116 次查看