Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I control the opening and closing of a Uniblitz shutter using LabView

I am completely new to LabView and I was given the assignment to write a program that keeps a Uniblitz shutter open for a set amount of time and then closed for a set amount of time and then open again etc. 

 

I do not even know where to begin so I would appreciate any help.

0 Kudos
Message 1 of 16
(4,696 Views)

Begin by reading the instrument's manual.

It must be doable if you are being asked to do this.

0 Kudos
Message 2 of 16
(4,695 Views)

The Manual does not tell you how to write a program in LabView.

0 Kudos
Message 3 of 16
(4,670 Views)

@kelasate wrote:

The Manual does not tell you how to write a program in LabView.



If you don't understand what means are available for controlling the instrument then having LabVIEW or not isn't going to help you.

 

 

0 Kudos
Message 4 of 16
(4,668 Views)

Hey kelasate,

You'll first want to check either the users manual or a programmers manual (if available) to find the command set that the device will respond to. You'll then need to see what types of ports the unit has that you can use to control it. Instruments today usually have USB, GPIB, Serial (RS232), Ethernet as well as others. If you don't have a matching port on your computer that you can use to control the instrument then you might need to purchase a controller (such as a USB-GPIB cable) in order to control the device.

 

Finally, once you have figured out how to physically connect your computer to the instrument, you can start with some of the shipping examples for instrument communication that come with LabVIEW such as Basic Serial Write and Read.vi and GPIB-VISA.vi. You will need to make sure that you are writing the exact valid commands that the user manual or programmers manual for the instrument provides. Try these steps and report back.

 

Lars L

NI R&D

0 Kudos
Message 5 of 16
(4,656 Views)

The controller connects via rs232. It has a converter on it though so it connects to the computer via USB. The language used for the test program is microsoft quick basic, which I am not familiar with either. The driver will read a text file on a DOS program but I have a mac and we want to be able to control it using LabVIew interface. 

0 Kudos
Message 6 of 16
(4,636 Views)
All of that is irrelevant. Find the command that controls the shutter. Send it with a VISA Write. Use the serial examples as a starting point.
0 Kudos
Message 7 of 16
(4,633 Views)

What kind of "command" am I looking for? I know in DOS is opens using ASCII commands A and @. 

0 Kudos
Message 8 of 16
(4,617 Views)

You are looking for a command that opens and closes the shutter or is the subject of this thread completely bogus? What exactly is so confusing about reading the manual to understand how the device works? If the information is missing, you need to go to the vendor and stop asking here.

0 Kudos
Message 9 of 16
(4,611 Views)

What exactly is so confusing about "completely new to LabView?" Honestly, I would rather have help from the previous responder, LabView R&D engineer, so please refrain from "helping" me any further. 

0 Kudos
Message 10 of 16
(4,606 Views)