How do I read and write at the same time using the NI-CAN channel API?

Here's the situation.  I have one CAN bus, and I need to read and write channel data (using the channel API) at the same time both at an interval of 20 ms.  It's easy to do one or the other using the channel API, but you can't setup a channel task to do both.  It's either input or output, not both.  Is this even possible?

Hi,
yes , this is possible. But you have to create two tasks, one for input and one for output. see the attached example for LabVIEW.
If you download and install NI-CAN 2.4 you will get this example and one for C and VB as well.
DirkW
Attachments:
Single Sample Input Output same Port.vi ‏79 KB

Similar Messages

  • I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    Well, I really would love the new unreleased mac pro however , I'm not sure of the expected cost , Everyone speculates from $3,000 to $8,000, in which I may have to wait a while to purchase.
    To the point .... I want fully functional thunderbolt ports to be on the current mac pro's .... wonder if anyone had workarounds yet?...  or could I chain the the current mac pro to a mac mini to make that happen?

  • How can i connect to a LAN and external display at the same time using the mini-displayport?

    Hi all,
    At work i'm connected to the Lan via an adapter and the mini displayport. I want to use my external display at the same time, which use the same mini displayport. Are there any splitters available to use both at the same time? Are there any other alternatives?
    Thanks,
    Dennis

    There are USB to ethernet dongles:
    http://store.apple.com/us/product/MC704ZM/A/apple-usb-ethernet-adapter?afid=p219 %7CGOUS&cid=AOS-US-KWG-PLA

  • Recording vocals and guitar at the same time, using the Alesis IO dock!

    Hi there!
    I have an Ipad 2 with the newest OS installed etc. And I rea the other posts in here.
    I bought an IO dock from Alesis the other day and was full of exspectations, but I got a bit disappointed -> Garageband! When I bought the Ipad dock I exspected that I would be able to record (or just play and hear the inputsound from two devices) at the same time in my headphones! But I wasn't... Now I'm wondering if this is going to be fixed in an update or not? I think it would be a shame if this issue isnt adressed, due to the huge abilities the Ipad/garageband/Ipad docks withhold.
    So anyone know anything? I went to my musicstore and spent about an hour or so with the tech dude there trying dfferent setups, but unfortunatly without luck! Just to clarify that I didt just plugged in my guitar and got mad that it wasnt apple intuative!
    Hope someone can help :)

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

  • I can't measure many signals at the same time using the DAQCard-AI-16XE-50.

    I'm using a Compaq Presario 1655 laptop with a DAQCard-AI-16XE-50 on the PCMCIA slot, and LabVIEW 6i and MAX 2.0.
    I have a SCXI-1001 Chassis with SCXI-1122 and its terminal block SCXI-1322 installed (I have others too).
    I'm trying to measure some signals at the same time, for instance, measuring 2 load cells signals, and a frequency of an indutive sensor (using the analog way with the "Extract Single Tone Information.vi").
    I realized that I can't measure at the same time my signals, neither the load cells - a 10608 error occurrs "NI-DAQ LV: No transfer in progress for the specified resource".
    What's the problem?
    Some DAQCard limitation? Configuration?
    Thanks!

    Hello;
    By your description I'm assuming you are trying to read those analog inputs in parallel. The SCXI-1122 doesn't have that feature. All the analog inputs will be multiplexed to one single Analog Input channel on your DAQ board. If you need to make measurements in parallel, you need to use one of the SCXI modules that allows that operation. For more information on what modules support that operation, you can always refer to our home page at www.ni.com.
    Hope this helps.
    Filipe
    Applications Engineer
    National Instruments

  • Is there a way of resizing the contents of multiple bounding boxes at the same time using the number fields in the tool bar?

    I'musing cs6 and need to resize an image and two text boxes to a specific pixel width.
    I try selecting all of the boxes and punching in 960 px in the resizing field in the tool bar but only the bounding boxes and not their contents get resized...

    Use the horizontal scale field (and include the units) rather than the width field.

  • How to burn read and write files on DVD

    I would like to know how to burn DVDs (image files) with the Read and Write setting. I have changed the settings in Get Info for the image files to Read and Write for Owner, Group and Others and yet when I burn the DVD and try and copy the files back onto the hard drive (to test if it works or not) it won't allow me. When I check the Get Info it says Read and Write for owner (greyed out) and Read Only for Group and Others (greyed out too).
    I have also tried to change the status of the blank DVD before adding files and after adding the files (but b4 the burn) to Read and Write, this works but then during the burn process the DVD or burner changes my settings to Read Only.
    I am burning with Finder and have tried with Toast 10 Titanium. What am I doing wrong, or not doing at all?! I'm going loopy with frustration!

    Kiraly, I agree that the actual problem here might be something else, but as a side issue there seems to be a difference in the way permissions are handled when a file copy is made using Finder compared to when the copy is made using the cp copy in Terminal. At least in my Tiger system, Finder preserved the permission structure, though not the ownership, when it copied a file, whereas cp used the OS defaults.
    I tried the following experiment:
    From my test user account "t", I created a textfile named ReadWrite.txt, and gave it Read+Write permissions for Owner, Group, and Others. I then burned it using Finder to a DVD which I named PermissionTest, and then unchecked the "Ignore Ownership" box on PermissionTest.
    The original ownership and permissions were preserved on the DVD, though of course you couldn't actually write to anything there:
    xxG5-Computer:~ t$ ls -l /Volumes/PermissionTest/ReadWrite.txt
    -rw-rw-rw- 1 t t 15 Sep 13 18:25 /Volumes/PermissionTest/ReadWrite.txt
    I then copied the file from the DVD to the Desktop using Finder, and the permissions were preserved!
    Finder copy:
    xxG5-Computer:~ t$ ls -l /Users/t/Desktop/ReadWrite.txt
    -rw-rw-rw- 1 t t 15 Sep 13 18:25 /Users/t/Desktop/ReadWrite.txt
    I then trashed the Finder copy of ReadWrite,txt on the desktop, and made a second copy from the DVD, but this time I used the cp command from Terminal instead of using Finder. This time the permissions were not preserved, but reverted to the OS default:
    cp copy:
    xxG5-Computer:~ t$ cp /Volumes/PermissionTest/ReadWrite.txt Desktop
    xxG5-Computer:~ t$ ls -l /Users/t/Desktop/ReadWrite.txt
    -rw-r--r-- 1 t t 15 Sep 13 19:43 /Users/t/Desktop/ReadWrite.txt
    I then switched to a different user account "t1", and repeated the above with the same DVD, first copying the ReadWrite.txt file to the desktop using Finder, and then using cp. The ownership of the copied file changed from t to t1 in both cases, but the permission structure again was preserved in the Finder copy but not in the cp copy:
    DVD file:
    xxG5-Computer:~ t1$ ls -l /Volumes/PermissionTest/ReadWrite.txt
    -rw-rw-rw- 1 t t 15 Sep 13 18:25 /Volumes/PermissionTest/ReadWrite.txt
    Finder copy:
    xxG5-Computer:~ t1$ ls -l /Users/t1/Desktop/ReadWrite.txt
    -rw-rw-rw- 1 t1 t1 15 Sep 13 18:25 /Users/t1/Desktop/ReadWrite.txt
    cp copy:
    xxG5-Computer:~ t1$ cp /Volumes/PermissionTest/ReadWrite.txt Desktop
    xxG5-Computer:~ t1$ ls -l /Users/t1/Desktop/ReadWrite.txt
    -rw-r--r-- 1 t1 t1 15 Sep 13 19:51 /Users/t1/Desktop/ReadWrite.txt
    I got similar results when I tried copying a file with Read+Write permissions for all from a USB flash drive to the Desktop, again with the "Ignore Ownership" box unchecked.

  • I need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by ste

    i need to know how to edit a drawing - basically remove the arrows and text but at the same time match the background of the existing pic. then re add new text. how do i erase the arrows and text and arrows but match current background of pic. step by step explanation please beginner

    Please post (a relevant section of) it right on this Forum.

  • How i can wacht video clips in my mac and the tv at the same time trough the apple tv

    how i can wacht video clips in my mac and the tv at the same time trough the apple tv

    Welcome to the Apple Community.
    Unfortunately you can't do that.

  • How do you import a .png file into the Final Cut Pro X and at the same time keep the file's original transparency settings?

    How do you import a .png file into the Final Cut Pro X and at the same time keep the file's original transparency settings?

    Go to the Info inspector for the still image and in settings select the alpha type.

  • How do I view two clips overlapping each other, each being semitransparent to see both at the same time, so that I can decide where to stop of the first clip and start of the second clip? Thanks.

    Basically I want to combine to clips with correct timings. For that I want to view the two clips overlapping each other, each being semitransparent to see both at the same time, so that I can decide where to stop of the first clip and start of the second clip? Thanks.

    see my reply in your other post:
    You're familiar with the TRIM-tool?
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632caff
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632d8e4
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632d9ae

  • How to bind to a dataset and at the same time trim the text?

    Hi,
    I want to bind a listbox to a dataset, and the text value in the dataset is not always trimmed.
            Dim dsCity as dataset = GetListOfCity()
            ListBoxCity.DataSource = dsCity
            ListBoxCity.DataTextField = "CityName"
            ListBoxCity.DataValueField = "CityID"
            ListBoxCity.DataBind()
    I would like to ask if there is any handy way for me to bind to the dataset and at the same time, trim the text "CityName" when we are binding to it?
    Regards,
    Xavier

    Hi Xavier,
    Just as Uri Dimant said, we can use the Trim or Replace function in the textbox to trim leading or trailing spaces of any string. For example, we can use those functions as below:
    =Trim(Fields!FieldName.Value)
    =Replace(Fields!FieldName.Value, "  ", "")
    Besides, those two functions can also be done in the query with SQL.
    Reference:
    http://venkateswarlu.co.in/MSBI/ssrs/SSRS_Common_Functions__Text.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of A

    I am in the middle of a job using CS 6, but at the same time opening the Creative Suite apps.  I created an InDesign file in CS 6, saved it, and now I can't open it. I'm getting this message: Cannot open file because it was saved with a newer version of Adobe InDesign CC (10.1). You must use that version or later to open the file." AARRGGHH! So how do I access the file?

    Sounds like you opened and saved it in CC, so now you need to go back to CC and either complete the project there, or export to IDML to take it back into CS6.

  • How to clone 40 mac mini at the same time using network clone (like Ghost)

    how to clone 40 mac mini at the same time using network clone (like Ghost)
    Any Ideas ?
    Thanks

    Rather than a 100% identical clone to 40 Macs, I suspect you want the same basic image to be loaded on to those 40 Macs but will require some individualisation so that for example each has a unique computer name.
    NetRestore and System Imaging Utility can do this but a lot of people including myself prefer to use DeployStudio which has more capabilities. See http://www.deploystudio.com
    DeployStudio can be used to like NetRestore to restore an image to multiple Macs at the same time which is like multiple people downloading at the same time, but it can unlike the standard NetRestore also be configured to use multicast traffic which is more like a TV broadcast whereby multiple people receive the same transmission at the same time. This can be more efficient for imaging larger numbers of computers at the same time. For example 1Gbps shared between 40 computers is only 25.6Mbps each, but if you multicast a single transmission of 100Mbps to 40 computers then all 40 can listen to it at the same time and still be receiving 100Mbps even on the same network connection.

  • Every time i play a song in my i-tune 10.6, about up to half way mark, i-tune will automatically skip to the next track and playing it (next track) at the same time as the current track.

    Every time i play a song in my i-tune 10.6, about up to half way mark, i-tune will automatically skip to the next track and playing it (next track) at the same time as the current track. i don't know if anyone has the same problem, but i haven't sync my ipod touch 4 gen to my i-tune playlist for the longest time, cus i was afraid to transfer the problem to it since i have a pc (win 7) but not MAC.

    i am sorry, guys, but  I really really really need you guys' help. if u know ANYTHING...

Maybe you are looking for

  • *Excisable material Purchased from Importer

    Dear SAP Gurus, Material purcahsed from Importer excisable material, The excise duties will passed. Like ED 16%, ECS 2%, SHECess 1%, and 4% Special Addtional Duty(SAD), + VAT 4%. As pe rstandard sap ED, ECS, SHECESS are comming, but 4% SAD(Creditable

  • Problems with Illustrator CS6 not accepting stroke weights with decimal points

    So I have been using Illustrator for almost 10 years and have never run into this one. When enter a stroke weight on a line with a decimal point like .25 or 4.5 is keeps rounding the number up. For example I enter 0.75 and it makes it 1 point or I en

  • My iphone is stuck on a frozen image saying 'restore failed'

    I Plugged my Iphone into the computer to get music onto it. It came up with 'set phone up as new IPhone or Restore from other device (with a list of all other devices) I accidentely pressed the other device option. Just as it started to restore my ph

  • DVD image question

    Hey this might be a question that should be posted within some other category but I wasnt sure if a pertucar ilife application has the capability. I have a mini dvd that has 2 sides and i would like to combine it into one single layer dvd. The total

  • More than 1 class

    I understand how to create one class and use the methods described in it to make the 2nd class (test program). But for an assignment I am supposed to create 1 class, create another (2nd class) which uses the 1st, and then a 3rd class (test program) w