06-28-2010 09:27 AM
My problem is I don't understand how I can get this thing moving I know what's needed a event structure inside a while loop but my problem is connection to the button. I'm am new to this, using LabView 8.6. If you have any suggestions please share your insight on the matter.
Attached.
Best Regards,
HumanCondition
06-28-2010 02:23 PM
Hello HumanCondition,
Please provide us more information about your project. Are you communicating with an instrument? If so, I recommend that you first establish sucessful communication before attempting to incorporate an event structure.
Cheers,
NathanT
06-28-2010 02:35 PM - edited 06-28-2010 02:37 PM
06-28-2010 02:36 PM
I'm using LabView to serial interface my microscope, so I'm trying to set up a user interface to make the stage move by pressing buttons on my front panel.
So let me give you an overview to what happens in my code, so the configure serial port is very crucial. The VISA Write writes the bytes to the port. The first VISA Write takes the string to write command. I connected the second VISA write to make it easier whenever I enter a command, the \r will iniate the command as a whole. Example L\r will move the stage to Left once, ending up at VISA Read then closing. All of this found in separate case structures.
Now the user interface to control the the movement of the microscope is one of my issues, making several attempts to make it work yielded no results. My best work not the best but a attempt is attached, also one of the things with this I'm having trouble with is getting the button to talk to the stage. On previous buttons I worked on I could press the button and light up an LED on the front panel, I thought the same principle would relate to the movement of the stage, no such luck.
I hope I cleared up some misconceptions on my part, I appreciate your patience.