Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Use VISA when connected directly via RS232?

I'm not using a DAQ to connect to a pressure transducer I'm trying to read from. Do I need to use VISA to connect the gage to LabVIEW?

0 Kudos
Message 1 of 11
(3,762 Views)

VISA is the preferable way to use the COM port in LabVIEW.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 11
(3,755 Views)

can anybody please help in controlling the direction of dc motor through  switches in front panel..i.e if i press switch1, motor moves in CW direction and if i press another switch, it rotates in acw direction..

Message 3 of 11
(3,674 Views)

Hello withravii,

 

What type of motor are you using (stepper, servo, brand, type, and manufacturer)? Do you have a drive for that motor? How is the motor connected to your computer? What sort of Motion Controller (i.e Motion Controller PCI/PXI card) do you have for that motor? Is it a National Instrument Motion Controller?  Did the motor come with drivers?  Have you taken a look at this page to see if there are drivers available for your motor? I apologize for all the questions but they are necessary in order to get a full picture of your application so that I or anyone can give you an appropriate answer. 

 

Regards,

 

Izzy O.

Applications Engineer

National Instruments 

0 Kudos
Message 4 of 11
(3,654 Views)

Hello Izzy O,

thanks for the reply.Actually I am using dc geared motor and it would be connected to the pic microcontroller circuit and to the laptop through USB to serial converter, motor driving IC which I will use is L293D. My objective is just to control the direction of the dc motor through labview.

0 Kudos
Message 5 of 11
(3,628 Views)
So what exactly do you need help with? If this pic and board is something you designed, you are the only one who knows what data to send. I would suggest you do some basic debugging with a terminal emulator program such as hyperterminal, procomm, putty, etc. before you write the LabVIEW code. After you get that working, your program should be fairly easy to write.
0 Kudos
Message 6 of 11
(3,619 Views)

actually I am new to LabVIEW, and I have no idea how to program in labview using visa write to control the dc motor through switches in front panel

0 Kudos
Message 7 of 11
(3,614 Views)
There are online tutorials to help you get started with LabVIEW. There are also a couple of serial examples that come with it. Basically, you use a VISA Write to send the necessary command. A Boolean for each direction, wired to a case statement with the VISA Write inside would be a simple starting point. As long as the button is true, the command would be sent.
0 Kudos
Message 8 of 11
(3,609 Views)

It would be a great help for me if you can help with with a block digram connections.

0 Kudos
Message 9 of 11
(3,588 Views)

Hello Withravii,

 

Shown below is a quick example of what Dennis_Knutson is referring to, which is good idea for your application.

 

Regards,

 

Izzy O.

Applications Engineer

National Instruments 

 

DF1a.GIF

 

DF1.png

 

 

0 Kudos
Message 10 of 11
(3,571 Views)

Thanks Izzy O for your concern.

 

Regards


Ravi

0 Kudos
Message 11 of 11
(534 Views)