Reading port com1 through LabView

Hi all!

I create an application that will receive the data sent by the software installed on your computer. The software communicates with the hardware dedicated via usb connector. In the software, it is possible to choose the COM_x (x = 1, 2, 3...) port and baud rate.
The purpose of this application is to follow the data sent to the material in order to control it as the data sent.

The questions are:

How to display the computer COM port in the LabView environment?

And you need to install the driver-s for this? What is?

The COM port is available on your computer should appear in the NOT-max software?

Unfortunately, I couldn't find this information and I need help for this application.

Thank you

Gabriel

So another piece of software on the same computer has a serial port control and sends data through it.  You want to intercept these data?  Unfortunately, LabVIEW can do that.  LabVIEW will take control of a serial port and have full control of it.  It will not share a port with another software.

Now if you made a loopback cable and used a second port, your LabVIEW program can read the data from this port.

Tags: NI Software

Similar Questions

  • Ports COM1-4 'missing' Satellite M30

    Hello, communication ports (COM1-4) series of my sound of portable Satellite M30 suddenly "disappeared", or, at least, Window XP (Home version) is unable to detect them - through the management of resources or similar tools of surveillance - only parallel port (LPT1) is reported.
    Problem is that the modem (internal standard) (by default on COM3) is unable to work. Modem seems ok - at least according to Windows - but, as you can guess, it cannot accept AT command (and therefore start up).
    Everything else seems to work fine - including the Infrared Port, which should work, by default, on COM4? and mouse Touchpad. No problem i/o and IRQ address is detected on the other peripherls.
    Only the system serial port driver (serial.sys) is alarmed that unable to boot because.
    ..??? .. Even thought a hardware problem - ex.electrostatic discharge or similar? - but a couple of days ago the modem starts unexpectedly and worked correctly for long enough - even if with the COM ports still without being detected by Windows - but after connection went down and modem could not start (Error 633: modem, a device already in service or other problems of configuration...).
    .. Before proceeding to more annoying (and probably expensive) actions - such as reinstalling Windows?... or looking for a repair center - I wanted to try to replace the driver (serial.sys) series, but I was unable to find it-in the CD provided with the product or on the Toshiba site. Where can I find it?
    Other suggestions?
    Thank you

    Hello

    Don t look for serial port drivers. These ports are using simply common Microsoft Windows drivers!
    According to your description there are different problems with different internal devices.

    If all goes well it of not a hardware problem?  :|

    So in my opinion we must first know if it s a software or hardware problem.
    In this case you take your original Toshiba Recovery CD and must be reinstalled the operating system.

    Note; the whole HARD disc will be fomrated and you will lose data. So, don t forget to back up your data.

    If the new installation of the operating system didn't help any, and you will always receive error messages the technician must check the laptop!

    Good luck

  • How to select the path of data through labview

    Hello gurus...
    I'm new user in labview. I want to read and write to the database via labivew. I have
    read and write the program. Now, I want to choose the way of storage of data through labview.
    I tried different ways, but I couldn't.
    First of all read and write the program I did via the UDL file path. Now, I want to choose ".mdb" file path directly.

    I do not know how...
    So if you know please help me...
    Thanks

    Concerning
    Joel M
    India

    Rather than trying to create an Access database, I have simply included a blank database with the installation.  Open, build the tables as required (as your example shows), and then copy (using the copy of the palette of Advanced File i/o) whenever you need it.  Your program will need to know where it is, therefore, store the connection information in a configuration file (as already mentioned) is a possibility.

    Here's how to use a connection string to open a database:

  • How can I change my card ethernet through labview speed?

    Hello

    I need a way to change the speed of my 1000 Mbps to 100 Mbps ethernet card. I know that I can change speeds through the connection to the local network set properties->-> link speed, but I need a way to do it through labview for a project.

    Thanks in advance.

    You could try going in and changing the registry entry that defines this property

    Take a look at the following two links:

    http://thedailyreviewer.com/windowsxp/view/set-SpeedDuplex-via-registry-change-108254266

    and combine that with the registry, the code of this edition:

    http://decibel.NI.com/content/docs/doc-12290

    Dave T.

  • broadcast another program through labview

    Hello

    I have a question

    is it possible to broadcast another program through LabVIEW?

    for example, I run a program in my computer, is it possible to have the remote people to look at how the program runs through the Internet and LabVIEW?

    Thank you

    Cynitha

    Yes and no.

    Yes - if you are showing them how to use a VI that you configured as a server, they can watch using remote façade. There are also (limited) ActiveX controls that allow you to use external applications in LabVIEW, IE: Word, Excel, WMP, etc.

    No - if there is no involved VI, you want to just show them a random program, you can simply use Remote Desktop connection. Click Start > programs > Accessories > Remote Desktop Connection, its fairly explicit use.

  • Software radio Kenwood is looking for a com port com1, com2, com3 or com4 of when you try to use Windows XP computer.

    Original title: usb port to COM port.

    I only have usb ports on my computer, but the software of kenwood radio is looking for a com port com1, com2, com3 or com4.  How can I do think I have the cable plugged into usb port is a com port?

    Hi sfcasko,

    It seems that the hardware configuration you use is not supported by the software.

    I recommend you contact the manufacturer of your computer for help.

  • read com ports with command-line through labview?

    I'm trying to find a way to get a specific com port through the command via the command exec system prompt in labview. Is it possible to get the list of com port connections just like one you see in Device Manager where he will give the list the name of the device connected to a certain com port? I want to be able to automatically find the port com for a specific device.

    because it is a virtual com port that gets set up and I tried the vi to find resources VISA and it did not work. However, funny enough, just after I submitted this post, I found the solution to my problem. If you use exec system and type this command in the standard input:

    WMIC path Win32_SerialPort

    This will bring up a list of all com ports connected and very fast too. From there I can analyze the information I want and widdle down to the com of the desired usb device port.

    Maybe this can help someone on the road.

  • Model a block synchronous dual-port RAM with LabVIEW FPGA

    This question caught my attention recently.

    I am trying to model a particular design element called "RAMB4_S8_S8" with the LabVIEW FPGA module. This element is a block synchronous dual-port RAM allowing simultaneous access to two ports independently from each other. That being said, a port can perform read/write operation to this RAM while at the same time, the other port might be able to do the same thing. There are two opportunities of possible port conflict, however. The first is when both ports are trying to write to the same memory cell. The other scenario is when a port writes in a cell memory while at the same time the other port reads from it. Other than that, everything should be a legitimate operation.

    In order to reproduce this I select memory block that is integrated into my FPGA target. An interface is configured to be the playback mode, and the other is set to write fashion. For the option of arbitration, I let the two interfaces to be "arbitrate if several applicants only. Then I got a compiler error when I tried to run my FPGA code for this model in a SCTL. The error message is something like "several objects to request access to a resource through a resource configured with option interface" arbitrate if several applicants only ", which is supported only in the single-cycle Timed loop if there is only a single applicant by interface.

    This error goes away if I replace the SCTL with a simple while loop, but not what I would like to implement. So I wonder if there is a better solution to this problem, or is it just the limitation of the LabVIEW FPGA module.

    Thank you.

    Yes, you can use a form of conduct to perform the operations you want in the generations clock cycles, but all the code is inside a single SCTL. Basically, read the first address and storing in a register in a single cycle and then read the second address in the second clock cycle. This would allow you to two readings of valid memory every clock cycle 2. I have included a crude extract to illustrate the concept. The case selectors are identical with address A being connected to the memory in the true case, B in the case of fake address. Your biggest model memory dual port will be intact, but it will operate at 1/2 rate.

    Take a look at the white paper that provides more details on the construction of memory:

    Data on a target FPGAS (FPGA Module)

    The ball on the memory block indicates that memory block double port cannot be applied in a configuration of reading, which is a double ROM. access read/write port must be imitated with custom code.

  • Serial via NIMAX okay but not through LabView

    I'm trying to communicate with a device via the serial port.  In MAX, I have configured the port (28800, 8, N-2, RTS/CTS).  In the test Panel, I can send a request for identification (ID? \r) and get an answer.  If I try this through a LabView VI, where I open a session VISA, set the COM port settings, and then try the request ID, I don't get a response.

    I have also noticed that if I try the query ID in MAX, but use a USB-serial adapter, I get no response.

    I don't know I'm missing a few simple nuace serial communication.  Any thoughts?

    Thank you.

    In LabVIEW, my guess is that you do not correctly send the \r. To do this, you must have the control/constant string defined for '-' code display. If you had posted your code, it would have helped to see if this or something else is wrong. Have you tried one of the sample programs before you try to write your own?

    I've never had a problem with an USB-RS232 adapter. The new port is actually in MAX and you can use Hyperterminal with it?

  • Error usb-6212 "reading port.vi digital" reading: Subvi is missing

    Hello

    I try to have the LabVIEW to recognize my USB but I got the error "digital port.vi read" is missing. I was wondering if there was a resouce for sample VI? Or how to write a VI in order to recognize/read the digital signals of e/s?

    Thank you very much!

    Hi blizabeth37.

    If I understand you correctly, you are looking for e.g. screws, correct?  Have you tried looking at the example Finder LabVIEW?  Examples in LabVIEW, click Help.  "Once in the Finder of the example, for digital i/o, obtained material input and output" DAQmx "digital generation or numerical measures.  Carefully read these files, and you should find something that does what you want.

    Alternatively, you can go to the online community to find, for example, code: www.ni.com/community

    I hope this is what you were asking.  Good luck with your application!

  • How to access tracks in VNA through LabView Coading markers

    Hi people!

    I'm working on a project that includes the covering of the agilent PNA x 5242 with LabView via GPIB port. Most of the codes and material assistance are available, but I'm stuck on a marker to access the problem.

    I created successfully the markers on the two different tracks, each track separated placed on the seprate window but on the same channel. I was able to place my markers on my SET selected axis point, as I held the axis value y correspondent.

    but the real problem is that I read these markers of VI another. VI works perfectly, but due to follow the program I am able to read only the last generated trace markers and I wasn't able to read the 1st track markers.

    Figure 1 illustrates the generation of traces and markers

    Figure 2 shows the positioning of marker

    Photo 3 shows the marker reading VI.

    error I have ANS watch is "continuous Query.

    Here attached some parts of my code...

    Kind regards

    T@bi

    The images are confusing. What is the high level of page VI? The first image is not at all the exits. When you call the Subvi in the third picture?

    You have any requests without interruption. You get an interrupted request when you issue a command before the result of another request in order that it is read.

  • Reading a table of labview

    I have a VI in labview that accepts an array of a .NET and reading it with DAQmx, a value of every millisecond.

    I do the same thing with Veristand 2011, programmatically.

    As far as I understand it, looks like I can do this in 2 different ways:

    (1) write some files that the stimulus profile editor can read and open it with the stimulus API profile editor

    (2) a custom device and use an entry for the table

    Am I missing something? I'm a noob with Vstand.

    THX,

    Matteo

    There is an example of the expedition which does almost exactly what you want, and could be a good starting point of reference. It does not even require any written stimulus profiles or sequences in real time, because a real-time sequence comes with VeriStand designed for purposes of reading, and this example uses this one directly.

    See: \examples\NI VeriStand\API\Execution API\Sequences\Play Waveforms\Waveform player Example.vi.

    The only difference is that this example is based on the type of waveform data, that has a setting dt and t0 in addition to the values there. But it's a trivial change to make.

  • Read power meter in LabVIEW via RS-232/RS-485

    Hello!

    I have a power meter, an advanced WM14 DIN power Analyzer. I want to display different values, Kwh, WILL, etc. Kvar, the meter in the graphs in labview. I have just a basic knowledge of Modbus RTU and with RS-232 connection. But I don't know how to make it work with labview. To my counter, I plugged a converter Moxa TCC-100 (see attachments) RS - 485 to RS-232, given that my electricity meter works only with RS-485.

    The converter, I have an adapter usb to RS - 232 (see attachment) to COM3 on my PC.

    Perhaps the easiest way would have been the connection directly http://sine.ni.com/nips/cds/view/p/lang/sv/nid/12845 . But I have not bought!

    So now you know the configuration of the connection, drivers for the usb adapter is installed and also VISA drivers. I found no good examples explaining how you can do with programs and data sending and reciving.

    I have google around and discovered that you use read/write VISA blocks, and that there is a library, Modbus, you could use. I installed the library, but I don't know how to connect with my electricity meter.

    I have a communication protocol to my electricity meter, but I don't know how to use it.

    I'm a little stuck and don't really know where to start. But my understanding of modbus, such things should be easy to do, so I think that's not too difficult to learn.

    Is there anyone who could explain how these work thing or if there is something I could read or see?

    Best regards Maurlind


  • Read Calibration expiration with Labview

    Hello everyone,

    I found a way to read the configuration of my PXI-1044.  I would read the section external calibration of the Calibration tab in MAX for my PXI-5114 and PXI-4065 (last calibrated and recommended the next Dates of calibration) using Labview to read.  The preferred format, I'm looking is similar to the configuration of my PXI-1044 which retrieves data in a format delimited by tabs.  Thanks in advance for any information that can throw this forum on this topic.

    Kind regards

    Scott

    Hi Dennis,

    Thank you for your most recent reply.

    Thanks for the vi.  I tried on one of the systems and other that it could not find the Initialize.vi, I replaced with one that is the measure of e/s > System Configuration, it will do the job and data retrieval will not be a problem.

    Many thanks for your efforts to help me better understand this particular function and please pass the file.  I consider this closed post.

    Kind regards

    Scott

  • Convert VB2005 read routine file for Labview

    Hello everyone,

    I am very NEW to Labview (using Labview 2010) and I am trying to convert a Net in Visual Basic 2005 dot program to format of Labview.

    My question to the group is, I would like to convert the VB code below in Labview.  This is one of the many readings of text file which makes my VB program.

    ' * Read data from frequency of files and convert them to Double *.
    List = 0
    oRead = IO. File.OpenText("C:\TPS_Data\PA_Freq_List.txt")
    All in oRead.Peek <> -1
    LineIn = oRead.ReadLine)
    TFL (List) = LineIn
    TestFreq (List) = Convert.ToDouble (TFL (List))
    List = + 1
    End while
    oRead.Close)

    These files are calibration/offset and rate data for my RF ATE test equipment.  Once the operator selects an amplifier to test, the program loads into memory these specific files in amplifier.  These variables they are whole, double or whatever store them in a table under (ex: TestFreq (0), TestFreq (1), etc.).  Each frequency has its own offset and calibration data which are sent to the test apparatus by each tested frequency.  This line of code is possible, or do I have to find another way to do this?  If so, how to store and retrieve these data at any time during the test.

    I appreciate all of the information provided by this group.  Thank you in advance.

    Kind regards

    Scott

    Greetings smercurio_fc,

    Thank you for your recent reply.

    Between your most recent response and another post that I fell today by searching on google, I was able to accomplish what I wanted to do.  The basic function was to read the text file, which is a list of test frequencies and move a generator of RF signals at each frequency in the list.

    Thanks again for your time.

    Kind regards

    Scott

Maybe you are looking for