09-22-2008 03:21 AM
Hi!!
In my application i want to first display a page with my logo and "proceed button " to proceed .After clicking that button i want to enter into another panel to enter my communication settings.And when clicked "proceed button" i enter into the main VI that displays data acquired. If i formulate these as three seperate VIs how can i link them or how can implement this logic?
Thnxx!!!
Regards
DeWalker
autonews.nl
Solved! Go to Solution.
09-22-2008 05:03 AM - edited 09-22-2008 05:03 AM
09-22-2008 05:10 AM
09-23-2008 01:29 AM
Hey !!
Wiebe can u cook an example vi for me so that i get the pattern.Plus how can i transfer the values entered in one vi to my main vi (have to transfer COM port settings )??
Thnx!
Regards
-DeWalker-
09-23-2008 05:45 AM
I think you have to use the VISA functions to Read/Write from/to the COM port.
If you just want to transfer the COM port settings from one VI to another, then you have to wire those variables to the Connector Pane. From the Main VI, you have to pass the values thro' variables connected to these terminals present in the SubVI.
09-23-2008 04:27 PM
09-23-2008 04:29 PM
One more thing, the VI file paths are constants that reference my computer so after you download them to your desktop you will need to go in the code and change it to your computer. A tip to making this faster is to delete the constant, create a new one, and then drag the vi from the desktop to this constant. The constant automatically converts the filepath for you. Enjoy!!
09-24-2008 04:40 AM
10-13-2008 04:57 AM
Hi everyone!!(was away) Thank you everyone for your time and replies 🙂
Jcarmody's reply was good and simple one to get started.G-moneys example couldn't help in a way that i cant design my own panel to provide COM port selection plus the dialogue box couldnt detect the avaliable COM ports like COM port string does . How can i link a vi(for com port settings ) such that i pass my values(COM port number,baud rate etc) to the next VI to open up a VISA session.
Kind Regards
DeWalker
autonew.nl
10-13-2008 06:43 AM
DeWalker,
You could use a sub-VI to get the comm settings and avoid using VI Server altogether; this way you can wire the outputs from the sub-VI to wherever you need them. I think this is what Weibe & parthabe suggested; did you try that?
You could use functional global variables to store the settings if you have a need to separate your VIs. Those are VERY useful; study them if you're unfamiliar with their use. Shared Variables are my least favorite LabVIEW feature. Never use them!!!!!!!