Program to write signals from PXI 5105 using labview 2011

Hello
I am new in using labview. I need help in writing program to continuously record the signals form PXI 5105 using LabVIEW 2011.  I prepared a program using help examples. It is recording the signal using pxi 5105 into the file after trigger. I tested the code using waveform generator with -100mV to 400mV, 1 kHz, sine wave. I have also attached the waveform of signal from the excel file recorded by the program. I have following queries
(i) Is the program correct to continuously record the triggered signals. Have I used the while loop correctly?
(ii) why some part in waveform is missing.
(iii) What should be the value of millisecond multiple ( I used zero)
I want to use above program for strain gauge signal measurement. Where I have to record the data at 20Ms/sec sample rate for 1 milli second after trigger.
thanks
Attachments:
Signal recording programme.vi ‏85 KB
recorded_signal.png ‏38 KB

Hi,
Sorry but I've only got LabVIEW 2010 so I can't open your file. If you can post a 2010 version I can take a look.
vinod_p wrote:
(iii) What should be the value of millisecond multiple ( I used zero)
If you are talking about the "Wait until Next ms Multiple" function then "Wiring a value of 0 to the milliseconds multiple input forces the current thread to yield control of the CPU." (from the context help for the function - press <ctrl>+h). Is this the behaviour you want?
Normally the ms multiple function is used to synchronise loops as it waits until the next multiple (be it 10ms or 10s) before continuing the loop.
-CC
"If anyone needs me, I'll be in the Angry Dome!"

Similar Messages

  • How can i write the data to PIC16F819 using labview?

    how can i write the data to PIC16F819 using labview?
    Need help!
    im using labview in gathering the datas that i need to right to the PIC, then after getting all the datas i am using another program which is ICD2 in order to write it to the PIC. Is it possible to do this task through LV? coz we are spending a lot of time transferring the data from LV to ICD2 manually and its prone to mistake as well.
    any suggestion?
    thanks,
    Pedz

    LabVIEW does not currently have a built-in method to communicate with
    i2c, but there are other vendors that sell devices to communicate in
    this manner with LabVIEW development kits.  One that I know of is
    from MCC... here is a link:  http://www.mcc-us.com
    They sell a device called iPort, and then you can buy LabVIEW VIs to go with it.  I hope this is helpful to you!
    john m

  • How to write the data into EEPROM using Labview?

    How to write the data into EEPROM using Labview?

    You would need some sort of EEPROM programmer. Typically might
    communicate with it via serial. I don't know how you would do this in
    LV. You would need to have the command protocol for the programming
    device to start with.
    Doug De Clue
    gpibssx wrote in message news:<[email protected]>...
    > How to write the data into EEPROM using Labview?

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

  • Is it possible to create a schedule in Labview . Example: i want to off the lights at 7pm and want it on at 8am. If there is can anyone teach, its for a school project. Im using labview 2011

    Is it possible to create a schedule in Labview . Example: i want to off the lights at 7pm and want it on at 8am. If there is can anyone teach, its for a school project. Im using labview 2011...thx

    Since this is a school project I recommend you do the work yourself. You will not learn asking others to do it for you. In addition, folks here will not do your homework for you. We are however more than wiling to answer specific questions for you. Post what you have done or tried and ask specific questions. I am confident you will get assistance.
    And to answer your question, yes LabVIEW can be used to implement a scheduling program.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Route signal from pxi 6602 to RTSI

    Hi,
    I have a problem to export pulse from pxi 6602 to RTSI0. The code is simple as follows:
    DAQmxCreateTask("",&taskHandle);
      DAQmxCreateAOVoltageChan(taskHandle,"AO/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL);
      DAQmxCreateAOVoltageChan(taskHandle,"AO/ao1","",-10.0,10.0,DAQmx_Val_Volts,NULL);
      DAQmxCfgSampClkTiming(taskHandle,NULL,1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,2);
      DAQmxCfgDigEdgeStartTrig (taskHandle, "RTSI0", DAQmx_Val_Rising );
      DAQmxWriteAnalogF64(taskHandle,2,0,10.0,DAQmx_Val_GroupByChannel,out,NULL,NULL);
      DAQmxCreateTask ("", &countHandle0);
      DAQmxCreateCOPulseChanTime(countHandle0,"TimingIO/ctr0","",
       DAQmx_Val_Seconds,DAQmx_Val_Low,1,0.5,1);
      err = DAQmxExportSignal (countHandle0, DAQmx_Val_StartTrigger, "RTSI0");
    //  err = DAQmxConnectTerms ("TimingIO/Ctr0Gate", "RTSI0",DAQmx_Val_DoNotInvertPolarity );
      DAQmxStartTask(taskHandle);
      DAQmxStartTask (countHandle0);
    the lines at DAQmxExportSignal(..) and DAQmxConnectTerms(..) both generate big negative number, I spent hours and no answer. In fact I have to use the counter to trigger other boards in my project, I plan to use the route signals a lot.
    Sincerely,
    Taishan

    Hello Taishan,
    Thanks for contacting National Instruments. 
    When you are using DAQmx with a PXI system, much of the signal routing can be handled implicitly by the driver.  From your code, it appears that you want to use a counter output to start an analog output task.  Please let me know if this assumption is incorrect. 
    When used while configuring your analog output task, the following function will cause the internal output of Counter0 to be routed automatically over the PXI backplane to the analog output device.  I have assumed that your PXI-6602 is in slot 2 of the PXI chassis. 
    DAQmxCfgDigEdgeStartTrig (AnalogOutputTaskHandle, "/PXI1Slot2/Ctr0InternalOutput", DAQmx_Val_Rising);  
    The tutorials Getting Started with NI-DAQmx and Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications are great starting points for programming with the DAQmx API.  Since you are using C, Using NI-DAQmx in Text Based Programming Environments, is a great starting point for comparing the LabVIEW API to the C API for DAQmx. 
    Please post back if you have any questions. 
    Regards,
    Browning G
    FlexRIO R&D

  • Start a program with a signal from serial port

    Hi, my program need to continue when it's gets a signal from the
    serial port, I've understand that i need to use Java Communications 3.0 API.
    couldn't install it.
    when i import, in my program, javax.comm.* it can't be resolve.
    thank for eny help..:-)

    Glad you got it to work. I would only say 2 very important things:
    1) Do not use an IDE as long as you can't code using notepad and command console and don't understand the concept "classpath". Now you've to learn both the IDE and the Java language basics. This is going to take a longer time than when you learn it one by one.
    2) You should NEVER place any 3rd party libraries in JRE/lib or JDK/bin. This is receipt for major future troubles. You should define the classpath yourself. You shouldn't misuse the default classpath.

  • Can read or write possible from MQ Cluster using Oracle Interconnect

    Hi,
    Can we read or write from MQ Cluster using Oracle Interconnect? If we can then how can we do it?
    Regards,
    Koushik

    Sorry guys if I am missing something here but would you not be better just using the available Oracle ESB AQ Adapter?
    I've been able to pick messages up from an AQ Queue and on to both Oracle and another vendors JMS queues and vica-versa
    Cheers
    A.

  • Controlling pxi 7350 using labview software

    Hi,
    So i am a complete newbie when it comes to labview having only used it to control virtual instruments before and now i am the point where i want it to interact with real world items. Ok so here goes..... i have the latest labview development software and have also purchased a pxi1033 with a pxi4065 digital multimeter and a pxi 7350 motion controller integrated within.
    my problem however is that i want to be able to control my motors via the umi7772 interface but cannot seem to find the correct symbols on the labview software to utilise them, i would like to use labview to create a program that will turn the stepper and evaluate what is on the dmm and then turn accordingly this is way above my level on labview currently but if anyone has any ideas then any information is greatly appreciated.
    cheers
    james

    Hello Jamest6, 
    I have found some useful documentation that will help you get started with you 7350 and LabVIEW. 
    First of all here is a community example that you can take a look at. It is possible to download the example itself from the bottom of the page.
    Read Analog Input (AI) values from NI-Motion device 73xx : https://decibel.ni.com/content/docs/DOC-5617
    Then you can access these knowledge base articles for some more guidance : 
    How Do I Use the Digital Input/Output Lines on my 7330, 7340, or 7350 Motion Controller Card? : http://digital.ni.com/public.nsf/allkb/2D238C3BF101620C862573A60081BFFE?OpenDocument
    How do I control the analog ouputs from an NI PCI motion controller in Measurement & Automation Explorer?: http://digital.ni.com/public.nsf/allkb/04B940903BDD987C862579320083C6FF?OpenDocument
    Also using these manuals for both prducts will be of help to you : 
    NI 7330/7340/7350 Motion Controllers and
    P7000 Series Stepper Drives: 
    http://www.ni.com/pdf/manuals/372324d.pdf
    NI UMI-7774/7772 : http://www.ni.com/pdf/manuals/373359c.pdf
    Another great source for looking at or using example VIs is the  LabVIEW's Example Finder.  Go to Help » Find Examples... When that window pops ups, double-click Toolkits & Modules in the folder list, then double-click NI Motion Assistant.  I'm guessing the "Straight Line Move.vi" or "Blended Move.vi" would be most helpful to you, but you could read the descriptions of each example listed for a little bit more information about what the examples are doing.
    Hope these are useful! 

  • How can I program my imager to take longer samples using labVIEW?

    What I would like to be able to do is to use LabVIEW to program my external hardware to take a sample length of a specific time. I would also like to be able to find out how fast my Imager is sampling at, kind of like using the program as an oscilliscope to read the sampling rate of my hardware.
    Any advice would be much appreciated.
    Thanks,
    Brian

    Bruce,
    I have a PCI-1424 Image Aquisition board, and it is connected to a KLI-2113 Kodak imager. The reason that I was thinking that I could get some kind of clock reading from the Kodak imager is that In the graphs, (I will send them), in some of them you can definatly see a pattern, exspecially if you leave the points on the chart and run another cycle, they almost mimick the previous results. What I would like to be able to do is to see how long each one of those cycles are running. The graphs time axises are messed up because If I have it one way I get like 295 and if I transpose it I get 79, (as you can see in the graphs). I think those are how many samples that are comming from the board but in some instances you can see th
    e exponential grades on the graphs and charts which leads me to believe that somehow the CCD chip is reading the collected charge in samples starting from the left to the right, (or the other way). I want to know how it is reading it, how long each sample is and how to collect either x amount of samples or y amount of time for each sample. Also it is interesting to note that the sampling on the x axis stay the same no matter where and how the light is shown onto the CCD chip.
    Anyways, I will attach the graphs so you can see what I mean and I will also attach the KLI-2113 Manual. I really appreciate your help Bruce,
    Brian
    Attachments:
    kliColorEvalBoard.pdf ‏247 KB
    Close_vs_Far.doc ‏349 KB
    Thin_Band.doc ‏136 KB

  • Can I run an embedded program on me LEGO Mindstorm 2.0 using LABVIEW??

    Hello guys,
     I am working now on my Lego mindstorm 2.0.. But i have a problem on my robot on how to work with this problem:
        I made a security robot, it has ultrasonic sensor. the ultrasonic sensor is set up to 15 inches. Once the ultrasonic sensor detects a object it will alarm.
       .(I do the programming in the Lego Mindstorm software not with Labview.)   and now I want to do with my robot is when the sensor detects it will send a
        SMS Message to my cellphone. My friend tells me that once the sensor detects it must connect the NXT BLUETOOTH to the BLUETOOTH  of the
        cellphone. I believe that I can use labview with my problem.
       and the cellphone will text to my cellphone. Can i do it with Labview? Can i save a program to my NXT brick to do that? because the first cellphone
      works as a transmitter and the second cellphone will recieve the Message. Can you please give me ideas and example to do this. I am really new to
     Labview. I use labview 9.0 trial version. Thank you.

    In another thread...
    Weeward wrote:
    I have another favor to ask, can you please
    give me a program sample on how to send a SMS  using Labview because
    unfortunately I dont have any idea where to start. Thank you very much..
    One more, do you think aside from using Labview to send sms, is it
    also possible to use Java?' will NXT accept it? if it is so, can you
    please give me sample program?
    PS: Guys I only have more than 2 weeks to solve this problem because at
    the end of this month I must present and defend my project. I used to
    ask my friends and other people but they dont have any idea or broad
    knowledge about NXT. So please help me guys till I finish this
    project..Thank you.
    It sounds like you are short on time and desperate for solutions! Unfortunately, I'm not aware of anyone that has already completed this exact task and has example code available.
    Please go back and re-read my previous post about different modes of communication. The NXT will not be able to accept SMS messages -- it can only accept Bluetooth messages sent through the Serial Port Profile. I'm pretty sure Java provides functionality that would allow you to do this.
    Have you considered alternate programming languages for the NXT? You can find a short comparison of languages here: http://www.botmag.com/articles/10-31-07_NXT.shtml
    Keep in mind that we can't offer much assistance with other languages, but if those languages are more familiar to you, they may help you get to a solution more quickly.
    James Blair
    NI R&D

  • Getting data from a photodetector using LABVIEW

    I have an infra red interferometer and I am using an IR photodiode in my setup. I have a connector box and a DAQ card ( model number NI-PCI-MIO-16E1). How can i use labview to get intensity data versus time ?   

    Unlike Paul wrote, I would suggest to use RSE instead of Differential, as the photodiode is not grounded. Otherwise you will pick up massive (sometimes above input limits) power line signal.
    Felix 
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • [Urgent]How can I write to physical memory by using LabVIEW 8.2??

    Hi everybody,
    I am dealing with a project related to micro-EDM. We feed the gap voltage back to a NI DAQ card (not quite sure about the series number, might not be important to this problem), and we want to use this voltage to determine the command position of the motor, which is controlled by a Delta Tau PMAC motion controller. Now the problem is, the NI DAQ card and Delta Tau PMAC controller cannot communicate directly with each other. Therefore, we want the LabVIEW to write the value of voltage to a certain physical memory address, and then let the PMAC controller read that address. Is this feasible by using LabVIEW and NI-DAQ card? Which block or library in LabVIEW shall I use to achieve that? Or is there any alternative way to do it? Thanks a million!
    I have to get this done by the end of this week....if you know how to do it, please let me know. I really appreciate it! You are my lifesavor! 
    Regards,
    Xiaofei

    Duplicate post: http://forums.ni.com/ni/board/message?board.id=170&thread.id=289539&jump=true
    LabVIEW Champion . Do more with less code and in less time .

  • Capturing live image from integrated Webcam using Labview

    How can i capture live image from my laptop integrated webcam using LabVIEW ?
    Even after installing all the IMAQ drivers, MAX is not displaying my integrated webcam ?
    Why is it so ?
    do i need to install some additional drivers for this ?
    Thanks and Regards
    Gaurav Pal

    hi, you can use NI Vision Assistant
    IDE ofNI Vision Assistant
    ..select acquire images
    ...select option 2
    ...select devices: CAM0 (default webcam), video mode resolution 
    ...option 1 acquire single, option 2 acquire continuous 
    Atom
    Certified LabVIEW Associate Developer

  • Can i take photo from wireless camera using labview?

    my project is fire fighting robot it detect fire using camera so can i use wireless camera when using labview or not?and if yes, how can i do that?

    Hi khaledyr,
    yes it's possible, but the effort to realize it depends on the camera model. Do you already know the camera type you will use for it?
    Mike

Maybe you are looking for

  • IPad 4 prints small on Epson airprint printer

    Either by using Airprint from Safari or either Airprint or Google Cloud Print (GCP) from Chrome yields an A5-sized printed in the top/middle of the A4 page. I'm trying to print a pdf in A4 format to an A4 page. All settings are correct as far as I ca

  • BPM error at send step

    hi experts, In a simple File to File using BPM Scenario, messages are processed up to send step (only 2 steps are there recv and send). The receive side is okay. i can monitor the messages that are being picked up in the monitor. In adapter both send

  • Setting Default Configuration in 1.4.2

    Previous versions of Java Web Start had a default configuration file javaws.cfg which contained the default preferences. When JWS was installed on PCs in our intranet, we could switch the cfg file to one which, amongst other things, set the proxy cor

  • "error code-39 with core audio driver"

    so I have a 75 minute continuous dj mix I recorded onto garageband... after having recorded this I then converted the file from a 120bpm to a 60bpm speed so as to fit it all in... now, however, towards the end (between 65-70 minutes into it) the mix

  • What are disadvantages by using field catalogmerge in ALV

    can any body tell the disadvantages by using field catalogmegre and  maximun how many fields build the filed catalog.