RS232 Input and Output in the same time

Hello
I have problem with rs232. 
I read information from my power supply by RS232 Input:
 Expected string: 1923456789<CR>OK<CR>
Channel 0
 Measurement data request: GETD00\r
 Measurement data format: 4a
Channel 1
 Measurement data request: (empty)
 Measurement data format: 4a
Channel 3
 Measurement data request: (empty)
 Measurement data format: 1a4x
Sample interval: 0.20s
The date are readed correctly until I don't send other string by RS232 Out.
Output [a]\r (VOLT00123)
After sending string Power Supply return data OK<CR>
After sending string by RS232 Output the data form RS232 are readed incorrectly.

In the Output format, you need to skip the OK<CR> so it doesn't confuse the input parsing.
The Help says the following
If there is the need to wait for the Response String of the external device the following string has to be attached to the format string.
‘\#x' (x=1-999)
That ensures that no other module will address the interface. If the response is received the defined number (x) of characters will be skipped.
So, the output string should be
[a]\r\#3
That will send the command, then wait for the OK<CR> before handing control of the serial port back to the RS232 Input module.
- cj
Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

Similar Messages

  • How to get the sine wave sample of the input and output in the same time?

    I discovered that the samples were acquired did not in the same time in my vi.Could you tell me how to get the sine wave sample of the input and output in the same time?
    Output:9263;
    Input:9201
    Attachments:
    singal requency.vi ‏104 KB

    Hello Yun_Zhu,
    Your VI looks like you started from an example, and you are on the right track. 
    To clarify are you trying to synchronize the input and the output waveforms?  If you you will need to share a time base and a start trigger.  Check out the synchronization examples from LabVIEW
    Anthony F.
    Product Marketing Engineer
    National Instruments
    Attachments:
    HIODAQmxSyncMultiDev.png ‏70 KB

  • Audio input and output at the same time

    Hello mac users.
    I have one simple question: since the new macbook has one single audio port for both input and output, how could I, for example, play my guitar AND listen to the headphones at the same time?
    I KNOW (because I've tried) that with the iPhone headphones with microphone the port CAN physically work at the same time for input and output, so the question is: what can I use to do that? Will a simple splitter do or do I have to use different tricks?
    (I know there is a thread on this already, but it doesn't provide a definitive answer)
    Thank you!

    One of the first questions to ask...
    Is the audio input stereo or mono?
    When using a headset mic you're dealing with a mono input so you at least know the Mac is capable of that.
    If it's mono, and I suspect it is, should be easy to either make or purchase a custom cable that has two female input connectors, one mono input and a stereo headphone input.
    However, I'd probably just purchase a USB audio interface, the sound, both recording and playback will be head and shoulders above the Macbooks built in internal audio.
    pancenter-

  • CFP-DIO-550 open multiple input and output at the same time

    I am trying to read and write at different times with the cFP-DIO-550.  I cant figure out how to read all the inputs at the same time.
    In the Create Tag.vi, I cant figure what to wire to the Item Name input.  I have tried Input 0, and that works, but it is only one input, I need to read all 8.  I have also tried Input All, All, Input 0:8. input 0-8, input 0: Input 8, Input 0 - Input 8, and I always get an error.
    I cant find anything on it in the manual.
    Thanks,
    Kenny

    Normally I would select 'All' using a FP IO point function instead of create tag ( LV 7.0 and up ).   I have noticed that the 'All' is only available if the module is all inputs or all outputs.  It may be that since your module is an IO, 'All' is not available by default. 
    I think you need to create an item in MAX in the Data Neighborhood under the DIO-550 Module and configure it to use all the IO on the module.

  • I have on;y one audio port can i use it for input and output at the same time?

    i have the new macbook pro 13 in and i want to connect aguitar as input and output on an amp but i have only one audio port

    You can't use the jack as an input and output simultaneously. The solution is to look for a USB or Firewire interface to get your guitar sound into the computer.

  • Using counter and output at the same time

    Hi all,
    I'm using a NI 9401 high speed digital IO module (with a cDAQ 9174 chassis) that has 8 digital IO channels, to perform two tasks at once in Labview. I can get both of them to work independantly, but when I put them together to run simultaniousy in parallel, it does not work. My two tasks are simple: 1. Generate a continious pulse train square wave output using one of the counters linked to one of the output channels (PFI7) and 2. Output a 'high' (5V) with one of the other channels (PFI1)  when a certain logic condition is met.
    When I run my code (attached), the pulse train output works, but the output on the other channel doesn't work when the logic condition is met. I should note that the logic condition is that when RMS current exceeds 3A, I want to output a 'true'. I am measuring current using another analog input card connected to the same chassis and this part is all working well. I think the problem is that there is some sort of interference between the pulse train output which is linked to PFI7 and the other output which is PFI1.
    I know there is a limitation with the 9401 card that if the channels are in two groups, 0-3 and 4-7, and you must use a whole group as either all inputs or all outputs, but I don't think this should affect me, as I am using both my channels as outputs anyway, plus I am using channels 1 and 7 anyway.
    If anybody has any ideas as to what could be wrong with my code, I would greatly appreciate it.
    Attachments:
    DSDBI Vegetation testing program.vi ‏115 KB

    OK, you've shot yourself in the foot.
    It is a very bad idea to modify the shipping examples.  Like testing bungee cords by juming off a cliff-  sometimes you only get to try it once.
    Now why on earth did you not add the DI code following the example's method of wiring the error chain and closing the task after the loop?  You have duplicated code in both cases of your case structure the only difference.........(wait for it..........) There is a true constant in the true case where the false case contains a false constant.  A wait for task complete is unnecessary for a 1 sample DI task-  really the write just completes and the task stops all by itself.  the only needed thing here is a DI Write 1 Ch 1 Sample no case structure, and wire the compare output to data to write.
    You should probably add a control task vi with a "Reserve" input prior to each start task on the CO and  AI Tasks and after the Create Task on the DO.  Its a bit technical but the result is like taking vitamins- you'll just get better performance.
    Jeff

  • How do I set upmy Imac to allow using both my computer speakers and a Bose SoundLink system as outputs at the same time.  I can use one or the other, but not both.

    how do I set up my Imac to allow using both my computer speakers and a Bose SoundLink system as outputs at the same time.  I can use one or the other, but not both.  From systems Preferences I must select one or the other.  I want both to work all the time.

    Hi,
    I would recommend you to use 0FI_AP_4 rather using both, particularly for many reasons -
    1. DS: 0FI_AP_4  replaces DataSource 0FI_AP_3 and still uses the same extraction structure. For more details refer to the OSS note 410797.
    2. You can run the 0FI_AP_4 independent of any other FI datasources like 0FI_AR_4 and 0FI_GL_4 or even 0FI_GL_14. For more details refer to the OSS note: 551044.
    3. Map the 0FI_AP_4 to DSO: 0FIAP_O03 (or create a Z one as per your requirement).
    4. Load the same to a InfoCube (0FIAP_C03).
    Hope this helps.
    Thanks.
    Nazeer

  • Using internal Speakers and optical Output at the same time ?

    Hello,
    is it now possible to use the internal Speakers and optical Output at the same time ?
    Is this a software or hardware limitation ?
    Every day im disconnecting the optical output. It can't be good for the contacts. I wont spend over 100 euros buying an external soundcard to solve this problem.
    Any Ideas ?
    Thanks ? best regards
    mc
    IMAC 24 Intel   Mac OS X (10.4.8)  

    New Discussions ReponsesThe new system for discussions asks that after you mark your question as Solved. You should take the time to mark any posts that have aided you with the tag and the post that provided your answer with the tag. This not only gives points to the posters, but points anyone searching for answers to similar problems to the proper posts.
    Alternatively, you can change the status to Answered.
    If we use the forums properly they will work well...

  • JFM recording and streaming at the same time

    Hello Everyone,
    I was hoping someone could help me with using a webcam device for sending and recording at the same time.
    At this moment I'm only able to record. I tried to make another processor, and put the input of the streaming processor
    to the one that is recording, but problem is the streaming processor outputs not a streaming format. If I could stream
    with RTP I could embed a player in a website and view from there, while recording at the same time.
    Could somebody explain to me what do to here, or provide me a snippet of code, I really need this to work.
    I created this code, but this only records.
    import java.io.IOException;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    public class Record {
         public Processor createProcessor(){
              Format formats[] = new Format[2];
              formats[0] = new AudioFormat(AudioFormat.IMA4);//IMA4
              formats[1] = new VideoFormat(VideoFormat.CINEPAK);//CINEPAK
              FileTypeDescriptor outputType = new FileTypeDescriptor(FileTypeDescriptor.QUICKTIME);
              Processor p = null;
              try {
                   p = Manager.createRealizedProcessor(new ProcessorModel(formats,outputType));
                   } catch (IOException e) {
                        System.out.println("Error! 1");
                   System.exit(-1);
                   } catch (NoProcessorException e) {
                        System.out.println("Error! 2");
                   System.exit(-1);
                   } catch (CannotRealizeException e) {
                        System.out.println("Error! 3");
                   System.exit(-1);
              return p;
         public static void main(String [] args) {
              Record record = new Record();
              Processor p = record.createProcessor();
              DataSink sink;
              MediaLocator dest = new MediaLocator("file://newfile.mpeg");
              try{
                   sink = Manager.createDataSink(p.getDataOutput(), dest);
                   sink.open();
                   p.start();
                   sink.start();
                   try {
                   Thread.currentThread().sleep(6000);
                   } catch (InterruptedException ie) {
                   p.stop();
                   p.close();
                   Thread.currentThread().sleep(6000);
                   sink.close();
              } catch (Exception exception) {
                   System.out.println("error!");
              System.out.println("finished");
    Kind regards,
    Bluesboy89

    Take a look at the following example. It demonstrates how to do 2 things with the same input (namely view and record)
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JVidCap.html]

  • My SB Audigy 2 card can't use headset and musicamplifier at the same time

    Hi, i just bought a SB Audigy 2 [D400] and i have downloaded drivers and programs. I run Windows XP SP2.
    The soundcard works fine but it is very very annoying that i physically have to change the jack in the green=line out jack from headset to musicamplifier when i want to use my musicamplifier and change back the jack in the green=line out from musicamplifier to headset when i just want to use the headset/headphones .
    In the shop they told my that i can connect both amplifier and headset at the same time and then with creative software control whether there is sound in the headset or in the amplifier. But i can't simple get it work.
    I tried to use the green to the amplifier and the headset/speakers in the black (line out 2) and then with creative speaker settings softeware choose headphones but still the ampliefier receive the sound and no sound in the headphones. Why? In fact no matter what configuration i try the headphones doesn't work.
    But if i change the jacks so headset is in the green line out then only headset is working and the amplifier doesn't work no matter i put it in sort=line out 2 jack or orange=line out 3 jack.
    Can somebody here tell me if it is possible or not to connect both headset and external amplifier and control by software which to play? and how?
    please help, thx.
    Michael

    If you can have an ASIO compatible music playing system, then it might be possible to have system like you wish when using Creative Audigy 2 card. Since ASIO bypasses Windows Audio System, you can use both 'drivers' (ASIO - WDM/MME/DS) side by side.
    Say you want to play a game (using headset /w mic) and someone other like to listen music at the same time. With ASIO capable system you can output your music for example to "center L/R (stereo) channels" and same time output sounds from other source (using MME/DS/WDM drivers) to normal output channel (Front L/R). Only thing is, you need to set your speakersystem to 4 or 6 (depending which other channel you're using) (and for better 'balance' to adjust "angle" on THX console. You get the THX console by installing Audigy 2 Zs software).
    Try for example http://img332.imageshack.us/img332/463/djs9mo.jpg[/img] width="406" alt="Image Hosted by ImageShack.us" >
    Another option:
    Say you want to play music through external amplifier and play game online with your headset + microphone (eg. others but you listen the music, you play games)
    --> try free http://img332.imageshack.us/img332/4589/tbp7rz.jpg[/img] width="406" alt="Image Hosted by ImageShack.us" >
    If you use ASIO on BeatPort Player you can select L/R individually from the list(s). Same rules as described earlier.
    = You can play from 2 different sources simultaoneusly (ASIO + WDM/MME/DS) to two different outputs without disturbance. The other (WDM/MME/DS) source is set 'automatically' output to (Audigy) "green" port, and the other (ASIO) to "black" or "orange" port (as set).
    .jtpMessage Edited by jutapa on 09-5-2005 05:30 AM

  • Monitor and capture at the same time?

    Is it possible to view/monitor a video (live from a quickcam) and capture at the same time?
    I looked at the solution here:
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
    And found "Video Capture Utility with Monitoring" sample program. However it only allows capture! There is no live display of video viewing while the capture is happening.

    Actually, the sample program works once I uncheck Audio.
    I do not have any Audio input device, so I guess that is causing the problem.

  • Hi there, Will be possible listen and charge at the same time my iPod shuffle in my car?

    Hi there, Will be possible listen and charge at the same time my iPod shuffle in my car? I have got a jack going to my sound system the issue i would like to solve is charging at the same time

    Since the shuffle (except for the 1st gen shuffle) uses the same "port" (the headphones jack) for sound output and charging, there is no way to do both concurrently.
    NOTE:  You can charge and play at the same time on the old white 1st gen shuffle that looks like a USB flash drive.

  • Can't recording  Midi  and Audio at the same time

    I'm in GREAT need of help. I can't record midi and audio at the same time. I'm using an M AUDIO project mix I/O. I know this is VERY basic stuff but I can't seem to get it to work.I can record multiple audio at once. ANd I can record midi but not at the same time. PLEASE help . Is there a setting somewhere I need to change ? Thanks
    Tracy

    Hi!
    Enable all audio tracks (R) you wish to record. Then make sure you select the audio instrument you are using on the left of the arrange page (track list). If you here your input, hold shift, then highlight (gray) the mentioned audio tracks you wish to record on. When R is red, and the proper tracks are grey, you can record. Hope that made sense!

  • Streaming wifi and bluetooth at the same time is it possible in air play from iPod

    Streaming bluetooth and wifi at the same. Is it possible?

    You are not able to send the music to two different streams, you can use the bluetooth and wireless at the same time but for different tasks.
    The best way I have seen for what you are attempting, is to buy a wired splitter and two bluetooth transmitters, and have each transmitter broadcast bluetooth sound to the two different locations.
    I have not found any other way except when using itunes on a desktop computer which allows the selection of multiple output destinations.

  • When i hold down command and r at the same time after restarting it comes up with a

    When i hold down command and r at the same time after restarting it comes up with a black screen and a lock symbol and a field bellow where you would input a password, i have tried ALL of my possible passwords including my password i use for the mac and it stil will not work! all that happens is the text i put in bellow erases itself after hiting enter or clicking the arrow.

    I've tried my apple ID password and that doesn't work either . I don't recall seting a password for an encrypted disk either :/ if it was for an encrypted disk, would it be in keychain anywhere? if so how can i find it?
    Thanks!

Maybe you are looking for

  • Mini DVI and Mini DisplayPort are not the same thing!

    I bought this "Mini DVI to DVI" adapter thinking it would hook up my Epson projector to the new MacBook Pro: http://store.apple.com/us/product/M9321G/B?fnode=MTY1NDA3Ng&mco=MjE0NTE2OA BUT tonight I found out it is NOT the right thing. The adapter I n

  • Integration between SRM-Confirmation and MM-FI Closing in R/3

    We are currently using SRM 5.0 through the Classic-Extended Scenario. For some of our Company Codes in R/3, Monthly closing is performed before the actual end of the month ( generally on the 27th or 28th day of the month) by blocking posting in R/3-F

  • Resize indicator doesn't show in OpenGL app

    Hi, all. I'm adapting clutter user interface library for mac os x and I met a problem - the system is rendering opengl content inside the whole main window and maybe because of this the resize indicator is not showing. We have [self->window setShowsR

  • ICal and iClock unusual performance

    I have aligned this question with the nearest subject I can find. I recently purchased and installed 10.4.3 and upgrades to 10.4.5. Generally all went well but I noticed the time top r.h.corner was an hour slow (behind). I clicked on the date and at

  • Passing rational number as parameter??

    Hi i need to write a rational number class that adds/subtracts etc two rational numbers when i run the program i can enter one rational number but when i go to add subtract or whatever an try to enter another rational number as a parameter i get foun