Include .vi with DAQmx .vi SERIES

Hey everybody,

I searched the forums looking for examples of the integration of two .vi, but are short on key words to search for. So here's my question.

I have two separate .vi that operate independently. The first collects the DAQmx data and writes the data a binary file. The second collects data from the serial port using VISA read and writes the data to a .csv file.

My main .vi designates the DAQmx read because it has the GUI on the front panel. I would take and display 5 string since the VISA .vi variables and post it on the DAQmx .vi. But I can't do it!

I tried to create two parallel loops in the DAQmx .vi but when I do that, the VISA file does not work.

Any help will be great, because I think that this problem to be more simple I have do it. Thanks in advance!

-Yao

Post your VI.  If a loop is not running up to a another loop ends, then you do not need parallel loops.  You must have a data dependence caused by a wire connecting to one another.

Tags: NI Software

Similar Questions

  • With a sampling of the data with DAQMX, error-200279 occurs when making 2d array dbl

    Hello

    I did a system of simple analog voltage with DAQMX data acquisition.

    It is made for reading of capacitance, where output capacitance value out of a circuit in the periodic voltage signal.

    What I want is to get data from four capacitors simultaneously through four channels, using samples n n (dbl 2d).

    The structure of my VI is almost similar with examples of continuous sampling of voltage in LabView, with the exception of a few other calculations in the loop.

    And for the synchronization of the trigger, I've corrected the edge of release with the external signal from the capacitance reading circuit.

    Version no. 1 has a channel for data input voltage. Version n ° 2 has four channels for the input data.

    While ver.1 can get accurate reading of four capacitors circuit data each (a single channel at a time),.

    ver.2 acquires four channels of data, with a single thin data channel, all the others were wrong.

    I saw a 200279 error occur in the DAQMX read part 2d dbl, so I tried increasing the buffers by changing the sampling frequency or the number of samples, but it wasn't everything.

    I rose for most of the forums with the 200279 error, but the solution would not work on mine.

    Anyone can find the problem? I will attach my screws it may include a bit of Korean language, but most of them are in English, shouldn't be too hard to recognize. Sorry for the inconvenience.

    Oh I forgot, my DAQ is NI USB-6259, and it works in Win XP sp3 and LabView 8.6.

    Thank you.

    Hello Azurenight,

    The 6259 is a DAQ card of the M Series Multiplexed, which means that it is not possible to sample each signal at the same instant, rather the channels are all sent through the ADC even and must be sampled in order. More information on this can be found here:

    LabVIEW Help: Multiplexing compared with simultaneous sampling

    http://zone.NI.com/reference/en-XX/help/370466W-01/mxcncpts/multisimulsamp/

    It may still be possible to get the data you need with the card you have - could you give more information about the maximum eligible period between samples on different channels?

    If you require * real * simultaneous sampling, you will probably need different hardware.

    Kind regards

  • 2009 with DAQmx Installer

    We distributed an integrated application that uses DAQmx 8.x and LabVIEW 8.6 for several years.  I'll call the application MyApp 2.8.  We are working on a new version that uses LV 2009 and DAQmx 9.x, which we will call 3.5 MyApp.  When build us and deploy a Setup program for MyApp 3.5, then try to use it on a computer that already has 2.8 installed MyApp, the installer complains about dependencies and said that the two DAQmx 8.x and MyApp 2.8 must be uninstalled first.  I spoke NOR cela briefly and told me that DAQmx 9 was a pretty radical overhaul that required this change.

    It's annoying and slow for us, but almost untenable for our customers.  First of all, MyApp MyApp 3.5 and 2.8 are compatible, and we prefer to leave MyApp 2.8 installed as a backup as people get used to 3.5.  If the customer needs:
    Uninstall MyApp 2.8

    Uninstall DAQmx 8.9

    Install MyApp 3.5 with DAQmx 9.0

    Reinstall 2.8 MyApp (as if they can still find the disc!)

    Far too many steps and complications.  In addition, it is not really necessary.  If the runtime for 2009 is already installed on the computer (for some reason any), you can simply copy the MyApp 3.5 on the computer and it will run with DAQmx 8.9.  But this only postpones the problem, because at some point the customer will upgrade once again, and we will have forgotten that they were installed with a workaround, and...

    The really frustrating part is setup for MyApp 3.5 refuses to install until MyApp 2.8 is uninstalled.   While we have proven that MyApp 2.8 will work very well with DAQmx 9.0.

    Is anyone else noticing this problem?  Has anyone found any better workaround?  Is the same problem when we jumped 2009 and returned with 2010 and the last DAQmx?

    Thank you

    DaveT

    DaveT,

    You're right - for this aspect of the problem - my proposed solution won't help. At the price of a larger Setup program, including the full version of DAQmx probably will give the upgrade experience you want. If the web download size is a concern, perhaps you could provide two builds of your product - with the acquisition of complete data (for those of you who have your old product) and with smaller data acquisition (for those who do a clean install)?

    In addition, certain registry keys to remove the dependency I guess hacking is sort of an option, but it probably isn't the type of solution you are looking for. (We are currently researching the addition of some extra features in the uninstall program OR allow without taking account of certain dependencies, but nothing is currently available).

    Kind regards

    -WesW

  • S205 Lenovo with RaLink 3090 series wifi adapter problems - update driver 3.2.1 solve?

    Hello.

    I just got the Lenovo S205 with RaLink 3090 series wifi card and had a steady decline until I downloaded the Version 3.2.1 update which was included in the link for the 309 X (X being 0 for me for my wifi card) software/drivers on RaLink site, under the Help menu.

    Go to ralinktech.com and go to Support > downloads > Windows and you will see a list of several RaLink devices which include the adapter X 309. I chose to download/install the full utility with the driver. I remember well, it may be more 28 megabytes.

    I hope it works for you!

    Update:

    I uninstalled the RaLink wireless utility that came with the 3.2.1 pilot, but it uninstalled the driver too. Then I reinstalled and activated the option "install driver only", went into the control panel > hardware and audio > Device Manager > network adapters >

    RALink RT3090 802.11n WiFi adapter > double-click to open the properties > power management tab > uncheck "allow this computer to turn off device to save energy ', 'OK', close and restart programs.

    So when I start or wake the system from sleep, I click the Wireless connections icon in the lower right (next), bar and then click on the link that I want to connect, and then click 'Connect' While it takes 8 seconds to connect, it is worth MUCH more that to have the connection drop constantly, and I probably reboot my system only once when he didn't to reconnect out of a State of sleep.

    I had a MUCH more homogeneous behaviour since this change, and I hope it works well for you too!

  • Timing embedded with Daqmx on PCI-6132

    Hello

    My colleague and I are trying to make a program Labview which starts a timer when the first trigger (sensor) is struck and stop the timer when the second trigger (sensor) is reached in 2012. We currently have a program for her, but this program was not sufficiently precise. Also the current program is using the DAQ assistant, but we would like to replace with daqmx triggering. We have also tried to use the OnboardClock on the PCI-6132, but still could not do the work programme.

    Is there anyone who knows how to do this and could explain it?

    (In the attachment is the current program)

    Thanks in advance,

    Tommy van Geest

    Hello Tommy.

    You can share your current code?

  • Is it time stamp with daqmx read

    Hi all

    Simple question.  I have currently not creating a task or starting a task, I simply create a channel and reading that chanel.

    It is...  Why I don't get a timestamp when you do and do I create a task to get one of this?

    There is a timestamp when you use the DAQ Assistant or when you choose to return a data type of waveform with DAQmx Read.

    You can't do a reading without a blemish. You don't have to create the task in MAX, however.

  • Multitask with daqmx

    Hello

    I am currently working on a Senior design project where I have to measure rpm, torque, pressure and temperature.  I use strain gauges, pressure sensor and a Hall effect sensor, thermocouples for these readings.  A myDAQ collects readings rpm and pressure while a cDAQ collects couple and readings of the temperature with NI 9211 and NI 9237 modules.  I have created LabVIEW screws for each sensor and they work.  The problem I have is when I try to create a VI with DAQmx who reads all the values of these sensors simultaneously.  The VI I joined randomly displays one of the measures while other measures remain empty.  How can I change my VI so I can show all my readings at the same time?

    Yes.  Create multiple tasks, where all the strings that are common to a specific device are grouped in the same task.  Then go and run these tasks in parallel.  Do you need a precise synchronization between the tracks in the different devices?  If this isn't the case, then the method should work perfectly.  If you need a precise timing, things would get more complicated, but might not be impossible.

  • time of release with daqmx

    Hello

    How can I set the time of liberation with DAQmx?

    In general, with a single DAQ hardware, the two signals are connected at the same time and the acquisition time is a function of the sampling frequency and number of samples read. For example, with a sampling rate of 1000 samples/s and 50 samples, the acquisition will be 50 msec. You then get a returned array if you wanted to watch a single signal by iteration of the while loop, it is simply a matter of indexing the specific channel to the table. You must set the mode of continuous sampling to avoid gaps and precise timing. Using two separate tasks and switching back and forth would add a lot of overhead to close/create tasks and you have little control over this period.

  • Faced with the simple series comms

    Hi all - summer tweak something that should be simple for hours now, so I'll ask for help...

    I have a RS485 device connected to COM5 via a USB adapter, work at 9600 baud, 0,8,1, no - fundamentals of series. I can talk to the device using the terminal software native and even using hyperterminal with the above parameters. It seems obvious, and so I thought that LabVIEW and VISA would connect without too much effort.

    So I use the following simple sequence into LabVIEW:

    -VISA set up the serial port, 9600,0,8,1, none (no error)

    -VISA defined the size of buffer, 4096 with a mask of 48 (no error)

    -Stamps of Ras VISA, the two buffers (no error)

    -VISA write, chain of command is 'PR C2\r\n", which should be echoed and return a numeric value (normally 0)

    -check the bytes to the port property; returns 12

    -VISA read, returns the string of command only, 7 bytes

    why I can't read the full buffer?

    To be honest, I thought that it will work only with a trivial series program: set-read-write. But which still generates an error. I added the size of the buffer since then do a little research and makes without error at least, if not in one of the published examples.

    I don't think it's a matter of time, since I add a lot of late, when I'm debugging, and I tried to put delays read before. The fact that the number of bytes in the buffer is 12 seems to indicate that my answer is here somewhere...

    I also tried a second reading, but it returns nothing.

    Kind regards

    Lamb

    Just disable the tank of the termination.

    This is the reason why you get only one line.

    Or do a second reading at the end.

  • Photo Viewer shows photos directly in spite of, including files with Irfanview

    I associate the pictures files including jpg, with Irfanview, but when I connect my camera to my computer and open a file directly, Windows Photo Viewer displays the image instead. Despite the fact the Irfanview icon will appear in the directory for all jpg images, these files are taken hostage by the Windows Photo Viewer. My default viewer works with files on my computer of the disks. This only happens when I connect my camera. How can I stop this program quite useless and buggy of misappropriation of my file associations?

    I also had Photo Viewer 'diversion' Irfanview in Windows 8. No matter what I did, JPEG and TIFF files, but in the 'open with' associated with IrfanView, kept opening of photo viewer.

    After trying everything else, found a safe and definitive solution.

    1. start Regedit

    2 go to the ROOT of HKEY_CLASSES

    3. go to the file association that does not correctly (for example, .jpg or .tif)

    4. just rename while it becames disabled: for example to rename «.jpg' as «.jpx»

    Return to your Windows Explorer or any other file manager, make a right click on a JPG or TIF file, open with and associate with IrfanView (or any other program). THIS TIME Windows will automatically register a new .jpg or .tif extension and IrfanView open files when double-clicked.

  • How to include Reactjs with Phonegap?

    I'm new to Phonegap so I installed the desktop Phonegap app, created a project etc.

    This all works fine with updates in real time on a device.

    Now I want to include Reactjs with es2015 babel using webpack as I would normally,

    but I have no idea how merge these into the startup project I created with Phonegap desktop application.

    Build you just like you normally put your generated file (bundle.js) in the root level www directory and reference in your index.html.

    You can also try to use a template to get started. Something like phonegap-model-react-hot-loader

  • How to synchronize a DSA Board (4496) with several S-series (6143) tips for PXI?

    I need to set up a data system that will require the measure to phase for accelerometers-locking and dynamic deformation signals.  How to synchronize my PXI-4496 Council with my PXI - 6143 s?

    I forgot that some DSA properties does not directly on the devices of the series S I have been able to find an article in the knowledge base that has addressed your specific issue.

    Synchronization Dynamic Signal Acquisition (DSA) with NOR-DAQmx products, this includes an example program synchronization a DSA device and MIO device to sample at the same pace.

  • Is the cable of HDD of m6-1105dx even with m6-1000 series?

    Hi my laptop is m6-1105dx, and the hard drive cable is not working now. I tried to find it online, but I couldn't find anything. As I have heard, it seems that the m6-1000 series use the same cable. Is this true?

    Thank you.

    ExExE wrote:

    Hi my laptop is m6-1105dx, and the hard drive cable is not working now. I tried to find it online, but I couldn't find anything. As I have heard, it seems that the m6-1000 series use the same cable. Is this true?

    Thank you.

    Hello

    Here are the two spare part numbers:

    portable entertainment M6-1000

    Material hard drive Kit (including the support of hard disk, hard drive connector cable and live)
    686907 001

    Notebook m6-1105dx want to

    Material hard drive Kit (including the support of hard disk, hard drive connector cable and live)
    686907 001

    Thus, the two are essentially the SAME.

    Here are some online sellers sell: amazon , ebay

    Hope your problem is solved.

    Thank you

    CLICK ON 'ACCEPT AS SOLUTION' IF THIS SOLVED YOUR QUERY, TO HELP OTHERS WITH THE SAME PROBLEM *.

    CLICK ON BRAVO IF YOU LIKE MY ANSWER *.

  • Problem with DAQmx Schedule VI (sample clock)

    Hello to you all,.

    I'm new to this forum, please bare with me. I have some experience with LV, but I am relatively new to data acquisition projects. I use LV2009.

    I want to make sure that I use the hardware timing (instead of software distribution) in my project so I followed some of the threads here as sugested to use DAQmx Schedule VI. The problem is that no matter how I set the system I get the same error-200300 invalid calendar
    type.

    The project is simple. I encode with 1000 pulses per
    Rev and it is mounted on a shaft of a turbine water goes thru. I'm watching the frequency
    and so the rotation of the shaft which tells me that the amount of water flows through the turbine. In the end, there will be 2 channels
    by every encoder and ~ 3 encoders (turbines) total and calibrated the main meter that will give me constant impulses and all encoders will be compared to this master frequency.

    I'll use PCI6602 DAQ, but
    now, for the development, I use USB6221. Let's say that the
    frequency is between 500 Hz and 10 kHz. What I am doing wrong? Or maybe better to ask - what would be the right approach for this project?

    Thank you

    Marty

    Hi Marty,

    It seems that your question is already answered here, but Jason is correct that the 6221 neither the 6602 support a clock sampling for frequency measurements.

    As Jason mentioned, your best bet is also likely set the mode of synchronization for "implied". This means that the frequency value is sampled at the end of each period of your input signal. In addition, a solution that is clocked by the software (On-Demand) might be acceptable.

    X Series DAQ devices allow an external sample clock to use for frequency measures (described in the Manual of X series). Frequency of sample-clocked measures are useful in very specific
    circumstances, but it does not seem that you need this feature based on what you've described so far.

    (621 x) bus-powered M series can also be configured to use an external sample as the X series clock but do you not have the same features described in the manual of the X series.

    I hope this helps!

    -John

  • PXI-6133 Pulse frequency output and input with DAQmx

    I am trying to set a pulse meter output frequency task and read this signal with a frequency counter input task input pulses.  I use a 2 PXI-6133, each connected to a BNC-2090 case has.  I want to output a square of a certain frequency with the task frequency meter pulse output and then read the frequency of this signal using a task of cost input frequency.  I don't know how to property set up these tasks, or how to define which device to use for each heap.  I don't know what terminals on the BNC-2090 is the counter of entry/sortient channels correspond to them because that is not displayed in the documentation of the PXI-6133 or documentation of BNC-2090.

    Please see the attached VI for my attempt to put this in place.  Currently, I get two errors:

    (1) error-200452 took place at the property Node DAQmx channel meter Test - referred to as property is not supported by the device or is not applicable to the task.

    2. the error-89136 at DAQmx Start Task - specified route cannot be met because the hardware does not support.

    If I remove two channels of property DAQmx where I try to put the terminals for the counters, while the program is running, but then I know not what terminals on the BNC-2090 meters are connected to!  This causes the DAQmx read for the cost in the tasks of frequency to timeout because it does not detect a signal.

    I would really appreciate the help to properly configure these tasks and determine what terminals on the BNC-2090 case has the task of counter will work on.

    I see a few problems in the code originally:

    1. For your CI task, you type is defined as a counter entry > frequency.  But on the node property of DAQmx channel for this task, you modify the CI. Property of PulseWidth.Term.  It should be CI. Freq.Term. set the entry regardless of the PFI line you do not want the input signal on.  Tip: you don't have to type the name of the device in at all.  Enter "PFI0", it's the same as "DevN/PFI0" since the unit has already been specified in the DAQmx Virtual Channel Create function.  The name of the device, leaving aside will make your code more flexible where you decide later to change the name of the device.

    2. Maps of the S series, such as the 6133, do not have the same flexibility to change the output terminals of tasks of meter you might find with M or X series device.  Page 83 of the S series manual watch what signals can be extracted to PFI lines - Ctr0Out is not one of these.  Instead, Ctr0 out is, by default, pin 2.  Cabling to a BNC-2090 6133 is certainly difficult to understand out (probably because the 2090 was designed to work with the materials of the E and M series), but if you compare the pinout of a PXI-6255 0 with the 6133 pinout connector, you will notice that they are essentially a match 1-1.  Pin 2 is PFI12 on the 6255, so I assume the same for the 6133.  All this to say, Ctr0Out always appears on the pin 2/PFI12 for the 6133 and you therefore cannot change the output terminal that your code is trying to do, having for result error-89136.  Remove this node from the property altogether and the error should disappear.

Maybe you are looking for