Always getting errors when trying to control YOKOGAWA 7651 power supply on Labwindows/CVI

Hi,
I'm trying to set the voltage on the YOKOGAWA 7651 power supply through labwindows/cvi. I've set up a numeric slide on my userinterface with callback function "yoko7651dcvolts" and constant name "YOKO7651DCVOLTS".
I always get this error when I run my program:
"FATAL RUN-TIME ERROR: "DcSource.c", line 53, col 65, thread id 0x00001F3C: Invalid argument type: found 'pointer to double', expected 'pointer to int'."
This error points to the third argument of the GetCtrlVal function below. The program/compiler wants me pass the variable "yoko1volts" as integer, but I want to (and should) be able to set voltages as floating numbers.
Plus, even when I declare "yoko1volts" as integer, it stills doesn't work. All I get is zero, zero, and zero...on the power supply meter everytime I press the numeric slide.
This is the section of the C code that is problemic:
int CVICALLBACK yoko7651dcvolts (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
double yoko1volts;
switch (event)
case EVENT_COMMIT:
GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651DCVOLTS, &yoko1volts); // to read the values entered on the numerical meter on the user interface
yk7651_set_volts (yoko76511Panel, yoko1volts); // set the entered values as voltage on the instrument
break;
return 0;
This is the related h-file:
#define YOKO7651_1 4
#define YOKO7651_1_YOKO7651SWITCH 2 /* control type: binary, callback function: yoko7651switch */
#define YOKO7651_1_YOKO7651DCVOLTS 3 /* control type: scale, callback function: yoko7651dcvolts */
Please help, how can I fix this issue?
All the drivers (including the YOKOGAWA 7651 power supply) are properly installed and mounted. As a matter of fact, I can successfully turn the power supply on and off with the code below:
int CVICALLBACK yoko7651switch (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
int yoko7651switchstate;
switch (event)
case EVENT_COMMIT:
GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651SWITCH, &yoko7651switchstate);
SetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651SWITCH, !yoko7651switchstate);
yk7651_output (yoko76511Panel, !yoko7651switchstate);
break;
return 0;
It's just setting the voltage on the power supply that is very problematic. Any help is appreciated...Thanks.
Solved!
Go to Solution.

I second Al opinion of a disconnection between the UIR and the variable that holds the panel handle.
As a side note, I noted that the problematic line is reading the value of the controll whose callback is executed:
#define YOKO7651_1_YOKO7651DCVOLTS 3 /* control type: scale, callback function: yoko7651dcvolts */
int CVICALLBACK yoko7651dcvolts (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
double yoko1volts;
switch (event)
case EVENT_COMMIT:
GetCtrlVal (yoko76511Panel, YOKO7651_1_YOKO7651DCVOLTS, &yoko1volts); // to read the values entered on the numerical meter on the user interface
yk7651_set_volts (yoko76511Panel, yoko1volts); // set the entered values as voltage on the instrument
break;
return 0;
In a situation like this, I would try using GetCtrlVal (panel, control, &yoko1volts); instead, that should get rid of all problems in panel handle / control ID.
Despite this solution is working, in any case I would deep into the problem as an incorrect panel handle can lead to erratical behaviour in other places of the program.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Site to Azure replication - always get errors when trying to enable protection for a virtual machine

    I just setup my Azure account with Storage and Azure Site Recovery.
    All the servers are registered and I can see my host server configurations in Azure.
    But as soon as I can try to Enable Protection, after about 10 minutes I always get this error
    Unable to complete the request. Operation on the xxx.xxx.local server timed out.
    Try the operation again. (Provider error code: 2924)
    (But the way the xxx.xxx.local server is the name of the underlying Hyper-V host running SCVMM and my test machine to be protected. Is that the right machine Azure should be communicating with?)
    This happens if I initiate the protection from Azure or from SCVMM.
    The server I want to enable protection for is quite small and there appears to be no problem with my Internet connection.
    Prerequisites check
    Identifying replication target work okay
    And after the failure, Updating Provider states also completes okay
    Would folks have an idea where else I could be looking?
    Thanks

    Hi, can you please check if network proxy settings configured in the Microsoft Azure Recovery Services Agent are correct. This agent running on the Hyper-V host needs to be able to reach Azure. (You can find more details about this here: http://blogs.technet.com/b/virtualization/archive/2014/07/07/azure-site-recovery-authenticated-proxy-server.aspx)
    If that is correct, please look at event logs at “Applications and Services Logs->MicrosoftAzureRecoveryServices->Replication” and
    traces at a location like C:\Program Files\Microsoft Azure Recovery Services Agent\Temp.
    Sudhakar [MSFT]

  • Get error when trying to install Leopard on Power Mac G5

    Specs are G5 1.8 GHz
    1 GB of RAM
    80 GB HDD
    Error is: Mac OS X cannot be installed on this computer: this software cannot be installed on this computer.
    I am using retail Mac OS X install disc.\
    Any ideas?

    None of the Gray Discs will work, they're all machine specific, & IntelMac only too.
    2Z691-6320-A
    That one only works on certain model MBPs, for 15 inch MacBook Pros manufactured between October 2008 and June 2009.
    Perhaps if you had the Black Retail Leopard Disc & put it in the MBP's drive, then booted the MBP into Target mode...
    http://docs.info.apple.com/article.html?artnum=58583
    Then boot the G5 with the Option key held down, it may work, not certain

  • Getting error when trying to create Exchange Connector in System Center Service Manager 2012

    Getting error when trying to create Exchange Connector in System Center Service Manager 2012
    The connection to the server was unsuccessful. Please check the server name and/or credentials entered.
    Additional Information: The server URL is not accessible or the user does not have permission to access it (message: The request failed. The remote server returned an error: (401) Unauthorized.
    Warm Regards, Pramod Kumar Singh Manager-IT

    Someone sorted out this issue by installing API 1.2 and copying the dll files to the service manager server ,service folder and replacing it with API 2.0 dll files.
    Also, your question is related to SCSM, please post at SCSM forum if you have further question.
    Juke Chou
    TechNet Community Support

  • Currently using Flash Pro CS5,  getting error when trying to open CS4 file.  Error is "Slides and Forms documents are not supported in this version of Flash. Please open in previous version.

    Currently using Flash Pro CS5,  getting error when trying to open CS4 file.  Error is "Slides and Forms documents are not supported in this version of Flash. Please open in previous version.  Has there been a fix or patch to this issue or do I have to convert back to CS4 to open the file?

    Having the same problem in CS6.  I can tell you that converting back to CS4 will NOT solve the problem.  It seems when support for backward compatibility is discontinued, there's just no way to get
    any help at all?  Absolute failure to provide any user support so far...

  • Getting Error when trying to connect to the Primavera database. PPM V7 SP3

    Hi Guys,
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailService' defined in class path resource [com/primavera/bre//com/primavera/bre/integration/intgconf.xml]: Invalid destruction signature; nested exception is org.springframework.beans.factory.support.BeanDefinitionValidationException: Couldn't find a destroy method named 'destroy' on bean with name 'mailService'
    I have looked into the intgserver.jar under P6IntegrationAPI/lib and looked the com.primavera.infr.srvcs.MailServiceImpl.java and can see that there is no destroy method whereas it is defined in the com.primavera.bre.intergration.intgconf.xml as below
    <!-- provides mail services -->
    <bean id="mailService" class="com.primavera.infr.srvcs.MailServiceImpl" init-method="init" scope="singleton" destroy-method="destroy"*+>
    <property name="adminManager"><ref bean="adminManager"/></property>
    <property name="threadPool"><ref bean="threadPool"/></property>
    <property name="settingsManager"><ref bean="settingsManager"/></property>
    </bean>
    I get the above error when trying to connect to the Primavera database. I use PPMV7 SP3 and I have installed the Integration API from EPPMV7 bundle.
    My demo's are working fine.
    Any help would be appreciated.
    Thanks,
    Kajal.

    Hi Marc,
    I am using a userid (is an admin)
    Using global login method and provided userid & password in integration settings.
    In the machine profiles, provided userid, password and domin.
    Not providing domain in weblogin.
    With all the above I am still getting error "Could not authenticate the specified user. %0" for HFM application
    And with the same settings I am not getting any error to connect to essbase cube.
    Any suggestions?
    Thanks
    Krishna

  • Getting error when tried to learn the documents in OFR Designer

    Hi All,
    As per project requirements, I have to create Classification and Verification LearnSets in Oracle Form Recognition Designer depending on three Invoice Types-- PO,Non-PO and Pre-Approved.
    First I created three derived classes under Generic Class -- PO,Non-PO and Pre-Approved.
    I can add documents in Classification and Extraction LearnSet, analyze them, but getting error when click on the Learn button, I couldn't make the engine ready in learned state from the Definition Mode.
    Always getting the below two errors:-
    1) Cannot compile. May be not enough classes defined or too few documents assigned to the classes.
    Cannot learn the BrainwareView : DefaultView
    SERbrainware : Learn, learning error (7)
    2) Cannot compile. May be not enough classes defined or too few documents assigned to the classes.
    Cannot create Brainware Dictionary for BrainwareView : DefaultView
    SERbrainware : Create/AppendDictionary, preprocessing error (3)
    Thanks in advance,
    Moumi.

    Hi All,
    The below mentioned error were resolved after adding documents in Void Class.
    Thanks,
    Moumi.
    Edited by: 903667 on Jan 31, 2013 8:34 PM

  • Getting error when trying to update apps

    I'm getting this error when trying to update CC apps on my iMac:
    Update Failed
    Unable to write to file/folder. You may exit now, try after disabling your anti-virus, or contact customer support.
    Has anyone experienced/resolved this issue?

    Ggallowaycb it would appear that your current User account's file permissions have become compromised and you are unable to write/modify a specific directory.  Please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html for information on how to adjust your file permissions.

  • Getting error when trying to open Job Manager

    Hi List
    we are getting the below error when trying to open the Job Manager,which worked fine until yesterday.
    [nqs error 46105] Error executing Process: "C:\Program Files\Java\jdk1.6.0\bin\javaw.exe" - Xmx1024m -cp D:\OracleBI\server\Bin\JobManager\startup.jar org.eclipse.core.launcher.Main -data D:\OracleBIData\jobmanager -configuration C:\OracleBIData\jobmanager The system cannot find the path specified
    Please advice.
    Thanks..

    Did you change your JDK path by any chance? Also you are getting a strange error message. It is trying to point to both D:\OracleBIData\jobmanager and C:\OracleBIData\jobmanager. Is there anything that you changed prior to doing this?
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • [Solved]getting error when trying to launch kate in terminal

    i'm wondering why i'm getting this error message when trying to open a file with kate using root in standard terminal
    eg su
    kate /home/user/document
    and i'm getting this error mesage
    No protocol specified
    kate: cannot connect to X server :0.0
    when i try the same method with user account it work perfectl
    kate /home/user/document
    no error
    when i'm trying to open firestarter with root i get this kind message
    No protocol specified
    (firestarter:7848): Gtk-WARNING **: cannot open display: :0.0
    so i try with standard user and i this kind of message
    "insufficient privelige u need to be root"
    Last edited by burmmo (2008-07-01 21:03:42)

    You can always use
    xhost + localhost
    But the real solution lies here...

  • Getting error when trying to login to CR XI server on suse linux server

    http://www.experts-exchange.com/Database/Reporting_/Crystal_Reports/Q_21747694.html
    Hello,
    I'm getting the above error when I try to login as administrator (blank password).
    This did work until I rebooted the linux server.
    I checked there are no port conflicts (nothing is using port 6400).
    I restarted the services manually, I even rebooted server and then restarted ccm services manually but no luck. I did find this is a known problem with linux crystal reports server but nothing stated about how to resolve it.
    Finding solutions in the SAP portal is difficult! This is about as user friendly as the Cisco support website. Cisco portal is AWEFUL.
    I'm in process of getting a support contract from SAP but it's taking a long time.
    I have to state the support from SAP is a big step DOWN from the business objects support. We were able to call and speak to engineers in a few minutes.
    With SAP support I was able to talk to some foreigner (asian or indian) to tell me that there is no phone support with SAP. This after being redirected at least 4 times between departments.
    Wow! So what do the other business objects customers have to say about the SAP support?
    I can't help but wonder about moving on to another solution for publishing reports.
    A vendor who actually gives a damn about the customers.
    Oskar

    this worked until I rebooted the server.
    I'm getting error showing it's trying to connect to a mysql database 'BOE115'.
    This server does have a mysql db running on it, but that db has no instance of BOE115.
    It also shows it's trying to connect as a user that isn't on the database.
    Where can I see the script with user/password that is trying to run and connect to the mysql db?
    Also, why didn't the install create the instance and user?
    Why did this work until I rebooted?
    There is no firewall on this server, that has been disabled.
    Thank you,
    Oskar

  • Getting error when trying to download deployed software package

    Hello all,  I have been struggling with this for almost two weeks and am about to give up.  The error I'm getting is when a client tries to download a deployed software package.  The software shows up in IE browser (servername\cmapplicationcatalog),
    but when I click install it errors out saying can't install or request software.  I am not a network guru and did not setup SCCM but need a little (maybe a lot) guidance.  I have looked at log files till my eyes are ready to fall out but just not
    sure what I am looking for.
    In ccmmessaging.log, I see this error "No reply message from Server. Server may be temporarily down or a transient network error"  and this after "http://servername/ccm_system/request failed
    with 0x8000000a"
    Here comes the weird part, I had this working, successfully deployed twice to two clients.  The next day I came in to work and it was broke.  I have no clue what could have changed over night to cause
    this issue.  If someone could maybe lend a hand troubleshooting, I would be most grateful. 
    Many thanks in advance!!
    Rob

    Hi,
    Please review the link below, here is a useful article for you.
    Tips and Tricks for Deploying the Application Catalog in System Center 2012 Configuration Manager
    http://blogs.technet.com/b/configmgrteam/archive/2012/07/05/tips-and-tricks-for-deploying-the-application-catalog-in-system-center-2012-configuration-manager.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Getting error when trying to launch a game through game center

    I am trying to launch Pinball HD from Game Center but always get connection errors. For instance, I receives the error "The requested operation could not be completed due to an error communicating with the server". I am also getting "a server with the specified hostname could not be found"
    I am connecting through Wi-Fi. Any particular setting I need to specify in my router?

    Wow. Did not expect an answer so fast! Unfortunately for me, the progress indicator keeps spinning for a long time before it comes back with an error. My internet connection is working. Is there a way to know what server it tries to connect to. I could probably run some tracing tools from there.

  • Getting error when trying to download update for flash player with OSX 10.91

    Trying everything to download update for Adobe Flash Player. This is maddening. I have tried uninstalling previous player and re-installing and checked my preferences. Can any one give me some instructions that are easy to understand. I keep getting an error when installing.

    There usually is an Adobe flash uninstaller that goes through a process satisfactorily.
    Did you get the Adobe Flash update from their
    page, directly?  http://get.adobe.com/flashplayer/
    Also note the extensive info at Adobe link below.
    If you are having trouble, or Safari is involved, if
    you use a different browser, such as Firefox, etc to
    get that version Flash update. There's another thing to
    look into, in Mavericks, that older OS X didn't
    have, that may affect installation...
    In System Preferences, find a Flash Player preference
    under "Other." Click on the Advanced tab and then "Check
    Now" in the Updates section. An available new one
    would be installed. There is a similar issue/answer
    in the following solved ASC discussion thread:
    https://discussions.apple.com/message/21189654#21189654
    •Adobe Flash Player - Installation Problems - Mac OS X:
    http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-mac.ht ml
    Hopefully this helps.
    Good luck & happy computing!

  • Getting error when trying to add authorzation in ERM (AC 5.3_SP,)

    Hi Experts,
    I have created a role in ERM and successfully saved it, when trying to add authorization by selecting the functional area->selected the functional are(procurement dept.) -> next i clicked on the authorization data-> aded one row ->when searching for the function id from the description field, it's searching for some time and after that, getting the follwing error .
    "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://xiserver.ep.in:50000/VirsaCCFunction5_0Service/Config1?wsdl&style=document"
    Please do help.
    Best Reagrds,
    Gurugobinda
    Edited by: gurugobinda harichandan parida on Sep 10, 2009 6:29 PM

    Hi Alpesh and Zaher,
    Thanks a lot for all your help and support.
    After applying the note 1279722 my error got resolved, but after that when I am going to the next step to maintain PFCG it is giving me the error as: "Unhandled error; Function template PRGN_CHECK_ROLE_EXISTScould not be retrieved from CPD".
    Please do suggest.
    Regards,
    Gurugobinda

Maybe you are looking for

  • Adobe Creative Cloud app for Android (preview) compatibility?

    HI - I notice that Adobe have released an Adobe Creative Cloud (preview) app for Android. This is very welcome as it would allow me to share files across Windows desktop, Android tablet and, if necessary, iPad. But it says it isn't compatible with my

  • Business Workplace Inbox : Mail Content Not Displayed

    Friends, We have a problem in displaying contents of the mail(SAP Inbox) in one of the PC's. When we reply w/refernce to that message the content is displayed properly. And also the same mail content is displayed properly in another PC's for the same

  • How to configure the use of WS-RM in "PI 7.11 EHP1?

    How to configure the use of WS-RM in "PI 7.11 EHP1? Currently in the editing window of the communication channel (adapter type WS), I can not see any options regarding Reliable Messaging protocol (WS-RM). The scenario that is required is as follows.

  • Accessing links embedded in email messages fails on an iPad

    Our iPad 2 can't open web links embedded in email messages from NY Times, Alternet, and other sites. Error messages is "Website is not available" or "Can't access server". Internet access works otherwise. Problem is the same regardless of whether IOS

  • Mail to be triggered when IDOC fails

    Hello experts, I have created a responsibility and added list of user to it. I have been to WE20 and assigned responsibility to one of the logical system and message type "ORDERS". Whenever an IDOC with message type "ORDERS" fail, respective persons