NI 9871 & cRIO

Hi,
I am working with a NI 9871 (serial RS485) an I seems to have a problem with sending a command to a instrument.
The instrument is connected to the NI 9871 with 2 wires, which is connected to pin 4 og 8(+) and pin 5 og 9(-) on a DB-9 connector. Is this a 2 wire connect or 4 wire? I ask because when I sent a sing to the port on the NI9871 I get the same string back if I use 4 wire mode but nothing if I use 2 wire mode.
This instrument needs a 4 letter ASCII string and will return a long string with data. In order for the instrument to recognizes that a command is being sent it needs a break signal. The instrument manual says this about the break signal:
“The break Signal suspends the character’s transmission on the serial line, setting it to a break status. In this status, the voltage level of the transmission line from the computer to the Anemometer passes from nominal -12V to +12V. “
Does Labview sent this kind of break signal?
-gjels

Here is the proigram I have been working on
Attachments:
Serial_test.zip ‏445 KB

Similar Messages

  • NI 9871 460.8 kbaud works but not 921.6 kbaud

    Hi,
    I have a PCIe-based RS422 card that can write to our NI 9871 cRIO module at 460.8 kbaud but the data is garbled at 921.6 kbaud (which is supposed to be supported ion the 9871).
    A loopback test on the PCIe card shows the 921.6 kbaud data is fine.
    Attached is my test program.
    I've tried playing with Project settings but I don't see a difference.
    Steve
     

    Hi,
    I have a PCIe-based RS422 card that can write to our NI 9871 cRIO module at 460.8 kbaud but the data is garbled at 921.6 kbaud (which is supposed to be supported ion the 9871).
    A loopback test on the PCIe card shows the 921.6 kbaud data is fine.
    Attached is my test program.
    I've tried playing with Project settings but I don't see a difference.
    Steve
     

  • Crio 9871 doesnt ouput

    I have a 9871 module that doesn't seem to output when I perform a serial write. Confirmed both with an O'Scope and by the Serial Read command which times out.
    MAX shows the 9871 as being in the systems.
    Project shows it as well. But when I run my Labview code it shows it as executing properly.
    Am I missing something or do I have an effective module.
    I do haveScan Engine support installed on the system. And I have  instaled the NI 987x serial support on the RIO.
    Any suggestions??
    Thanks in advance
    Solved!
    Go to Solution.

    Hey Ryan:
    Thanks for reply.
    I indeed saw those papers you mentioned and implemented what they instructed, including downloading a Serial Loop self test vi.
    Still no go..
    Is it possible the order in which software is loaded has an effect?
    For another data point I tried running the serial loop test on the controller port 1 serial port and it worked fine. Its just with the modules I'm not having any
    luck.
    I have not tried getting the modules to output(write) something using MAX. It did not seem that intuitive. Is that perhaps a worthy road to go down and
    try to get working?
    Any more tips.
    Thanks
    Alex
    Attachments:
    MAX screen shot.jpg ‏158 KB
    Project screen shot.png ‏96 KB

  • Fpga cRIO NI 9263

    Hello guys, I´m new with the cRIO and FPGA, and I really need your help, I´m just wanna do something with cRIO, like setting onde bit in my module NI 9263, just it.
    Just set a bit, independent of the out 0,1,2 no matter what port is. I just wanna set a bit for a little test, and then I wanna read this bit with my  NI 9205. thank you for everything. and sorry about my english.
    please help me. Leonardo
    Note: my cRIO model is NI cRIO-9004

    obrigado mauro por vc estar dando atenção para este tópico, bom eu estou fazendo um trabalho, com compactRIO modelo 9004 chassis CRIO 9104, e eu tenho os seguintes modulos incluidos nele. NI 9426 NI 9205 NI 9263 NI 9477 NI 9425 NI 9476 NI 9871 respectivamente acoplados ao meu modulo do CRIO, sendo assim eu estou tentando realizar apenas um teste para setar uma saida digital, como por exemplo da NI 9426 ou NI 9476 que são as que tenho aqui. somente isto simplesmente mandar um bit para a saida, e depois poder receber este bit no meu modulo NI 9425 ou NI 9426 e acumular este bit recebido por esta porta em um indicador.
    o problema aqui na FATEC de Catanduva é que nenhum professor sabe fazer isto, e estou a semana inteira vendo os tutoriais e tentando fazer este teste,mas nenhum deles faz uma aplicação simples que é a que eu estou precisando.
    se você puder me passar seu e-mail eu te mando os prints que tirei de como estao configurados aqui. agradeço desde já a sua ajuda.

  • C-Series Module NI 9871, 4-Port, RS485/422 Serial Interface

    I have a question regarding the C-Series Module NI 9871, 4-Port, RS485/422 Serial Interface.
    I need to find out how it recovers the data from the link. I need to compare it with 8b/10b encoding.
    Does anyone know what UARTs are used or how the data is recovered.
    Thanks
    John Lee

    Hi John,
    I have had a look into this and I cannot find any specific information on the Transciever or UART. However I have come across an example using the 9871 with processing on a cRIO FPGA.
    To find this example open up Labview » go to Help » Find Examples » Search for 9871 and open up NI-987x Serial Loopback.lvproj.
    Hopefully this should give you a good start. Once your serial data is passed onto the FPGA you can then decode the 8b/10b within the FPGA code.
    Best Regards,
    Ben B.
    Applications Engineer
    National Instruments UK & Ireland
    "I've looked into the reset button, the science is impossible!"

  • NI 9871 best way to create customizat​ion to veristand

    I would like to use a NI 9871 module with NI veristand to communicate with some devices over RS485 using modbus protocol. I know that this device can be used in scan mode and VISA commands, but will not work with the EtherCat Scan Engine custom device. 
    I am wondering the best method to modify NI veristand.
    1. Create custom FPGA personality and write the drivers to directly interface with the ports on the device by modifying cRIO Modbus.lvproject http://www.ni.com/example/31166/en/. Expose the commmands as channels passed from the FPGA personality to the workspace and command those from the workspace.Current limitation, I am unsure how to modify this into a custom device or model due to the FPGA IRQ in the RT application used for timing. Can this be included in the custom device?
    2. Use the 9871 in scan-mode and write a custom device to interact with it using VISA command. Deploy Modbus I/O servier in custom device and send commands to shared variables from workspace. This would be easier and more robust driver, but I am unsure how to implement if my other 7 modules are using the scan engine custom device. I cannot implement this one in scan mode and the other seven in FPGA because of only 3 DMA.   
    3. Modify the Scan engine custom device to support 9871? Not sure if this is possible. 
    Thanks, 
    Mike
    4. Not use the NI 9871, and use the serial port on the Crio with a custom modbus device. This leads to a timing issue as I have five devices that I would like to interact with from one port. May reduce functionality. 
    Solved!
    Go to Solution.

    An update, since I found a method that worked pretty well and was easier than I expected.
    If you are using the cRIO in scan mode with the scan engine custom device, the ports will show up in MAX for the 9871 module. I didn't realize this when I initially started the post above. From there you can utilize all the functions of the ports similar to the rs232 port that is included on the NI 9074. 
    I wrote a custom device that opened a VISA session to my port and then was able to implement the code I needed to communicate with my rs485 device. I was using modbus protocol and all of the functions worked inside of my custom device with no modification. I could also adjust the VISA settings in MAX and could run a VI from my pc that would send/recieve data to the ports. This will be useful as an additional way to test/change parameters on my rs485 devices outside of NIVS.
    One thing to note from my last post, deploying a Modbus library did not work. The shared variables from Veristand would not work correctly with the variables as they were configured in the modbus library that I deployed. I was able to manually set them from the distributed system manager. I could also make the variables standard shared variables and they would update from the NIVS workspace in the distributed systems manager, but would not change the value in the modbus server. I decided to ditch this and create a custom device that just used VISA vs. the shared variables. 

  • Error 65575: overrun error while reading data from NI 9871

    Hello everyone,
    I am new here. I configured NI 9871 in RS-485 mode to acquire data from a sensor at the data rate of 8 samples per second. While reading data from sensor, sometimes I got the error 65575: "An overrun error has occurred in the data being read. Ensure that the module Flow Control is configured correctly." I didn't understand the error, how can I fix it, what dose the flow control means.
    I will be very thankful if anybody help me to fix this error.
    Thanks
    Wasif

    Hello Wasif,
    The error you are getting presents itself when the hardware buffer is full and new data is coming in. Data buffer is 64 bytes. One thing to try is to clear the RX FIFO after every read. Please refer to the following link that talks about the method.
    http://zone.ni.com/reference/en-XX/help/370984R-01/lvaddon11/crio-9871/
    Hope this help you solve the issue.
    Regards
    Luis S
    Application Engineer
    National Instruments

  • Is it possible to use a NI-9871 module on a C-RIO to automatically update shared variables?

    I am trying to use shared variables to poll a modbus network automatically.  I have a C-RIO 9014 and NI-9871 serial module that the modbus network is connected to.  Does anyone know if this is possible?  If so, could you post a sample configuration?  I have not been able to get it to work...   
    Thanks,
    Dan

    Hi D Reck,
    Using the 987X modules with a cRIO is much like using any other C Series module with a cRIO. It will interface with the FPGA through read/write controls or use a DMA transfer to send the serial information to the RT controller for processing. Note...you will need NI-RIO 2.4 and above depending on your version of Real Time and LabView or you will have to additionally install NI-Serial. DSC can only be run on Windows so I would guess that you would use variables coming from the FPGA or RT to DSC on a windows host machine and in the DSC module you can do ModBus Instrument I/O. Does that answer your question?
    Ipshita C.
    National Instruments
    Applications Engineer

  • Non détection modules cRIO

    Bonjour.
    J'ai en ma possession un cRIO-9074, avec les modules 9401, 9871, 9403, 9402 9467 et 9802.
    Le problème est que je n'arrive pas à voir ces modules dans MAX. Il y a bien détection du cRIO et du module 9871, mais pas des autre modules ! En tentant de bouger de place les modules, cela ne change rien... Je ne comprend vraiment pas pourquoi un des modules serait visible et pas les autres...
    Quelqu'un aurait une explication à mon problème ?
    Merci.
    Simon M.
    Résolu !
    Accéder à la solution.

    Bonjour,
    C'est tout à fait normal de ne pas voir les modules de la série dans MAX.
    En fait, pour le 9871, vous ne voyez pas vraiment le module mais les ports séries du module qui sont listés dans MAX.
    Pour voir les modules, il vous faut créer votre projet LabVIEW, ajouter la cible CompactRIO et la les modules apparaîtront.
    Cordialement
    .mesLeft{float:left} .mesInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898} .mesLogo{float:right;opacity:0.18} .mesLogo:hover{opacity:0.9}
    Maxime R.  
      CLD - Certified LabVIEW Developer / Développeur LabVIEW Certifié  
      CLAD - Certified LabVIEW Associate Developer   

  • Highest speed for a loop in the microprocessor of my CRIO?

    Hello:
    Im trying to develop a control system for an inverter with with my CRIO 9022, the speed of my system is 10 kHz(the switching frequency for the inverter is 10 kHz).
    Im trying to develop the controller using the microprocesor, but I was reading that the highest speed achievable for a loop in the microprocessor is around 1 Khz, is this true?
    If is it, how can I develop a control with a loop of 10 Khz? this speed is only achievable using the FPGA?
    Thanks a lot!
    Regards

    Sorry for dont attach the subVI, but the calculation that I perform inside are not diffcult, the first one is only aritmetic calculations and the second one is a PID (I attach them).
    Maybe I can try to move them to the FPGA, but would be very tedious because I need huge times for compile and if I want to make any change will be very more difficult.
    Do you think that the processor can not carry out these loop a higher speed than 400 Hz?
    Thanks
    Attachments:
    SubVI1.PNG ‏50 KB
    SubVI2(PID).PNG ‏81 KB

  • Image processing with cRIO-9074

    Hii...
           I am working on Image Processing. Can anybody send an example of cRIO (fpga interface mode) for Image processing applications.
    I need example for how to use DMA FIFO for sending an image to FPGA, and back to host VI after processing on FPGA.
    Thanks
    Prashanth 

    hey sorry,
      It is job openings board.  Ignore the above thread
    Thanks 

  • Custom device / I am trying to use a vehicle controller model developed in LabVIEW with compactRIO (cRIO-9024)

    Now I have developed a vehile controller model with LabVIEW so as to run on VxWorks operating system. ( compactRIO cRIO-9024)
    And I converted a controller model of labview into *.lvmodel in order to use it as I did with simulink models. 
    However, converted *.lvmodel was not supported for VxWorks operating system. so after searching for this, I found out that I have to use a custom device. 
    I am now studying the custom device, but it looks diffcult because I dont have much experience in real-time system.
    Here are my questions.
    1. Simulation model in VeriStand
    Should I convert a labview controller model into *.lvmodel even if I use the custom device in order to run on VxWorks operating system? 
    If not, what should I do after building a controller model with labview?
    2. Operating system
    It is silly question. anyway, as long as I run a controller model on compactRIO cRIO-9024, the operating system always has to be set to VxWorks. Is it right?
    3. Custom device
    This is the most difficult thing. I dont know even what to do. What functions should be inside a custom device template tool? The controller model send output signals to a vehicle model, and receive input signals from a vehicle model.
    Thank you in advance. 
    Hognjun

    Hi,
    You should post this on the Veristand Forum.
    http://forums.ni.com/t5/NI-VeriStand/bd-p/440
    Ravi

  • I am recieving an Error code when I try to compile a program to an FPGA chp in a cRIO but I don't know what the code means.

    This is the message that I am recieving when I compile to the cRIO I am working with.
    FATAL_ERRORortabilityortDynamicLib.c:358:1.27 - dll open of library
       <C:/NIFPGA85/Xilinx\bin\nt\libGenXstTask.dll> failed due to an unknown
       reason.   Process will terminate. For more information on this error, please
       consult the Answers Database or open a WebCase with this project attached at
       http://www.xilinx.com/support.
    I have no idea what this means.  Thank you in advance for the help.

    UtahTiger;
    First let me ask a few basic questions
    What version of LV are you using?
    What OS is your development machine?
    When in the compile process does this error occur?
    Can you compile other (blank) VI's, id the problem with this particular project?
    Have you been able to compile this project before. what changed?
    Once I know a little more about your system we can narrow down the source of your error.
    Message Edited by Huter on 04-29-2009 04:16 PM

  • Error when running simulation with SIT 2010 on a cRIO 9073, what do I need to install on the cRio?

    Hi.
    I am trying to run a simulink model on a cRio 9073 using SIT 2010. I succesfully created the FPGA vi and the lvbit file in order to map input/outputs to the model. I also created the DLL and OUT for the model.
    When I run the interface VI on my computer, everything seems OK, until I get the following error and I am not able to run the simulation. I found a similar post earlier that suggests that I need to install the shared variable engine or the Simulation Interface Toolkit on my cRio. I tried to do both using MAX but could not find neither of the suggested installations.
    Thanks for the help!
    Items.viNI_SIT_driversupportVIs.lvlibIT Probe Model Items.vi loaded with errors on the target and was closed.
    LabVIEW:  Failed to load shared library SITs.*robeSignals:C. Ensure that the library is present on the RT target. Use MAX to install NI software or FTP to transfer custom libraries to the RT target.
    Items.viNI_SIT_driversupportVIs.lvlibIT Probe Model Items.vi loaded with errors on the target and was closed.LabVIEW:  Failed to load shared library SITs.*robeSignals:C. Ensure that the library is present on the RT target. Use MAX to install NI software or FTP to transfer custom libraries to the RT target.

    Hola jarcTec;
    Este tipo de error suena suele ocurrir cuando no se tienen las librerías apropiadas instaladas en el cRIO. Te recomendaría que abrieras MAX, debajo de la pestaña de Remote Systems selecciones tu dispositivo>> software, click derecho e instalar software. Aquí debes asegurarte que las librerías que te faltan estén instaladas en el cRIO. En Custom Installation selecciona SIT como opción para instalar en el cRIO tal y como se muestra en las imagenes.
    Espero esta información te sea de utilidad
    Exito en tu aplicación
    Marisol

  • How can I use a USB camera with cRIO 9022. Please see my strange problem.

    Hi,
            I would like to use a USB camera with NI cRIO 9022. I used the same USB camera with NI USB 6216 DAQ device and developed a VI(within a PROJECT and outside it). So, It is working fine with NI USB 6216 device when I use the Vision Assistant Express VI and gets detected in its Initialization Window.  Please see JPEG File 3 where I get NO ERROR.
            I am facing a problem when I want to use it with NI cRIO 9022. What exactly I am doing in this case is:
    1) Create a NEW PROJECT
    2) Add Targets and Devices(NI cRIO 9022)
    3) Use the Scan Interface mode
    4) Create a NEW VI under the cRIO 9022 device 
    5) Use a Timed Loop(Synchronized with Scan Engine) for continuous Data Acquisition and Sending from the Analog I/O modules.
    6) Use the Vision Assistant available through the NI Vision Acquisition 2010 Module(I get STUCK HERE! The Express VI opens the Initialization Window, but I don't see the USB camera like in JPEG File 3)
    I am facing difficulties with this HOST COMPUTER, cRIO implementation differences. On my host computer I have the software packages as shown in JPEG File 1, and on my cRIO 9022 as shown in JPEG File 2.
    Can someone guide me how to overcome this and get the USB camera detected when I am using NI cRIO 9022?
    NOTE: If this is a problem with software mismatches on HOST and NI cRIO 9022 device, please see JPEG Files 1 and 2 for available software and Host and cRIO 9022.
    Thanks.
    Amar.
    Attachments:
    NI Vision Acquisition Express Error for NI cRIO 9022.JPG ‏39 KB
    IMAQ and dx Modules Installed on my NI cRIO 9022 hardware(No NI Vision Acquisition 2010 SP1).JPG ‏82 KB
    NI Vision Acquisition Express NO Error for NI cRIO 9022.JPG ‏48 KB

    Only GigE comms are supported on the cRIO Real Time OS. Have a look at the following:
    Machine Vision on NI CompactRIO and Single-Board RIO
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

Maybe you are looking for

  • RoboHelp project management strategy

    Morning I have some general questions, for which I doubt there are any "correct" answers, but I'm sure people will have useful to say all the same. First, some background information. I have used RoboHelp before (version 8) to manage a handful of sma

  • Macros in AW5 spreadsheets do not work in AW6

    I have just upgraded from a G3 iMac to a G5. Macros in spreadsheets prepared in AW5 running on OS 9.2 (classic mode behind OS 10.1.5) in the G3 iMac are inoperative in AW6. I installed OS 9 in the G5 using the CD that came with it, and transferred th

  • Movie-DVDs "skipping over damaged area" all the time

    I just wanted to share this with you to see whether others suffer the same problems before calling AppleCare. I have a 20" 2,4 GHz iMac (Alu/Intel) which quite often gets a hickup when watching a DVD. Many times DVD player is claiming to skip over a

  • Os x mavericks and updates for I tunes on yosemite

    Hello I did not download yosemite I just like the way it is with Maverick but I get updates to do with yosemite " is for I tunes widget on notification centre in OS X Yosemite ??   I dont use Iphone or I pad ect... do I need this download ? Thanks y

  • Metro Ethernet Design question

    Hello, I was wondering how service providers guarantee their security protection in the Metro Ethernet model, especially when Internet is one of the applications used over the Metro network. For example: The customer edge switch (3550) is connected d