Why do I get an error when I try to configure a channel with the tktds7x4 driver?

I use the TDS754D scope. My complete function call is:
errStatus = tktds7x4_ConfigureChannel( ScopeHandle, "CH1", 5.0, 2.0, TKTDS7X4_VAL_DC, 1.0, VI_TRUE);
When I step through it, I see that I get an error on the driver line
viCheckParm(Ivi_SetAttributeReal64 (vi, channel, TKTDS7X4_ATTR_VERTICAL_RANGE, 0, range), 3, "Range");
I'm also getting an error with tktds7x4_ConfigureEdgeTriggerSource
I just downloaded and installed this driver, and it is the first time I have tried to use it. I'm running it in Microsoft Visual C++ 6.0, but it is a C program.

I hadn't done too much debugging when I wrote the question. All I knew was that I got a timeout error when I used that call. Over the weekend I tracked it down to a problem in the function tktds7x4_InvalidateTriggerAttributes, and specifically, the line
checkErr( Ivi_GetAttributeViString (vi, VI_NULL, TKTDS7X4_ATTR_INSTR_COMM_TRIGGER_SOURCE, 0, BUFFER_SIZE, triggerSource));
My scope does not have the 2C option, so there is no communication trigger function. When the driver queries the communication trigger source, the scope apparently does not return anything because it does not understand. I added the lines
if (!strcmp(triggerSource, channelName))
checkErr (Ivi_InvalidateAttribute (vi, VI_NULL, TKTDS7X4_ATTR_TRIGGER_LEVEL));
checkErr(
Ivi_GetAttributeViInt32(vi, VI_NULL, TKTDS7X4_ATTR_INSTR_OPTIONS, 0, &options));
if (isOpt2C)
before that line of code (at line 7360), along with a closing brace before the label "Error:"
Also, at line 399, I added the following 3 lines:
{ "CH1" , "CH1" },
{ "CH2" , "CH2" },
{ "CH3" , "CH3" },
{ "CH4" , "CH4" },
even though the comment for triggerSourceStringTableEntries says that it is for non-channel sources only. I am not positive that it was necessary, but I think it was.
With those changes, the driver now works correctly for me. I have attached my updated driver source code. I am never happy to change a commercial driver, though. If someone were to re-download this driver and re-install it, all my changes would be lost, and the driver would no longer work.
Attachments:
tktds7x4.c ‏664 KB

Similar Messages

  • Why am I getting an error when I place two OAM files one after the other in different pages?

    Why am I getting an error when I place two OAM files one after the other in different pages? They do not load or play correctly.  They are both configured to play automatically with a .125 second delay and both have a white rectangle "poster" over for a hidden effect.

    Thanks for the idea, Scott! I initially tried your idea, but my OAM files were still not loading correctly.  I tried other combinations of OAM files, and it seems to work fine.
    Back to my original OAM files: I made sure that my elements in my Edge Animate project had different names. I originally copied parts of some elements from one to another, and I think it was confusing to DPS to read it. 

  • Why do I keep getting an error when I try to sync my phone with iTunes?  It says I don't have enough privileges.

    Why do I keep getting an error when I try to sync to iTunes? The error says "you don't have enough privileges?"

    Copy all the content on your iPod back to your PC and into iTunes. Then go ahead and sync the iPod with your new library.
    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Why do I get unknown error when I try to add to my iCloud storage

    Why do I get unknown error when I try and add storage to iCloud account ? I have funds in account but I do not have a credit card # on file.

    This didn't solve it for me. Card details already there, and iTunes purchases working fine.
    But just to be sure I' have re-entered and resaved my card info and checked, re-entered and re-checked my appleID info.
    Still not working.
    Anyone got any other suggestions?

  • Why does it say "unknown error" when I try to purchase new episodes for the walking dead game?? :(

    Why does it say "unknown error" when I try to purchase new episodes for the walking dead game?? I have all of billing info up to date, changed my password etc etc and still get an "unknown error" message. Help!

    - Try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>Store and sign out and then sign back in.

  • HT4946 I am upgrading from iPhone 3 to 5. I have backed up my 3 on iTunes. I keep getting an error when I try to download all info to the 5.   The error says I have disconnect my phone but I haven't. Happened multiple times. Any help would be appreciated.

    I am upgrading from iPhone 3 to 5. I have backed up my 3 on iTunes. I keep getting an error when I try to download all info to the 5.   The error says I have disconnect my phone but I haven't. Happened multiple times. Any help would be appreciated.

    Are you running iTunes 11.0.1 (current version)?  If not, get it at http://www.apple.com/itunes

  • Why do I get this error when I try to install Reader XI in Windows 8.1?

    "Error 1303.  The installer has insufficient privileges to access this directory: C:\Program Files (X86)\Adobe\Reader 11.0\Reader.  The installation cannot continue.  Log on as an administrator or contact your system administrator."
    This is my personal home computer.  I have no administrator to contact.  I have gone through all the trouble-shooting suggestions provided by Adobe but I still get this message trying to download Reader XI or X.  I previously had Reader on this computer but it started failing so I uninstalled it and now I'm trying to re-install it.  My antivirus system is Webroot SecureAnywhere and it says there are no problems with my computer.  I'm using a 6 month old Dell computer and System Mechanic also says there are no problems with my computer.
    Any suggestions will be appreciated.

    I have the exact same problems as reported by Vector at the start of this thread.  Running Windows 8, Reader stopped responding, so I uninstalled and tried to reinstall XI, I get Error 1303, with the issue being permissions on that same directory (x86\Adobe\Reader 11.0\Reader).  If I open Explorer and try to navigate to that folder, I see it there under the Reader 11.0 folder, but if I double-click I cannot even open it, I get an "is not accessible.  Access is denied" error.  I checked the Security settings on the Reader 11.0 folder, SYSTEM, Administrators, Users, and TrustedInstaller all have Full Control.  When I go into Advanced and check the box for "Replace all child permission entries with inheritable permission entries from this object" and click Apply, I get an error for the \Reader folder (Failed to enumerate objects in the container.  Access is denied").  I tried deleting the Adobe folder on down, hoping I could just start fresh with the re-install,  but it does not allow me to.  Completely stuck.  Any ideas?

  • I get this error when I try to install iTunes 10.7: "The installer has encountered an unexpected error installing this package. This may indocate a problem with this package. The error code is 2203."

    I am running Windows 7 64bit. I downloaded the latest version of iTunes and ran the installer. This message pops up, I click OK and the installation continues. Then, when I try to launch iTunes I get this: "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 5)". I have also received this error message even when the installation hasn't had any problems. I have uninstalled, reinstalled, restarted, repaired my .net framework,  uninstalled all components following the steps in Article: HT1923 http://support.apple.com/kb/HT1923 all to no avail. It still won't run. It was working perfectly before I updated it to 10.7. After that it all went to crap. I even tried installing the previous version and still get this error message. Any suggestions?

    Okay ... so it's not one of the cases of bodged up ACLs on the Apple folder in Common Files. (That's been underlying a few of the recalcitrant E7W5s.
    Just in case, let's try the fixit from the following document:
    Fix problems with programs that can't be installed or uninstalled

  • I get an error when I try to forward e-mails with attachments.  Advice?

    I have tried many different ways to forward e-mails with attachments to no avail.  I sometimes get a question if I want to include attachment or not.  When I answer yes, I sometimes get an error message and at other times the forward goess through, but without the attachment.  Help!

    No I have not checked the IOS version requirement but I have a similar c2940 where the upgrade was no problem.
    Here is the sh ver output:
    Cisco Internetwork Operating System Software
    IOS (tm) C2940 Software (C2940-I6Q4L2-M), Version 12.1(13)AY, RELEASE SOFTWARE (fc3)
    Copyright (c) 1986-2003 by cisco Systems, Inc.
    Compiled Thu 26-Jun-03 18:33 by antonino
    Image text-base: 0x80010000, data-base: 0x805BA000
    ROM: Bootstrap program is C2940 boot loader
    31-kjeller-adm uptime is 8 weeks, 6 days, 1 hour, 40 minutes
    System returned to ROM by power-on
    System image file is "flash:/c2940-i6q4l2-mz.121-13.AY/c2940-i6q4l2-mz.121-13.AY.bin"
    cisco WS-C2940-8TF-S (RC32300) processor (revision B0) with 20778K bytes of memory.
    Processor board ID FHK0806Y07R
    Last reset from system-reset
    Running Standard Image
    9 FastEthernet/IEEE 802.3 interface(s)
    1 Gigabit Ethernet/IEEE 802.3 interface(s)
    The password-recovery mechanism is enabled.
    32K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address: 00:0F:24:50:CE:40
    Motherboard assembly number: 73-8783-05
    Power supply part number: 341-0085-01
    Motherboard serial number: FOC08051PPK
    Power supply serial number: HIC0802020C
    Model revision number: B0
    Motherboard revision number: A0
    Model number: WS-C2940-8TF-S
    System serial number: FHK0806Y07R
    Configuration register is 0xF
    Ole Martin

  • How can I reformat my hard drive if erase and partition don't work in disk utility and I get an error when I try to erase and install from the Leopard install disk?  I have had several kernel panics, but the volume shows up in startup disk.

    I have had several kernel panics on my iBook G4; the panic message shows up just after the desktop appears. Although the startup volume shows up in Startup Disk, the installation disk reports an error when I attempt an erase and install. Disk utility is unable either to erase or partition the hard drive. The hard drive shows up in disk utility, but the startup volume doesn’t  HELP!!!

    Do you have the original system discs that came with the iBook when it was new?
    Which exact iBook model is it?
    You can choose from this list:
    http://www.everymac.com/systems/apple/ibook/index-ibook.html
    Erasing the disc and installing Mac OS X 10.5 will result in loss of the other applications (such as the iLife applications) which came pre-installed on the iBook.

  • Why am I getting an error when I try to update my Airport software?

    I'm trying to update my using Airport Utility software and I get the error that it can not find the airport.msi file? I've looked for the file on my PC and on the original install disk and can't find it? What am I doing wrong or is this an Apple issue?

    Hello,
    I can't uninstall it, can't repair it, can't even down load from the apple site the latest version and install without it looking for this apple.msi. I tried to update the firmware, and now the Airport Utility will not even work!
    Very frustrating. I am connected to the Internet via it. But this still doesn't make sense.

  • Why do I get an error when I try to apply a theme?

    For some strange reason, the theme that I created, does not want to apply to some of my projects.  I'm working on a work project, and updated my theme as I went along.  It was all fine, until I changed the Object Styles, and suddenly, out of the 7 project files I have, 3 of them wouldn't apply.  It would reach the end of its application (the little blue loading bar) and then would pop up with an error.  See below;
    Like I said, it's only done it for 3 of my projects.  I also have tried applying other themes (the default ones) to the project, and they didn't work either.
    I have already searched the forums and found a question that was the same as this, but regarding Captivate 7.  I tried the solution that was offered there, and it didn't work.  Link to that particular one is below;
    Can't apply a new theme to Captivate 7 projects
    I'd appreciate a bit of help with this, because it's got me completely mind boggled, and it's urgent as well.
    Thanks.

    What was your work flow to save the theme?  I think you are referring to the Blank theme (there are no templates coming with Captivate)?
    Colorful 2015 with Adobe Captivate - Captivate blog
    Theme Colors - Captivate blog
    Both articles talk more about the new Theme Colors feature, but maybe?

  • Why do i get an error when i try to download itunes to my laptop

    Everytime I try to download the itunes app onto my laptop the following error comes up.....
    Runtime error R6034 then state- An application has made an attempt to load the C runtime library incorrectly.
    Error 7 windows error 1114
    Does anyone know what this means and how I can fix it in order to successfuly download itunes

    Runtime error R6034 then state- An application has made an attempt to load the C runtime library incorrectly.
    Error 7 windows error 1114
    With those ones, try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • TS2972 keep getting an error when i try to use home shared with my apple ty 2nd gen

    home sharing error it wont connect

    Hello mjlamonea
    If the update had an error, then check out the article below to restore your iPhone. It will walk you through putting your iPhone into recovery mode and then using iTunes on your computer to restore it. If you have a back up through iTunes or iCloud, then your can put that back up back on after you have completed the restore.
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Regards,
    -Norm G.

  • Why do I get server error when logging into Icloud on my pc

    Why do i get server error when i try to log into icloud control panel on my pc

    document.write(''); document.cookie = 'CTINC=1; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/'; document.cookie = 'SiteStamp=XXDtZ12Ou3WtAF; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/'; document.cookie = 'Persistent_id_XXDtZ12Ou3WtAF=0BD14F766ACA:1318308966; expires=Fri, 08-Oct-2021 04:56:11 GMT; domain=.royalbank.com; path=/';

Maybe you are looking for

  • Data recovery likely?

    My mother's iBook G4 died two weeks ago. From her description, it sounds like her hard drive froze or died while she was attempting to load images from her camera. She couldn't get the computer to respond and ended up unplugging the charger and remov

  • Inconsistent/one-way sync between new iPhone and MS Exchange

    So this is weird. When I use my work PC and add a calendar item in MS Office, the exchange server (which is synced to my iPhone) sends the calendar item to my phone. But when I add a calendar item on my phone, it does not appear in my PC laptop's Off

  • [b]Data Grid in jsp using Struts [/b]

    I need to develop a data grid in JSP using struts . I am using Tomcat web server , Intellij IDEA IDE. If any one has code, please sent it. Thanks in Advance.

  • Need Urgent Help Regarding Adobe Configuration

    Hi, I have been configured Adobs, i have been installed ADS,ACf... everything is perfect. But when i exceute my application, i m getting below error. kindly put some light on it. Its urgent.... 500   Internal Server Error Web Dynpro Container/SAP J2E

  • Store a text file as backgroung task in GUI

    I need to store the content of internal table to one text file format in presentation layer through background job.But when trying with that it shows some error  "cannot ascertain code page".    Later i found GUI_DOWNLOAD doesn't support background j