02-18-2011 10:07 AM
can i use visa.vi for rs232 to db25 port? because where using rs232 to parallel port (db25).
and also any vi to read data from serial.
im new in labview i just learn it on tutorial from youtube,,
if not can anyone give me an idea how to make it or can give me a example vi.
tnx..
Solved! Go to Solution.
02-18-2011 12:55 PM
Is this related to this or this?
You're mixing protocols and hardware. RS-232 is a protocol - a means of communication. The DB-25 port is a connector. It's neither serial nor parallel. It's what's connected to it that's important. You can have a DB-25 connector that's used for serial communication or you can have a DB-25 port that's used for parallel communication (like a printer).
I would suggest you start here: Instrument Control in LabVIEW Tutorial in order to get an overview of instrument control.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
LabVIEW also ships with examples for serial communication, which you can find via the Example Finder (Help -> Find Examples).
Once you've gotten a better overview, you can post back with a follow-up question.
02-19-2011 10:42 PM
i have dis vi attached but im not sure if this is right nad it can read rs232 to db25 port..
is there is a software or application that may simulate this vi? 🙂
02-19-2011 11:30 PM
Are you just trying to loopback the serial port on your pc? Connecting the return count to the byte count does not make much sense. If you are doing a loopback, then it's not a very good simulation of communicating to an actual instrument.
If by 'simulation'. you mean other serial communication programs, there a large number of terminal emulation programs out there. Hyperterminal used to come with windows. Others are MAX that gets installed with NI-VISA, Procomm, TeraTerm, etc.
02-20-2011 09:02 AM
Actually were trying to read frequency data from the instrument so i used loops to read and write data continuously..
am i ryt?..
i attach new vi. can u help me wid this if it can rs232 to db25..
is hex value coming out from the visa resource?
02-20-2011 11:16 AM
Your front panel might be ... catchy (and frankly annoying), but your VI doesn't make much sense. If you want your code to "start" when the user presses a front panel "Start" button then you need to sit and wait until the user presses start, not rely on the user to press Start before running your VI.
Also, you have:
See attached mod as a better starting point.
03-02-2011 07:14 AM
in interfacing it may work in cd4052??
03-03-2011 01:37 PM
koko13,
How are you talking to the cd4025? The protocol you use, which should be in the documentation for the device, will determine whether you can use VISA or will need something else.
Hope this helps,
Jen W
Applications Engineer
National Instruments
ni.com/support
03-04-2011 08:21 AM
im talking about the new mod vi... if this is right to read data from cd4052..i try it but did not work...
03-04-2011 09:15 AM
You've provided exactly zero information on this cd4052 and just saying your code does not work is insufficient information. Doing a google of cd4052 returns an IC and obviously that is not what you are using. Provide a link to the instrument manual or attach it. Provide the error number that you get when you run your program. Test instrument communication with a terminal emulation program such as Hyperterminal.