problem with the bytes to port to read in VISA

Hi guys,.

I'm reading device data using usb - BT dongle. It creates the virtual port and read without problem.

My problem is the packages to send 428 bytes, inside this block device, I have 400 bytes of data bytes 9 to 409. The first 3 bytes of each block is the same.

4 45 50 - MEP, they are the first 3 bytes of each block of 428 bytes.

Okay, if you check the vi I config the visa and sending the data of adjustment of the device, read the answer and it sends the data to start sendding data.

Well, I try to read each block of 428 and show in a chart.

The problem is sometimes bytes in ports are 428 and anothers shows 23, 2, 125,... is not continuous 428 bytes each iteration and destroy the data graphic.

IF I check the chart outside of the main loop, I see the correct graph. Apart from mainvi I collect whole data and separate in 428 blocks, extract the 400 bytes of data and analyze the entire signed 16 bit and display in the graphics.

So, I don't know the best way to get 428 bytes in each iteration... I tried to read directly the 428 bytes but sometimes fail once again, very low reading bytes... take time to wait before read bytes to each iteration. I need a way to get 428 before values to get the readings of 400 data. Even I could probe each beginning of block with 4 D 4550 HEX bytes to pass and got data...

Perhaps it would be better to use the wait? or using a while loop to wait until I had 428 bytes? Any help will be apprecite.

Best regards, Fred.

You receive binary data.  Therefore, turn off the the stop character.

What happens is that you actually 0x0D in your data.  Playback VISA who sees and then request's made it reading the data.  By turning it off, then reading VISA will read all 428 bytes or until a time-out occurs.

Let the constant instead of the bytes to the Port.

Tags: NI Hardware

Similar Questions

  • Since I load Acrobat Reader DC, when I try to save the document, word to PDF, the pdf file pages are cut on the width. I use Microsoft Office Word 2007 and I have no problem with the previous version of Adobe Reader. Should what settings I adjust?

    Since I load Acrobat Reader DC, when I try to save the document, word to PDF, the pdf file pages are cut on the width. I use Microsoft Office Word 2007 and I have no problem with the previous version of Adobe Reader. Should what settings I adjust?

    Hi judithl34724699,

    If you want to convert Word files to PDF with the Adobe Reader application then it is possible with the service Pack of PDF. Try to use the service on the web: https://cloud.acrobat.com/convertpdf

    Also try to use a different file type.

    Thank you

    Abhishek

  • Problem with the keyboard in port p/s2

    When installing a different usb mouse, I accidently deleted the keyboard of the p/s2 port cable until I turned off. Now lights all flash at the start, but after that he didn't no response of the keyboard. I tried a second keyboard p/s2 with the same result. When I go to Device Manager there is no installed keyboard and when I check the properties, there is no listed keyboard. Is it possible to check if the port works, from a command prompt, or something, as ever, I can't work around boot to enter the bios setup?

    Have you tried a USB keyboard as function of the age of the system most BIOS will support a default USB keyboard. Windows itself will be a little while (about 30 seconds) to recognize the keyboard, but he eventually set up the driver.

  • Problem with the quality of PDFs - Adobe Reader

    I use Adobe Reader 10.1.1 and Windows Vista 32-bit with all updates.

    When I open a PDF file (local or IE9) I see a document, but the letters are very irregular, is not clear. Photos are very good.

    On other computers with the same software, all right. What should I do to view the PDF in the normal way?

    Thanks for the help in advance!

    Trychanging edit > Preferences > page display > smooth text preferences.

  • Problem with the cisco 5510 port mapping

    Hello

    My device Cisco ASA 5510, ASA 8.4 (2), 6.4 AMPS (5) 206

    What I'm trying to achieve.

    (1) listening host 10.10.11.108 port 8080

    (2) trying to access from WAN for example port 8090

    I tried command sequence:

    Network 10.10.11.108_8080 object
    Home 10.10.11.108
    NAT (LAN1, WAN) interface static 8080-8090 tcp service

    allowed to Access - list line extended 11 tcp WAN_access_in any object eq 10.10.11.108_8080 8080
    WAN_access_in access to the WAN interface group

    But I do not have access gett. Can someone help me to solve this case?

    I think I know what the problem is:

    object service tcp-8080 service tcp destination eq 8080 object service tcp-8090 service tcp destination eq 8090 
    change to the source destination:
    object service tcp-8080 service tcp source eq 8080 object service tcp-8090 service tcp source eq 8090 
    
    
    no access-list WAN_access_in extended permit object tcp-8080 any object 10.10.11.108_8080 
    access-list WAN_access_in extended permit tcp any object 10.10.11.108_8080 eq 8080
    -Please do not forget to select a correct answer and rate useful posts
  • Problem with the built-in SD card reader.

    Hello

    After many hours of searching through previous post, I am still unable to get my card reader built-in to read.  It worked fine for a while, and then all of a sudden it stopped.  I tried everything, different micro sd adapter mirco sd cards and also read the posts here.  So why I am now posting looking for any help there.

    Thank you.

    Ulster 03.

    Most often when a device does not work, it is because the driver is damaged. Re-install a new copy should help

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

  • (Problem with the arrows) Adobe Reader is not working properly

    I have problem with the Adobe Reader plug-in. When I have a tab open with the pdf file, my arrows do not work in other tabs in firefox, only in this tab where it is the open pdf file. Also, I noticed that when you try to use the arrows in the other cards, they are working on a pdf file.

    I am tempted to uninstall and reinstall Adobe Reader, but it does not work. Help, please.

    I solved the problem reinstalling Firefox, because when I turned off Macromedia my pdf file still worked, but the arrows didn't always work. I think it was a problem with the plugin from adobe.

  • Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    Since 10.11 I have not been able to download via the usb port of my Davis Vantage weather station. No solution of tech Davis on the issue even with the new recorder of events in the resort. Is there a problem with the usb?

    What Mac? (details)

  • Re: Satellite C650 - problem with the devices connected to USB ports

    Hello

    Can help someone, I have a C650 and everytime I try to connect to something to him via the USB ports, it is not "found" by the computer?

    The other night, I tried to get pictures on my phone but it wasn'; work and I put it down to a problem with the phone, but today I tried to install something digital crafts for my daughter and during installation it tells you to insert the thing into the USB port and click Next, when I do that he's going through a lot of "research" and said then it can not be found.

    The laptop makes a beep sound as it would on an extraction device when you plug... I hope that makes sense. So I am now assuming that the problem is with my computer, is there something I can do to fix this?
    Thanks in advance

    Sorry should add - it's like nothing is plugged at all when it is, and it happens on two USB ports, not just one...

    Post edited by: leahhw123

    Hello

    What happens with plug n play like USB mouse device?
    You are able to use an external USB mouse correctly?

    > but today I tried to install something digital crafts for my daughter and during installation it tells you to insert the thing into the USB port and click Next, when I do that he's going through a lot of "research" and said then it can not be found.
    I guess this could be a problem with the software or drivers installed.

    I searched a bit and his city that he has a software is compatible with windows vista/2000/xp. Win 7 is not mentioned do not know if this could be a problem, but in your case, I recommend asking the support of this software product for some advice.

    In addition, you can try to install this software once more, check whether this USB problem appears again.

  • 3 laptops different ALL been facing intermittent problems with the USB ports.

    We have 3 laptops at home, running 3 different versions of winsows 7... Home, Professional and Ultimate. They have in recent months ALL given intermittent problems with the USB ports. A device that worked on a port stops working. It may or may not work on another port. A week later it could very well lead again on the port that wouldn't work. This applies to all types of devices.

    A few more questions:

    Is there a USB device that you use with all three computers?

    This problem occurs with all kinds of USB devices?

    The is the problem with all the USB ports on each laptop?

    Have you tried to reinstall the USB drivers? As in, uninstall via the Device Manager, restart your PC and allowing Windows to reinstall?

  • Seeking help with a problem with the LR I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message, "could not create a JPEG sponsor limit you 92 k Bytes.Plea.

    Seeking help with a problem with the LR


    I use LR CC on a laptop, when you try to export a picture to an external hard drive, I am now without apparent reason to get the following message.

    "Could not create a respondent JPEG limit you 92 k Bytes.Please increase the size limit files
    . (1).

    .....

    I tried to increase the size of the file several times,

    I left LR

    I restarted the computer.


    Any help or advice for this problem will be greatly appreciated


    Thanks in advance


    @stu

    Not because of the number of pixels, in this photo and the chosen level of quality there is no possible way to create a JPG file to the size of file you requested. You must change your export settings.

    Show us a copy of the export dialog box, so we can see clearly the part file setting and the size of the Image.

    Also indicate the number of this image (width and height) pixels after cropping (as appropriate) and prior to export.

  • problem with the LR 5 cannot read the RAW of Sony A7R II files

    I have a problem with the LR 5 cannot read the Sony A7R II RAW file

    Hi alexl

    Greetings!

    Support for this camera is added in Lightroom version 6/CC

    Your Options are either update of Lightroom CC/6 or Free DNG Converter allows to convert .raw .dng files.

    This way you can import into Lightroom and can work on it.

    Download link for DNG Converter:- Adobe - Adobe Camera Raw and DNG Converter: for Windows: Adobe DNG Converter 9.2

    Adobe - Adobe Camera Raw and DNG Converter: for Macintosh: Adobe DNG Converter 9.2

    Concerning

    ~ Assani

  • Error - Windows Media Player cannot play this DVD because there is a problem with the digital copy between your DVD drive decoder and video card protection. Cannot read any DVD.

    Original title: unable to play any DVD

    "Windows Media Player cannot play this DVD because there is a problem with the digital copy between your DVD player and the video card protection decoder. Try to install a driver available for your video card.

    I tried to update all the drivers but the problem persists

    Hi Neil,

    1. have you made any hardware changes or software on the computer before this problem?

    2. what version of windows Media Player do you use?

    You can follow this link & check if the problem persists.

    Windows Media Player Error Message help


    Reference:
    How to troubleshoot issues that occur when you play a DVD in Windows XP?

    Hope the helps of information.
    Please post back and we do know.

  • Problems with the VISA series connection (missed the ticks in the data)

    Hello

    I designed a DAQ card with USB connection. The USB connection works in virtual Com Port mode.

    The main vi a while loop. The sampling time is defined by the user and the hand while loop iterates of this time of the sample (for example, 5ms, 10ms or...). Communication of the data is made in the present while loop using VISA read or write tools. Data are stored in global variables so the other could read or change.

    There are screws separate for each part of the DAQ card input analog, digital output and... Each vi has its own time while in a loop which iteration step may be different from the large loop.

    The program works correctly, but there are a lot of ticks of "rate" in the communication of data. I've attached a screenshot of input analog vi. A sine wave is produced with output analog vi and this output is connected to an analog input. As you can see the data transmission has problems.

    This caused several loops work simultaneously? Or communication VISA has problems?

    Thanks in advance.

    The main problem I see with your VI is that you use bytes to the Port which is the wrong thing to use about 99% of the time.  It seems that you are trying to break around 31 bytes and turn them into numbers.  Suppose that at the moment, you check the bytes, a port, you have received only 28 of these bytes.  Some of the variables will find 0 because you have all the data.  But on the next play, you will have the remaining 3 bytes so everything from the.  Now your data package is misaligned.

    I suggest that if you want 31 pieces of information, you just put a constant 31 reading VISA and get rid of bytes to node Port.

    Other advice.  Index table is EXPANDABLE!  You don't need to create 31 copies of the index table and wire a constant to each of them.  Remove a node, and expand the bottom border down that you need.  You don't even have to add all the constants, because by default it will give you index 0, index 1, index 2...

  • No problem with the addition of a Kingston SSDNow V300 240 GB SDD to a D7-1245dx?

    A knowledge of any problems with the addition of a Kingston SSDNow V300 240 GB SDD to a D7-1245dx? Its size is 7mm width 69,85 mm x depth 100mm height but not sure of the size of the computer laptop berries/caddy supports

    Decide whether to use the laptop for a little longer so to upgrade the system to a Kingston 240 GB SDD drive and move the current drive to the secondary location (already got 2nd coming of caddy). It lets me do a bit more space on the laptop in addition to increasing performance.  Figure between an SSD and get up to 8 GB ram it should last a little longer.

    You will have a shopping cart for the SSD, but it looks like you have an and get a second wagon. Dv7-1000 series does not use a cable or connector. the hard disk plug right into SATA ports on the motherboard. 7mm drive has the connectors SATA and the mounting holes exactly in the same place as a 9.5 mm drive. All is just shorter so the reader rides low in the caddy. As a swimming pool with 20% water let out. 7mm SSD works perfectly. Windows 7 or 8/8.1 are preferred; Vista is not configured to treat SSDS as well or easily.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

Maybe you are looking for

  • Satellite L850 - A925 Webcam works do not (broken lines that appear)

    Dear community peoples, I have a Toshiba Satellite L850-A925 for 6 months. And I have this annoying problem with the webcam.I installed all the drivers and even when I turn on the webcam application, it gives no error.The only problem, I don't see an

  • Dual calendars on a computer?

    I have a desire to have two different calendars on a single computer.  In fact want to have two different calendars on four different computers.  This may not make much sense but right now I need a calendar on a single computer and a different calend

  • HP P6654y does not sound blaster Audigy

    I had problems with distortion of the sound through my main speakers audio integrated, so I installed - Soundblaster Audigy Fx- So far I have disabled the audio in the BIOS / disabled the HD audio in Device Manager / made sure not to install the HDMI

  • Vgn-z610y Vista recovery disks

    I downgraded to xp when I got the laptop. Now, I want to use Vista. Recovery disks, I did today, but I think it can be XP. Where can I get the recovery disc for vgn-z610y? Thank you

  • My icon show desktop quick launch area disappeared. How can I get that back?

    Display the Desktop icon in the Quick Launch bar My icon show desktop quick launch area disappeared and tried everything to get it back, but can't.  Does anyone know how to make the show the office re - icon appear please?