06-08-2018 09:48 AM
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!
06-08-2018 09:55 AM - edited 06-08-2018 09:56 AM
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:
06-10-2018 08:47 PM
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
06-22-2018 06:42 AM
Hello NessieStarLight,
You can use the examples from the NI Example Finder for more information on how to communicate with serial devices.