RS 232 TO USB DAQ

Hi,
Is is possible to sync. RS 232 with USB DAQ 6008? i have a GPS mouse and i am woundering whether i could, physically wire each individual ports of RS 232 (output port) with NI USB DAQ 6008 and read the data in labview. thankyou.
sincerely,
solomon

Yes if the baud rate is low enough for the 6008. Rember there is about 11 bits per byte (start data parity stop) and you want to over-sample at a factor of 10 or for each bits cell time.
Converting the data stream to something that can be aprsed wll be like designing a chip for serial. THen you have to pars the data.
It will be an excellent learning adventure so have fun.
If this is not jus to learn something, I'd suugest you look into purchasing a widget that will give you GPS sync'd time pulses.
Trying to help,
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • USB DAQ with ARM controller boards

    Hello,
         I wish to use USB DAQ (for example USB6509) with ARM or CORTEX-M3 board. I recently purchased one cortex - M3 (by luminary micro) from NI with labview embedded software. I wish to control and monitor large number digital I/Os using USB6509 but the controller card i wish to use is cortex-m3 boards. 
    can some one tell me is it possible at all? if yes, how to go about this? 
    thanks in advance
    Nabhi

    Hi Andy,
    There are a few interfaces that can be used depending on the data you want to send.
    If you want to use Wifi then dongles will be difficult as you would have to write a USB driver for this.  The simplest method would be to use a WiFi ethernet access point to put it on the network.
    If you are looking at general wireless technologies there is quite a lot based on serial technologies.  If you look at http://www.active-robots.com/products/radio-solutions/index.shtml there is a lot based on RS-232 which is available on the ARM7 board.  You may also find some that are based on UART ports, SPI or I2C that should be able to connect.
    I also wanted to draw your attention towards the SingleBoardRIO. It offers the form factor but is much more powerful by allowing you alot of DIO and programmable FPGA.  This is a single board version of the CompactRIO which has the same features but is larger and heavier so depending on the project may not be suitable. Check out ni.com/singleboard and maybe get in touch with your local NI branch for more information.  The SBRIO will offer the same connectivity options as the ARM board with the WiFi access point the simplest way to connect.
    Cheers,
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • How to generate a bipolar pulse train in LabView using USB DAQ 6211?

    Hi,
    I am setting up a system to generate either a single square pulse or a train of square pulses using LabView, with controls to adjust the frequency, amplitude, number of pulses etc. I have had a lot of help from NI tech support setting up the actual VI itself which seems to be working fine, and outputting the pulses via a USB DAQ 6211 using a square waveform generator and the AO1 channel on the DAQ.
    The problem that I now have is that I need to pulses generated in a train to be bipolar (as they are connected to electrodes so need to be bipolar o avoid salt build up on the electrodes from the voltage going in one direction only, at least that is how I understand it!).
    How can I set up my LabView VI to generate a bipolar pulse train instead of always being positive voltage? I am new to this area and so am trying to learn but there is so much to learn!
    Thanks,
    spamjam

    Hi Shalini,
    Apologies for taking a while to get back to you, I hope I can explain what it is that we need to create with the pulses. I understand what you mean about the existing pulses having a positive and negative on the graph - but we need the pulses to start from a resting voltage and the first pulse to be positive, then back to zero, then the second pulse to be negative then back to zero etc. This is to do with reversing the direction of the current between two electrodes to prevent build up of salts on one electrod from the current always passing in the same direction. 
    I have attached a .Tif file to this post to try to illustrate what I mean - the top picture shows how the pulses are currently generated, then bottom on is what we would like to produce if this is possible?
    Thanks for your help,
    Spamjam
    Attachments:
    Slide1.jpg ‏38 KB

  • How do I update a program written for a Legacy DAQ into one for a USB DAQ?

        I am trying to rewrite a program, replacing all of the AI Waveform Scan and AO Update Channel VIs in it with DAQmx VIs. This seems to be the only way for the USB DAQ to respond to the program and not get any errors. I was just hoping for some help in how to replace those VIs with updated DAQmx ones. Attached is the part of the program that I am working on. There is a slight error because of some changes I have made, but the gist of the program is still there.
    Thanks!!
    Attachments:
    DAQdriver.vi ‏52 KB

    What I would suggest is that in either your init state or outside the loop, create two separate tasks for the analog in and the analog out. This means using separate DAQmx Create Channel, DAQmx Timing, DAQmx Start Task, etc. Then, you would have the tasks in your shift registers and pass just the appropriate task to either a DAQmx Write or DAQmx Read. No need to pass channel or device. In the End state, you would add a DAQmx Clear Task for each.

  • What is maximum read out speed of USB DAQ 6343

    hello everyone,
    we have new USB DAQ 6343.Its application note(or say characteristcs) says that it's sampling rate is 500K Sample/second.Now i need some clarification from you guys.I have to read digital data(serial or parallel). so plz tell me how much far I can go with this product for both ways.
    thanks in advance, 
    Solved!
    Go to Solution.

    Unfortunatly I can't get the spec online
    Error
    You are not authorized to view this document
    but you should have get it with your device
    However the datasheet is telling me something like 500kS/s aggregate (500kS/s / <number of channels read> ),  but up to 1MS/s for digital input. However you need to get the data into your PC. If you read one 8 bit port @1MS/s the USB should be able to handle the datastream.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Need to generate a TTL pulse of 3 ms using USB Daq 6361

    Hi all,
    I need to generate a TTL pulse of 3 ~ 5 ms to trigger my external device. I am using USB daq 6361 with BNC connectors. I tried to use this examples(attached) but was not succesfull , can any one help me out in this, I just want a TTL pulse out to trigger my device. I tried to modify the example to see the wave form out but all it shows is a straight line. I want to generate a TTL pulse as soon as my program starts.
    Am I using wrong example? should I use somethis else to generate the pulse. please let me know.
    Thanks,
    Attachments:
    Capture.PNG ‏76 KB
    Digital - Continuous Output_ttl.vi ‏65 KB

    AnkitG wrote:
    Jeff·Þ·Bohrer wrote:
    Why would you create an Task with an analog output?  its a Digital line you want to drive! and, just create it in the project.
    Hi Jeff,
    thanks but I couldnt understand , what you meant by create in project? Can you please explain. should I create digital line but I am still getting the same error.
    Creating DAQmx items in Project Explorer saves the DAQmx object properties as part of the *.lvproj file.  This can be very useful when the Task configuration does not change in the built application and you seldom want to use the task elsewhere.  If you want to make minor tweaks to configuration of the run-time app there is even a human readable text file in the build output where properties like scale offsets, timing rates or ranges can be modified without redeploying a new app.  
    Jeff

  • Why is my USB DAQ device not detected by Windows?

    Hello,
    I had my USB-6229 connected to my PC (Windows 7 64bit) this morning and everything was fine: Windows detected the device, the device showed up on on NI MAX, and testing through NI MAX was successful. I then installed the NI DAQmx 9.8 driver to replace the NI DAQmx 9.6 driver that I was using (the DAQ Assistant icon in my functions menu in LabVIEW 2013 was not present, and this upgrade fixed that issue). Unfortunately, Windows now no longer recognizes the same DAQ device that worked earlier this morning.
    Here's what I've tried so far:
    Uninstalling the 9.8 driver and re-installing the 9.6
    Tested another USB DAQ device; Windows could not detect it either
    None of the DAQ devices register on WIndows's device manager (usb ports not broken, as the flash drives I inserted showed up on device manager)
    As expected, none of the devices show up on NI MAX
    Does anyone have any suggestions on what may have happened when I upgraded from the 9.6 driver to the 9.8?

    Thanks for your reply, Philip. Yes, I did reboot my computer after installing the driver.
    I contacted NI support, and we were unable to reach a solution, so, as a last effort, re-installed the driver for the third time, which finally worked. I'm not sure what the problem was, but here are some extra steps I took before re-installing the driver that may benefit those who encounter a similar problem:
    1. As Philip mentioned, start the NI Device Loader if it has not been started or stop/start it if it has. The startup status ought to be set to "automatic." You can find the NI Device Loader by starting Task Manager, selecting the "Services" tab, then selecting the "Services" button. Scroll down the list until you find it.
    2. Open up Device Manager and search for your device (mine was labeled as "unidentifiable"). Right click and select "Properties." Select the "Driver" tab. You may need to manually select the driver folder, which should be located in C:\Windows\system32\DRIVERS.
    Hope that helps.

  • Which usb DAQ device to buy ?

    I am a total Noob when it comes to DAQ so please bear with me and help me with suggestiions on which NI USB DAQ to buy. I am biochemist and I have an old HPLC machine (basically a chemical purifying/seperation machine) I need to control by writing a labview program. I have labview 2013 and have some basic familiarity with it, and have used very easy VIs like blinking LEDs using arduino interface.
    My current project needs me to:
    1) control the flow rates on two pumps using their remote controller and vary their flow rates by varying voltages (0-10V) at not higher than 3 mA input current. basically, I need to be able to vary voltages on two analog pins. I am attaching the manual for the pump for more info. The pinout on the remote controller is on page 16/17 of the manual.
    2) I need to read analog voltage outputs from these two pumps (which measures the hydrostatic pressure) and save it to something like in .csv file.
    3) lastly, I need to read a analog output from a UV detector which will be in mV range and plot it and/or save that to .csv file .
    There are a bunch of NI DAQ USB devices which seems like they can do this job, my problem is that dont know enough to reliably make a judgement on which one to buy for this project. My budget is limited and I would definately like to do it with as cheap a DAQ as possible since we have multiple instruments like this, and we are planning to get rid of ancient 1990s computers running the original software and replace it with a USB DAQ device coupled with a labview program on a modern PC. The HPLC machines are far apart hence we run them on individual PCs instead of running a bunch on one computer through a DAQ device.
    I know its a whole bunch of questions, but I'll be glad for any guidance on this. also, to do the things I just described, how difficult do you guys think the VI would be if I use a NI DAQ and hopefully dont have any driver/communication  issues.
    Attachments:
    shimadzu-lc-6a-hplc-pump-service-manual-eng.pdf ‏985 KB

    I highly recommend you look up your local NI representative and have a nice sit down with them.  They can go over your requirements and give you really good advice on which device to get.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • LAVA Gives away NI $150 USB DAQ

    The LAVA website is giving away a NI USB DAQ worth $150 in the latest coding challenge.
    http://forums.lavag.org/index.php?showtopic=3423
    Michael Aivaliotis
    VI Shots LLC

    Hi Lynn, thanks for the response. I'll try to answer all of your questions.
    I'll scope the outputs with an oscilloscope but the rated rise time on the encoder is quick enough that it shouldn't be an issue. I also run the program on just one analog input with no problems. I figure if there was noise in the encoder signal it would show up no matter how many analog inputs I'm sampling.
    When I run two inputs I have error -200019 coming out of the DAQmx Read VI. This error doesn't show up on just one analog input, only when I run two and only when the behavior that I describe in the next paragraph shows up.
    The zeros are in my written data but you can clearly see them in the measurement window. The attached picture is what my front panel looks like after a successful run. When it doesn't sample correctly the primary graph (cylinder pressure) drops to zero after between 50-150 samples. I open the spreadsheet and I see that it's recorded primarily zeroes.
    I've tried this on both Windows 7 and XP to the same results. I am aware of the XP USB connectivity issues and I installed the necessary Microsoft patch. The card is connected directly to a USB port, I believe it's 2.0. If by load you mean how much avalaible memory and CPU power is available, it doesn't look I'm even close to maxing out the PC. I tried closing excess programs as well as disabling all the other functions of the Labview program (analyzing and writing to file) to see if I was asking it to do too much at a time.
    Attachments:
    v34 Screenshot.JPG ‏432 KB

  • Rs-232 to USB converter trouble

    Hi, everyone
    I have developed an application in labview 6.1 for communicating with an instrument via serial port, using serial compatibility VIs. the software works ok in the development machine which has a rs-232 port, but i can´t make it start in other PCs using USB to RS-232 converters (since they don´t have a serial port, only USB). I simply can´t stablish communications, BUT if I open hyperterminal (just open it, i don´t send any commands or anything else) and then close it again, the application in labview works ok!!! it´s just like hyperterminal "wakes up" my instrument! does anybody has any idea how can hyperterminal do this???

    Are you using the Serial port init vi? Is there any error code coming out?
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Serial RS232 directly to a USB DAQ?

    Hello,
    I have a question regarding serial communication: is it possible to directly hook a device via RS232 serial to digital pins of a USB-6211 DAQ? (Or maybe even a USB-6008?)
    If so, where should I wire the pins to?
    If not, could you recommend me a not too expensive, yet functional RS232 to USB adapter which could work fine? (I am planning to interface a Datex capnometer or a Fresenius Pilot C infusion pump first, however if I could find a relatively well-priced multi-port adapter I would go on with both. BTW, can I include more NI-VISA queries in parallel in LabVIEW?) 
    Thanks
    Engage! using LV2012
    Solved!
    Go to Solution.

    The main difficulty is that I am not familiar with these devices. I thought it was not suitable because all the pages say that cables based on these chips are for 3v3 to 5v connections between an arduino and a pc, while there are some more expensive cables which do not mention uart or 3v3 connection.
    Should I worry about this or can I go on with these chips?
    Engage! using LV2012

  • Features Labview 8.5 + NI 232 series usb

    Hi, I'm installing labview 8.5 and I use it with a NI USB 232 series in
    order to control the movement of an electric motor and the pressure to
    acquire the whole of a cylinder. what features need to install in
    addition to those features by default? Unfortunately I dont' install all
    features cause of space on my hd.
    can I install additional features not installed the first time?
    Thanks

    The NI Serial installer contains everything you need, so you can just install that and be on your way. It will install VISA and MAX as well.  Just make sure to run it after you install LabVIEW, so it can recognize that you have LabVIEW installed and install the appropriate components. 
    Your program will only interact with NI-VISA, as it's the "Universal" communication library.  Then, VISA talks to NI Serial for you. VISA makes sure your code will work if you were to move to another serial interface on any NI platform (they all hook into VISA), or a regular windows serial port on a desktop machine (if you can find one anymore).
    Message Edited by Paul M. on 09-16-2009 02:31 PM
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

  • Separate Analog Input/Output Tasks for Multiple USB-Daq 6008

    Hello, In my application I'm using two separate USB-6008 DAQ devices, they are to be used simultaneously,
    i.e both tasks will start in a same loop, there are both writing to some channels and sampling some data from
    some channels, the problem is, when I'm trying to define a task, via Daqmx base Configuration Utility, I
    sucseed at defining the task, for the first Device, but unable to define nearly same task but for the
    different Device, since the OK button is grayed out (Disable).
    I'm using Labview 7.1 and a NI-Daqmx base ver. 2.0
    Following attachment shows what I'm talking about.
    Attachments:
    daqmxbase.JPG ‏59 KB

    Actually it is not the easiest to use the full version of daqmx is easier, It is also very easy to set this up in MAX (measurement and automation explorer) What version of labview are you using. have you made sure that the device is recognised in MAX and that the device number is correct. i have a couple of 6008 and have run them alot without any trouble so it must be the way you have things setup. Could you post a section of the code that gives  you the error. also try running each device in max with the test panels for each one and see if it works there.
    Joe.
    "NOTHING IS EVER EASY"

  • System crash when DAQmx call to USB DAQ device is powered off

    My PC crashes when I attempt communication with a NI DAQPad 6015 USB device which is in the powered off state. I am attempting to add error handling to my LabView application to cover the above condition, however, instead of receiving a error message, my PC crashes. When the device is powered on, my LabView routine works properly. I created the vi using the DAQmx DAQ assistant for a simple analog read from the device. I want to add the potential error handling condition to cover the case in which a user may attempt to run the software without turning on the device. When I attempted to run my vi twice with the device powered off, my PC crashed both times. The 2nd time, during reboot, I discovered that MAX was corrupted and had to repair using the installation CD.
    I am using LabView 7.1 with DAQ 7.4 on Windows 2000.
    Is there a known fix or workaround to this issue? Or is there a way to detect the presence of the device first before trying a DAQ read?
    Thanks,
    Joel

    Thanks very much for both your responses. I tried it again, but as you suggested, I used one of the example vi's. I chose the following:
    Acq&GraphVoltage-IntClk.vi found within: Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage
    I first tested the example vi with my DAQPad-6015 powered on. The vi successfully ran without error. I then turned the DAQPAd power off and ran the vi again. My system immediately crashed leaving me with a blank screen (with streaky lines) and forcing me to reboot. After reboot, I discovered that I can no longer open any of the DAQmx examples that are compatible with the DAQPad-6015. All are corrupted. Curiously, MAX was not corrupted again. I will have to re-install all examples and possibly LabView itself.
    Based on your feedback, I am guessing you will tell me that repeating the above on your system will simply produce an error message, as expected. It appears that I may have a fundamental incompatibility between my specific system hardware and DAQmx/LabView.
    Regards,
    Joel

  • Multiple 9221/9162 USB DAQ Conflict

    I'm using LabVIEW 8.6.1 and NI-DAQ  8.8 on Windows XP. I'm trying to set up two NI 9221/9162 usb controlled DAQs to work at the same on the same computer. Each unit works individually, but If I plug one in after another the first one that was plugged in stops responding and I get the below error on a self test in MAX.
    When I attempt to use the unresponsive DAQ with the softpanel in MAX I get the following error.
    However, if I plug both usb cables into the computer at the exact same time I don't get the device conflict error. Unfortunately this work around is not a desirable solution for the environment this test will be deployed in. Is there a better solution for this problem that will allow both devices to respond regardless of the timing in the plugging in the usb cables?
    Thanks you.
    Message Edited by mattmaka on 10-26-2009 03:40 PM

    The hardware is fine as the units work individually, but not simultaneously when plugged in at different times. I'll move it to the HW forum though.
    The problem persists on different machines.
    Message Edited by mattmaka on 10-26-2009 04:02 PM

Maybe you are looking for