08-08-2007 11:59 AM
The attached VI is designed to communicate with a servo motor via a RS232 port. For the most part it works well, but I need a little help.
Then I went to the block diagram. Inside the top “While Loop” case “Go Button” I opened the sub VI “SM Move”. Using the same move parameters, I ran this vi, the motor stops at axis position 5. If I change the “Position” to 0, the motor returns to 0. Works perfectly.
Why does the sub vi work, but not the main vi?
I've attached the vi and also the .llb Hope I did this right.
Thanks for your help,
Bill
08-08-2007 04:33 PM
The color problem is simple to fix. There is a paintbrush tool on the Tools Palette. With 8.x, this is under the View menu. Just select the paintbrush and when you move to the front panel, right click to get a pop-up to select the color you want.
I could not run your VI because I kept on getting an error dialog. I hate it when the LabVIEW error dialogs are included in subVIs like they did here. One thing you can try is to right click on the subVI called in the GO case and select SubVI Setup and then select the Show Panel, Close Afterwareds, and Suspend options. That way the subVI will pause when called and you can view the settings on the panel and then run it to see what happens.
08-09-2007 08:40 AM
When I right clicked the Sub VI, the "SubVI Node Setup" was grayed out.
So I went to "Help" and found your instructions plus these:
Complete the following steps to have every instance of a subVIs front panel open when called.
The Front Panel When Called and Close Afterwards if Originally Closed were also grayed out.
Is there something else that needs to be enabled?
Thanks,
Bill
08-09-2007 09:22 AM