LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I detect an instrument using LabView?

Hello all,

 

I'm new in using LabView, and I want to know how to detect an instrumnet using LabView? I have an ESP301 from Newport and I want to controll this device uisng LabView.

 

Best,

0 Kudos
Message 1 of 16
(4,711 Views)
It depends one the interface: RS232, USB, GPIB.
Richard






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

Hello Broken Arrow,

 

Thank you for your response. I'm using the RS232 interface.

 

Thanks,

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

THEN you need to:

  • Look at the LabVIEW examples for serial port communication. Using VISA to read and write.
  • Hookup a loopback connector to your computer and practice send commands and receiving them back on the screen.
  • Then, BEFORE you try to use LabVIEW to talk to your motor controller, use Hyperterminal or any other terminal program where you can easily send commands to the device. When this starts working, move back to LabVIEW.
  • Start writing code and check back here.
  • Don't forget to send the correct termination character.
  • Don't forget to send the correct termination character.
  • Don't forget to send the correct termination character.
  • Don't forget to send the correct termination character.
  • Don't forget to send the correct termination character.
  • Don't forget to send the correct termination character.
Richard






Message 4 of 16
(4,698 Views)

Thanks a lot. I'll try that.

 

Best,

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

Also- don't forget to send the proper termination character(s) :).

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 6 of 16
(4,671 Views)

Thank you.

 

I'm sorry, but what do you mean by that? I just installed LabView and have not finished the manual yet. Do you guys recommend any starting step for me to learn LabView? I mean which first manual from the available manuals I need to start with first.

 

Thanks,

0 Kudos
Message 7 of 16
(4,669 Views)

http://www.ni.com/academic/labview_training/

 

http://digital.ni.com/manuals.nsf/websearch/D27DC92E8D6556CD862575AC0074EDAB

 

From the main NI page, try things like "getting started labview" or "labview tutorial".  

 

Also, have a look on YouTube for LabVIEW stuff.  

 

The Example Finder is also a great way tool.  

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 8 of 16
(4,662 Views)

Just go ahead and don't feel confused, BUT: MIND THE TERMINATION CHAR.

 

Depending on your OS and the Instrument, the Termination Char may consist of /CR (Carrige Return) and/or /LF (Linefeed), propably it is even a setting of the instrument. Most users have no problem communicating with the instrument and no problem to write the correct LV code but just don't append the right termination chars in the LV code, that is the 99% the problem you will face.

So to say, you will simply get it solved by permutating /n/r. (that is not correct, just try CR, LF, CR+LF).

 

Felix

Message 9 of 16
(4,651 Views)

Thank to you all.

 

Best,

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