LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Command to Machine

Hi,

So I am awfully new to the programming world and I need some help.

I am trying to write a LabVIEW VI to send commands to a machine via USB to Serial (SR232)  port.

After researching my machine and LabVIEW, I found information on using VISA

 

Right now I have Visa configure serial port to Visa Write connected to Visa Read and then the VIsa close.

My commands are in ASCII.

Any recommendations or spots to get more information on beginning coding, please let me know!

Thanks!

0 Kudos
Message 1 of 4
(3,315 Views)

at the top of the forum are links to learning resources.

if you have a active labview subscription, you might want to look through the Online Training.

 

the examples coming with labview are also a good source.

 

also if you want ppl to help you, be as thorough with your question/problem description as you can be and best to always include your code as VI (if you have multiple, put them all in a .zip).

the fewer things people have to guess or look up themselves (like manuals for machinery) the more help you will get.

 

:cheers:

 

 


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 4
(3,311 Views)

While you are learning basic LabVIEW Programming (using the Tutorials, such as those mentioned on the first page of the Forum, plus LabVIEW Examples, LabVIEW Help, books, courses, and the Web), also learn about LabVIEW's Measurement and Automation Explorer.  When you installed LabVIEW and its drivers, you also got MAX (as it is known).  You can open MAX, find the Serial Port (and it is RS-232, not SR), configure it (you need to know the speed, also called the Baud Rate, and other parameters that your Serial Device requires), and then see how it responds when you send it Ascii commands.  You can also get its responses.

 

Once you understand your device, its parameters, how it reacts to commands, etc., you can think about writing LabVIEW routines to do the same things you were doing with MAX.

 

I'll bet if you do a Web Search for LabVIEW MAX, you'll find more information.

 

Bob Schor

0 Kudos
Message 3 of 4
(3,262 Views)

Hello NessieStarLight,

 You can use the examples from the NI Example Finder for more information on how to communicate with serial devices.


CLD Using LabVIEW since 2013
0 Kudos
Message 4 of 4
(3,213 Views)