synchronize the microcontroller and labview Visa series

Hello

I have a small problem with my labVIEW VI. I do the following things:

  1. I send 7 features of the microcontroller to Labview under string (ASCII characters) to a time interval of 31.45mS.
  2. In labview, I read the string with a delay of 32 Ms.
  3. I extracted the individual string data and then get the substring.
  4. I use the string number Converter to convert the number.
  5. Finally, I display data.

The problem I have is that when bytes (with the Node property) is less than 4000, the reading of the data to be perfect. But once that the port reached 4000 bytes, the data I receive periodic zeros. I think the problem is with the timing of the sending of the microcontroller with the LabView data. I don't know what to do with it. Could someone advise me please to his subject?

Thanks in advance

Concerning

You are only reading 49 bytes at a time.  You tell me that your buffer is longer than 4000 bytes?  That tells me you have a synchronization problem.

If you get always 49 bytes per message, then just read 49 bytes.  Get rid of the delay and the bytes of the Port.  They are usless.  And since you also use a stop character, which makes them even more useless.  The VISA Read wait upwards for the time-out period to the number of bytes that you said that it a termination character is not received.  If you use a character from endpoint really, I had even put the bytes to read something totally outrageous, like 500.

Tags: NI Software

Similar Questions

  • I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages for only one comand I need all four messages to display at the same time in VISA SERIES READ BUFFER

    I use VISA 5.3 for reading my serial device... my standard equipment is WELL this device will send four messages of single command given to this instrument... and I read messages through VISA series READ... during the race, the VI buffer displays the messages individually...  I need all four messages to display at the same time in VISA SERIES READ BUFFER, in order to find more than this block, I should add from the palette of function.

    Disable character of endpoint detection or make four readings where you concantanate simply the strings together.

  • synchronize the inputs and outputs on the USB-4431

    Hello

    I have an application that needs to send a signal on the USB-4431 and then capture it with an entry on the same device.

    Aware that I use two tasks to do this, one for input and one for output. I discovered that a trigger (on the RTSI bus) can cycles of sending/capture sychronisé departure operations so that it can be a constant offset between the captured signal and the output signal.

    Unfortunately, the code I found is for Matlab. I can't find an equivalent for it in the C API of NIdaq. The method is described here; http://www.mathworks.in/help/daq/synchronize-analog-input-and-output-using-rtsi.html.

    What I can't understand is how to implement this on the analog input:

    ai.ExternalTriggerDriveLine = 'RTSI0';
    

    Can someone shed light on how to do it?

    The rest of the things described here, seems to be feasible with a normal trigger:

    ao.TriggerType = 'HwDigital';
    ao.HwDigitalTriggerSource = 'RTSI0';
    ao.TriggerCondition = 'PositiveEdge';
    

    Thank you

    Nirvtek

    You can synchronize the HAVE and AO by sharing the start of relaxation between your two tasks.

    Choose one of your tasks as the "master" and the other to be the "slave" (any).

    Set up a trigger to start of digital dashboard on the task of the slave, and set the source of the trigger to be the trigger of the master's departure.

    Assume the following:

    The name of your device is 'Dev1 '.

    I is the main task

    AO is the task of the slave

    Here's what you would do to sync the two:

    (1) create the tasks I and AO in order that you want to

    (2) set up "timing" on the tasks of HAVE it and AO (you choose the sampling rates must be the same or power-of-2 many of the other (for example 100 K, 50 K, 25 K, 12.5 K, etc...))

    (3) configure your slave (the task of AO) task to have a numerical advantage start trigger and make the source is the trigger for the start of the task of the master (the task to HAVE it). In our case, "Dev1, AI, StartTrigger.

    (4) write data (a sine wave, presumably) to your task AO

    (5) start the task from the slave (the task of AO).  The task of the AO is now in the 'Started' State, but given that you've set up a digital trigger early, it won't actually generate data until he sees a numerical advantage of 'Dev1, AI, StartTrigger.

    (6) to start the main task (task to HAVE it).  The task of the AI does not have a trigger digital early, so the software will immediately generate a start trigger, which also causes a numerical advantage on "StartTrigger/AI/Dev1", which causes the task AO start at the same time.

    7) read your job to HAVE.

    You will notice a few 0 at the beginning of your data to HAVE. It's a result of something called "Filter Delay" and it is an inherent characteristic of all DSA devices - see the manual to use DSA and this article for more information on what is and how to cope.

    I hope this helps.

    EDIT: I just noticed that you pointed out an existing C example. It's exactly what you want. I don't know why you have a resource error booked - I tried it myself and (after changing the AO will of +/-10V to +/-3 .5V), it works beautifully.  Try to reset your device to the MAX (or DAQmxResetDevice() of your program)

  • HOW TO SYNCHRONIZE THE MONSTER AND THE CAMERA?

    I'M TRYING TO WORK WITH CHARACTER ANIMATION. I CHOSE THE MONSTER. I SEE MYSELF ON HER CANERA, I PUT RESET POSE AND THE MONSTER DO NOT MOVE WITH MY MOVEMENTS. HOW TO SYNCHRONIZE THE MONSTER AND THE CAMERA? Thank you

    Hi Luz... You have the track selected in the timeline panel puppet? You need to target the puppet that is controlled by the webcam/microphone/keyboard/mouse by selecting its track. That it arms for registration.

  • Synchronize the Photos and iPhoto?

    Photos arrived it imported all my photos in iPhoto. I have not really used pictures so far and now I realize that my library in pictures is a duplicate of my iPhoto library, except that they are not synchronized. My iPhoto library is updated, every photo I want is removed. This is not the case with Photos. Is there a way I can synchronize the two apps so that the pictures is exactly the same as iPhoto is now? Now iPhoto and Photos together use more than 100 GB of space, when in reality I have about half of it in photographs.

    If I can't sync, deleting photos in one application will not delete not them on the other, correct? In other words, I can delete all photos of Photos without deleting my photos in iPhoto, right?

    I have pictures 1.0.1 and iPhoto 9.6.1

    Thank you

    When you open the Photos first, the migration of the iPhoto library and photos of 2 libraries are hard linked to where they do not place additional, even though both show a large amount of data. However, from there, they are treated separately with respect to the addition or deletion of photos.

    You cannot synchronize the 2 applications. They are distinct and have nothing to do with one or the other.

    So, you might want to simply select the one you want to use and go from there. I guess that iPhoto is gradually thereafter. Photos will be more integrated into the system as well as for tasks such as sharing in emails, adding photos to apps like mail and so on.

    Yes, you can remove some or all of the photos in one application and does not affect the other.

  • Implement and control 'meter' in S7 - 300 by the OPC and LabVIEW

    Hello world

    I use a S7-300 PLC and OPC Server for my projects. I have a problem: S7 - 300 has a meter module which digital signal of County. I only can implemented using SIMATIC STEP 7. Can I set up the meter module using only the server OPC and LabVIEW

    does anyone have a solution or an idea for my problem?

    could you please help me...

    Thank you

    Hi Echion,

    NOR-DAQ (MX) is used only for material OR: no you can not use it.

    To program the controller you must use the right programming environment. For Siemens S7, you need to use Simatic (or perhaps some other 3rd party software supporting IEC61131). Point.

    The OPC server is used only for the exchange of data. This is no interface programming!

  • Synchronize the video and data - Version tiara?

    What version of DIAdem is required to synchronize playback video and data?  Can I synchronize two videos at the same time with a data source, or does have a video with a data source?

    You need the DIAdem Advanced Edition

    Greetings

    Walter

  • Is it possible to synchronize the SFDC and Eloqua users?

    I know that I can create an automatic synchronization to download SFDC users; However, it is not a user Table in Eloqua (Eloqua customer s US have access, in any case). I guess it's impossible?

    This would be really useful for the creation of new sellers in Eloqua on the fly, their updating, deletion, when they left, etc.. With Salesforce.com being the registration system, this reduce manual processes, clean the data and effectively enable and disable users. Still, this would allow Signature rules for customization of Email to bring more quickly.

    We are of course we can not synchronize users? I created in an AutoSync yesterday and noticed the ability to import into a table "users" Eloqua. Here's the Eloqua dashboards and not Salesforce ones (Contact, company, Outlook, data cards, etc.). See the screenshot below...

  • Forgotten synchronize the password and cannot find the "forgot password" button/link in the sync option tab.

    Mozilla firefox help database we ordered to go to sync option tab as follows to reset the password
    1. click the Fx button menu again and choose Options.
    2. on the Synchronize tab, click on connect to open the Panel in the page.
    3. on the login page, click Forgot password? Firefox will send you an email to reset.
    4 follow the instructions in your reset email to change your password.

    but in my firefox 36.0.4 is not any sign in link, just link account manage firefox. You click on manage to open manage account page, still not found link "Forgotten password" as shown above. So, how we re - password to synchronize? Please notify anyone.

    At first glance https://accounts.firefox.com/settings

    1. If you already connected to your sync account

      • You will see a message logged in as [email protected]
      • Log out of your current account.
      • Then you'll see log in page. At the bottom of the form you will find forgotten password?
    1. If you are not connected with the sync account

      • Then you'll see log in page.
      • At the bottom of the form you will find forgotten password?
  • Unit works fine with MAx but not with Labview visa series

    I have a RPM sensor connected to tachometer Monarch monarch, it gives error while coding in labview and works very well in Max if the sensor does not read 0. I wrote RS-232 simple programs never had an error, but this one's errors... not ablt remedy... Help, please

    Hello

    I solved it by using bytes to the port if there is anything in the port, I read it otherwise, he simply says no playback.

  • I have iphone and an ipad.  I need to synchronize the two and have at the same time on this new computer.  How do I do that?

    All the updated IOS iPhone.

    iPad - last update complete AIO

    new computer - laptop HP with Windows 10

    I need to sync my iphone and ipad to this computer - both have different things on them, but are most of the exact time.  Missing a few songs and contact.

    How can I do both appear on my computer without calling to zero one over the other?

    See this - http://www.apple.com/icloud/setup/

  • synchronize the inputs and outputs of the module C digital 9403

    I want to program EEprom with 9403 module, but I got an error:

    Possible reasons:

    Specified route can not be satisfied, because it requires resources that are currently in use by another route.

    Source device: cDAQ2
    Point source: di/SampleClock
    Target unit: cDAQ2
    Destination terminal: Slot1/ConvertPulse

    Resources in use by
    Task name: _unnamedTask
    Source device: cDAQ2
    Terminal: / SampleClock
    Target unit: cDAQ2
    Destination terminal: Slot1/ConvertPulse

    Task name: _unnamedTask

    code:

    Okay, there are two levels of problems:

    the 9403 cannot use a timed with an easy task, and it cannot link di trigger with trigger, uff do!

    I solved with this: (the trigger is AI/StartTrigger)

  • Hardware implementation of the controller DMA using the FPGA and LABVIEW

    Respected Sir/Madam

    I am simulating the DMA using LABVIEW7.1 controller and I am fresher to this tool, please suggest me how to do this

    You can go through the FPGA tutorial.

    For specific information on DMA you can see this.

  • Synchronize the database and the model does not not for some FK in 4.0.2

    It does not sync DB to the model or model DB:

    1 FK in model has the DEFERRABLE INITIALLY DEFERREED = YES but ACTIVE and YES = value

    2. in the base of the FK is NOVALIDATE DISABLED

    Sync shows no difference at all.

    Never mind! It's the same problem I had before. David said it was a known problem.

  • 13 elements Photoshop for PC after the installation and supply of series says "not genuine Adobe software and seems to be false.

    This software has been purchased from a reliable source in an unopened.

    Why the message?

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

Maybe you are looking for