Generat two signals at the same time and reading voltage

Hii
i have try to generate two signals at the same time and read voltage from another port on the board(not have to be at the same time), i have not alot of expriens in labview
and i based my code of example(http://zone.ni.com/devzone/cda/epd/p/id/5197) from yours site and try to suit to my needs
now my problem is when i generat the 2 signals(that work perfect) i canot read voltage from another port on my CB-68LP
i can not find the problem  and make it over i hope there is away to figer out and fix it.
i have two cards 6229, and two CB-68LP board.
labview 8.5.
my code is look like this - http://img142.imageshack.us/my.php?image=scrennshot2no2.png
(this works perfect).
and this is my code after suit to my need - http://img183.imageshack.us/my.php?image=scrennshotfl5.png,there is  error exception at  the right side.
the exception-
Possible reason(s):
Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: RefClk.Src
Source Device: Dev1
Source Terminal: 10MHzRefClock
Required Resources in Use by
Task Name: _unnamedTask<0>
Source Device: Dev1
Source Terminal: None
Destination Device: Dev1
Destination Terminal: RefClock
Task Name: _unnamedTask<1>
eyal

sorry...
The AO tasks is very important they will be synchronize ,it is very importent the two tasks will start at the same time
and after it run at synchronize mode i will need to make reading of voltage
i gust try to make simulation of machin (i give that machin AO and reading from it voltage that all)
first of all i make the two signals(synchronize signals).
and after it i will need to reading voltage.
i can make two signals synchronize together.
i can make reading voltage
but i can't make two signals synchronize together with reading voltage
it throw to me this error message.
i am looking for away to figer this out.
thank's for any help 
eyal
Attachments:
test11.vi ‏130 KB

Similar Messages

  • My newer IPhone gets a weaker cell signal at the same time and place as my wife's older one. Help

    My newer IPhone gets a weaker cell phone signal at the same time and place as my wife's older IPhone. Help!

    What is the signal the difference?
    Follow this guide and record the numbers you see...
    http://lifehacker.com/5929546/see-the-actual-signal-strength-on-your-iphone-with -this-quick-tweak
    If the difference is within ~10db there's not much to worry about.
    Now if you see -130 and -80 that is an issue. (talk to your carrier)
    But if you see -60 and -75, both phones are operating normally.
    What are the iPhones in question?
    Are you both on the same network? (what network(s) are you on?)
    What data connection is available on each phone? (3G/4G/LTE)
    Are the iOS and Carrier settings up-to-date?

  • Send two signals at the same time to serial

    Hi
    I have a problem in that I want to control some relay boards by serial. The boards have an address byte (to determine which of the three relay boards) and a relay combination (four relays on each board). The .vi I will need to make will be sending data to the serial as a result of feedback from sensors (they are currently simply controlled by timers to simulate) so there is a good chance that there will be two relay addresses sent at the same time and consequently much confusion. The timed simulation demonstrates this possibility by switching all relays on at the start.
    Is there a way of avoiding this? Any help would be much appreciated.
    Many thanks
    Alastair

    Alastair,
    When you say send to multiple boards "at the same time" exactly what to you mean? On a serial port only one byte at a time can be sent. You do not specify how many bytes are sent to each board to handle the addressing, the data, and any EOT (End of Transmission) characters.
    I can think of two possibilities.
    1. Relays are slow. If the transmission rate is fast enough, you could send messages to all relays sequentially over the serial port but still have the appearance of simultaneous activation of the relays. If the relays switch in 10 ms and each command contains 6 bytes, sending the data at 115 kilobaud would take about 1.5 ms for three boards. This would likely be close enough to simultaneous for relays.
    2. Add a command similar to the GPIB GET (Group Execute Trigger). All devices on the bus respond to this command by executing a previously stored command. No addressing is used for this command. This does require that the relay boards be modified to respond to their address and to the common or group address and to store a command for later execution.
    Lynn

  • How to count frequency of two signal at the same time ?

    Hello every one
    please help me with this one i am really stuck.
    The situation   : I have two square wave signal, and i want to measure the frequency of both of themat the same time.
    the problem : Error -50103 occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi:3
    Please see the attachement.
    i also have 3 analog inputs to be measured.
    but i dont have any problem with the analog inputs,,,multiple analog  inputs can easily be measured,,,,,but the prob lem is in the digitl (square wave ) signals. 
    Attachments:
    i want to use two counter input.GIF ‏54 KB
    two counter tasks1.vi ‏250 KB

    NI has an excellent overview of the accuracy and tradeoffs of the different freq measurement methods titled  "Making Accurate Frequency Measurements."  To boil down the essence of it, the (possibly) increased accuracy of the 2-counter method depends on a relatively long collection / accumulation time which would in turn typically limit the rate at which you could update your measured freq value.
    Now let me offer some friendly but blunt advice.  LabVIEW makes it easy to collect data.  However, there are many other factors affecting the usefulness of that data.  I support the dictum: "It is hard to measure *well*."  Choice of sensors, their sensitivity to environment, various sources of noise, an understanding of the decision to be made from the data, programming methods, etc.  And even more etc.
    What I mean is that just because a hardware freq measurement can be performed that is precise to 1 part per million, it would be very RARE in a test that ALL of those 6 significant digits prove useful.  In your app, the measurements are presently only approximately correlated in time.  And the gap of blind time between measurements will usually represent a much longer period of time than the measurement itself.
    Analogy: suppose you had a 100 minute film at 25 frames/sec for a total of 150_000 frames.  Now start selecting individual frames that are separated by some random # of frames between about 200 and 500.  In the end, you may end up with a sequence of 400 frames in the correct order.  Each individual frame is VERY accurate, but the collection of all of them can zip by in 16 seconds and not give you a much understanding about the movie.
    What would usually work out much better is to sacrifice some accuracy in order to collect a greater quantity of frames.  You trade off the instantaneous accuracy for the overall coherency.
    Sorry, got on a roll...   Back to your question.  My own preference is almost always to avoid consuming hardware resources when not truly necessary.  I've been toying with counters for many years and have still never once deployed an app using a 2-counter frequency measurement.  I do the 1-counter measurement and save the other counter(s) for other purposes. 
    If you've got an M-series board, the 80 MHz timebase allows you to measure a 500 kHz pulsetrain with a quantization error of only about 0.06% (1 part in 160).  There's a pretty fair chance that whatever physical process emits that pulsetrain isn't appreciably more stable than that
    -Kevin P.

  • How to work on the same project on two machines at the same time and also exchange progress seamlessly using Adobe Premiere Pro CC 2014?

    We are working on a film project on Adobe Premiere Pro CC 2014. Two editors are working on the same film project (same pproj file ) on two machines. As a result the bin structure and the file structure is exactly the same. We even bought two licenses for the respective machines to make matters simple (at least we thought it would).
    Now when we share a sequence between the two machines, every time we have to import and re-link media. Also each sequence import comes with its own set of files, which are actually already present in the project. Basically the new sequences are looking to re-link the media to the original/ source files only and are completely ignoring the file structure present in the project.
    In all editing softwares, timeline/ sequence sharing is a very common practise when working on multiple machines. Why is it so tedious in CC 2014? Every time we share a sequence between the two machines the media gets doubled and tripled in the project. As a result the project file size is increasing perpetually. Already Premiere CC 2014 is extremely laggy and slow, and this stupid bug is making it more difficult for us to finish our work on time.
    Has anybody ever faced this issue? How do we solve it? We are willing to try out any workflow that you can suggest.

    Concurrently working on the same project it requires a specific implementation in all editing programs like Avid's Unity/ ISIS shared storage. That's what you are simply not considering. none of your issues would be any problem if your projects resided on a commonly accessed server or something like that. Check respective hardware solutions.
    Mylenium

  • Can airport express send a G and a N signal at the same time?

    I have two macs with wireless N in my home, and two pc's with wireless G. Can the airport express broadcast a wireless G and N signal at the same time? or does it need to be one or the other?

    I purchased 2 airport expresses today and the answer to this is yes

  • Is there an issue with the hitachi hard drives in the MacBook Pro's ?  Got a 15 inch and a 13 inch at the same time and both drives have failed in under two years. I have heard from a few other people with same issue.

    Is there an issue with the hitachi hard drives in the MacBook Pro's ?  Got a 15 inch and a 13 inch at the same time and both drives have failed in under two years. I have heard from a few other people with same issue. Other drive I have had have lasted at least 5 or more years.

    there is a dylib you can put in the springboard if jailbroken but if not you have to find an apple store

  • I am very disappointed with iTunes.  I have 1200 songs and I can't play them.  I try to play them and before one song finish a song starts playing. This then results in hearing two songs at the same time. I will like to know if you can fix this. I feel li

    I am very disappointed with iTunes.  I have 1200 songs and I can’t play them.  I try to play them and before one song finisha song starts playing. This then results in hearing two songs at the same time.I will like to know if you can fix this. I feel like listening with the iTunesplayer is useless.

    I don't know man I too hope apple will do something this new I-tunes blow my top lost my whole tune!!!

  • How to open 2 playlist at the same time and have them in two diferents windows?

    until iTunes 10 i can open more than one playlist at the same time, and have this playlist in diferents windos but since 11 i cannot do it anymore.. is anoying if i need to fast switc music froms playlists.. so it become usseless...
    i think the aim of the previous itunes (before 10) it was to give a service of arranging librerys of musics.. but now, it becomes a sell party program...
    and only to you to know, if i dont put my credit card on my account i cannot even buy FREE programs on appstore...
    thats bad... very bad..
    if you need some tips how to do it proprerly here you got one..
    if is not broken... dont fix it...
    now i have my iphone 6, my ipad and the iphone of my wife, but i have itunes 10 because is the one who have the multi windows possibilities.. and now i cannot sync the devices..
    thats very bad..
    i hope you can help me...
    if you dont understand my problem i can show you via video..
    thanks

    You could create an applescript to do it.
    tell application "Dreamweaver's Full Name"
    activate
    end tell
    tell application "BBEdit's Full Name"
    activate
    end tell
    tell application "Acrobat's Full Name"
    activate
    end tell
    Replace the quoted text (leaving the quotes) with the full name of the application, and save the applescript as an application bundle, and put it in your dock.
    NOTE: You may have to put the full path to the application for it to work (I.E. /Applications/Dreamweaver.app). If you do, encase the full path in quotes.
    Good luck!
    Message was edited by: joshz

  • Write a progarm to test two parts at the same time

    Hi:
    I need to write a program in LabView that is capable of testing two parts at the same time.
    Explanation:
    I star the test on a unit, once all the electrical test is done move that unit to the pressure test without loosing the current test information and continue the test of the unit thewn generate a serial number only if it passes all the test. Then while the previous unit is going thru the pressure test star testing another unit for the elecrical test and so on.
    I am using LabView 2012

    From what you have described, I agree with what has been answered above. TestStand is specifically designed for. If you would like to provide more information about your application we could give you a more detailed response. For more information about TestStand follow this link
    www.ni.com/teststand
    Ryan
    Ryan
    Applications Engineer
    National Instruments

  • Talking to two devices, at the same time.

    Hi,
    I wonder you could help me with my solution.
    I'm using GPIB to talk to two devices. I need to reset and align one device A and control the device B. The process A can take up to 2 minutes. The process B is to cool off the DUT to demanded temperature and it can take up to 3 minutes to achieve the demanded temperature. To monitor these processes I use pull method and:
    for process A I use the STATPER:COND? query (is it 1?)
    for process V I use TEMP? query (get temperature, is the answer within the limits to exit?)
    Now, I do these processes one by one. But, because both the processes have to be done each time before DUT is tested (as a part of a setting up the test routine), I'd like to save some test time. Technically, both two processes are independent, I can trigger them almost at the same time and wait when the longer one finishes itself, and them move to the tests part.
    However, the first attempt of doing go was unsuccessful. When I issued the STATPER:COND? query within the connection to the device A it looks like all GPIB bus is blocked and I cannot issue the TEMP? query to the device B, as the bus seems to be waiting for the STATPER:COND? command sent to the device A to finish.
    Strange thing is that then I issue the STATPER:COND? command for first time, the device is not able to accept any other commands.
    Why?
    What is proper approach to to this test time saving?
    Solved!
    Go to Solution.

    X-Series Signal Analyzer Spectrum Analyzer Mode User's and Programmer's Reference is to be downloaded from the web.
    below are some exerpts from this manual
    you can query and interpret the details with visa write and reads and a bit of bit analysing. I have no time to search for a working example.
    How to Use the Status Registers
    A program often needs to be able to detect and manage error conditions or changes in instrument status. There are two methods you can use to programmatically access the information in status registers:
    • The polling method
    • The service request (SRQ) method
    In the polling method, the instrument has a passive role. It only tells the controller that conditions have changed when the controller asks the right question. The polling method works well if you do not need to know about changes the moment they occur. To detect a change using the polling method, the program must repeatedly read the registers.
    To monitor a condition:
    a.Determine which register contains the bit that reports the condition.
    b.Send the unique SCPI query that reads that register.
    c.Examine the bit to see if the condition has changed.
    To query the status byte register, send the command *STB? The response will be the decimal sum of the bits which are set to 1. For example, if bit number 7 and bit number 3 are set to 1, the decimal sum of the 2 bits is 128 plus 8. So the decimal value 136 is returned. The *STB command does not clear the status register. In addition to the status byte register, the status byte group also contains the service request enable register. This register lets you choose which bits in the status byte register will trigger a service request.
    Send the *SRE <integer> command where <integer> is the sum of the decimal values of the bits you want to enable plus the decimal value of bit 6. For example, assume that you want to enable bit 7 so that whenever the standard operation status register summary bit is set to 1 it will trigger a service request. Send the command
    greetings from the Netherlands

  • "Newbie" Unable to run two actions at the same time please help

    Hello
    I'm a newbie (2 weeks) on Labview, so I hope my problem will sound easy for some of you.
    I want to read a file and at the same time get the reading from my sensors (4 sensors).
    My program is working when I do each thing in a different program but when I add them the program only read the text file and stop reading the sensor signals...I attach the program file.
    The goal is with the text file to add an exact time for each sensor signal I record.
    Is there any other possibilities to include a time with the sensors signals recorded ? I need to do this to synchronize the sensors values with CAM program.
    Thanks
    /Xavier
    Ps I used a scan rate of 12000/s but I try 1000/s
    and the sensor acquisition is still not working
    Attachments:
    test3Rdif2802.vi ‏493 KB
    readfile.txt ‏195 KB
    sensoracquisition30s.txt ‏210 KB

    from a glance at your code, it appears that you have nested a loop to read your file, inside a loop to read your sensors. this means the nested loop to read your file must finish before the outside loop to read your sensors can run through another iteration. what you want to do is separate the two loops to run independently of each other (in parallel). use a global variable to know when to stop the loop (if they need to stop at the same time) and if you need to pass data between the loops use a queue (easiest) or you can also use globals with semaphores.

  • Using the same object in two actors at the same time

    Hello,
    I'm in doubt.  In my application, for example i have three Hardware classes - Database, DAQ1, DAQ2.
    Database class has one main method (except initialization methods) - Log Measure.
    DAQ1 class also has one method - Get Voltage, and DAQ2 class has one method - Get Current.
    Then i define two HAL (Hardware Abstraction Layer) classes - Measurement1 and Measurement2.
    Each of those classes have two main methods, respectively - Measure Voltage and Measure Curent. They also have some initilziation methods.
    In code, i create three objects of Hardware classes - Database, DAQ1 and DAQ2 and initiaze it. For example in Database private cluster i have DB RefNum, in DAQ1&2 i have device addresses etc.
    Next I initialzie Measurement1 with two hardware objects - Database and DAQ1, and in the same way - Measurement2 with Database, and DAQ2 objects.
    What Measure Voltage and Measure Curent (methods of Measurement1 and Measurement1 objects) do?
    Measure Voltage method call DAQ1::Get Voltage method, then Database::Log Measure.
    Similarly, Measure Current method call DAQ2::Get Voltage method, then Database::Log Measure.
    Till now it's clear i think. It should work properly.
    But now i incorporate Actor Framework, and define Measurement1 and Measurement2 as an actors.
    Now i can run Measurement1 and Measurement2 at the same time, simultaneously, but this two actors share one object - Database. So my question - what is when actors want to use Database::Log measure method at the same time and this method is time cosuming (for example large pack of data).
    Is one actor waits for second to stop executing this method of one shared object? I think yes because reentrancy setting (http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/reentrancy/)
    But what, for example if i share one Hardware object of device (ADC converter) beetwen two HAL classes (Measurement1 and Measurement2). This Hardware object has two methods, for ex. Get Voltage At channel 1, and Get Voltage At Channel 2. Both of this methods cannot by call at the same time, because in physical device i can measure only at one channel in the same time.
    Let the Get Voltage At channel X meausere take 10 seconds. Now i have huge chance, that Measurement 1 actor call Get Voltage At channel 1 method, and Measurement 2 wants to call Get Voltage At channel 2, when Get Voltage At channel 1 is in process. How to inform actor to wait till second actor release device resources?
    Regards,
    Kacper

    Dear Kacper,
    the way I understood, there are two separate questions in this post, namely:
    I'm using a shared resource in multiple actors, and the code accessing the resource can take quite some time to execute. How can can I ensure this does not mess up the timing of one or all accessors?
    I'm using a shared resource in multiple actors, and the code accessing the resource can generate errors if I try to access it from multiple places. How can I ensure synchronization between all accessors?
    As for the first question, the optimal solution to separate the resource prone to timing issues in a different thread/actor. Put anything that is not strictly timed (file access, network comunication) in a separate loop. For each actor, you will get queue references to communicate with, so instead of logging the measurements in the actors where they are made, just queue them up for a different loop to process.
    For the second part, the same logic still applies. Ideally, every singular resource should be handled by its own thread and nowhere else, so if anything else needs data from/to said resource, it can send a request to the dedicated thread or actor.
    If, for some reason, this is not sufficient, you have to handle synchronization in some other way. There are a lot of techniques here, for example:
    Create a named semaphore or lock as a part of the class. Have class functions use the semaphore before accessing the resource.
    Use actor messages. Have a "resource in use" or "resource released" messages sent to all users whenever obtaining or releasing said resource.
    Have a separate actor handle all resources, awarding them to threads needing them. This method also allows setting priorities between requests.
    These are just a few examples, there are many other options.
    Please let me know if this was helpful. 
    Kind regards:
    Andrew Valko
    National Instruments Hungary

  • Is there a way to show two angles at the same time in the final edit rather than switch between them with Multicam?

    Can I show two angles at the same time in the final edit rather than alternate with Multicam?

    Stack two clips on top of each other and reduce the sizes. I think that's what you want.

  • TS2972 how many IOS (iPads) can be used at the same time, and as a maximum, with home sharing?

    I would like to use multiple iPads at my residence and use home sharing for guests to watch content from my i-tunes, all on the the same network.
    what is the maximum number of IOS devices that can used at the same time, and be authorised on the "home sharing" at the same time?

    Thanks for a quick response!
    Under "Network adapters", here's what I found:
    - Broadcom 802.11g Network Adapter
    - 1394 Net Adapter
    - Marvell Yukon 88E8036 PCI-E Fast Ethernet Controler
    Two other wireless USB adapters are the same:
    - BLANC Mini Wireless USB adapter

Maybe you are looking for

  • Oracle Form functions and procedures in APEX, how?

    I am working to recreate in APEX, already existing Read Only Forms in Oracle Forms. APEX Interactive Report functionality among other things, makes it worth while as well as targetting a different audience than the one that utilizies the Oracle Form

  • Advance Received from Vendor

    Dear All Can anyone tell me how to do configuration for Advance Received from Vendors? Thanks & Regards Kanwaljit

  • Pre-note set for vendor

    Hello everyone - We are using PT 8.49.Can you please tell me how can we process pre-note for a vendor.I need to send a file to bank with zero dollars. I tried creating an ACH file after turning on the Pre-Notification flag in the EFT Options for a ve

  • Direct connect to my PXI module

    Hi, my problem is, that I don´t know how I can direct "speak" whit my PXI module. I need some information about revisions-number and so on... whit the DAQ I can find serial-number and device-type, but I need some specific informations. If I look to G

  • The Problem About Action Script..

    When i published the fla document on adobe flash cs5 , flash cs5 doesn't publishing actionscript files.. I'm looking my swf file from any decompiler but i can't see actionscript files.. Please Help Me , Thank You.