patrickokeeffe

Members
  • Content Count

    51
  • Joined

  • Last visited

Community Reputation

0 Neutral

About patrickokeeffe

  • Rank
    Member
  1. patrickokeeffe

    Cannot configure/monitor serial port

    Related?
  2. patrickokeeffe

    Can't delete serial port or configure it

    fwiw, I ran into this problem with 5.87c Build 2050 - except the serial port was still present and it was not a rendering problem. I closed DAQFactory and changed the port number assignment of the "deleted" device (from COM6 to COM14). Then I restarted DAQFactory and it threw 'com port not found' errors for the "deleted" device com port (6). That confirmed DAQFactory was somehow stuck to the port and it was not simply a rendering problem.
  3. patrickokeeffe

    Solenoid valve control

    I would also like to comply with the guidelines for controlling relays published by Labjack. @LabJackSupport says: Does this mean the correct way to control relays (to comply with app note) is: // to turn off myChannel.strIOType = "Dig In" myChannel.restart() // to turn on myChannel.strIOType = "Dig Out" myChannel.restart() myChannel = 0 ...instead of just using a Dig Out type channel: myChannel = 0 //off myChannel = 1 //on
  4. patrickokeeffe

    Cannot configure/monitor serial port

    OK, I did try deleting all port-related channels, as well as persist data. No amount of deleting or restarting will allow me to delete the serial device associated with the renamed device. And because I cannot delete or modify it, I cannot use that serial port anymore at all.
  5. patrickokeeffe

    Data in safe mode

    Is it normal for channels to continue acquiring data while in safe mode? I have enabled safe mode, but Labjack acquisition continues and incoming serial streams are still parsed to data.
  6. I made the mistake of changing the Device Name of a serial device and consequently cannot launch Configure or Monitor for the associated port. I changed the name to distinguish it from a second serial device. Now I'm trying to resolve why the associated channels stopped updating with streamed data, but I can't even monitor the data stream or verify port configuration. I tried restoring the original Device Name value, but the Configure/Monitor buttons still do not work. I tried deleting and re-creating the serial port, but the Delete button does nothing and the result is a "comport in use" error. Is there anything I can do to restore this serial device operation? I would really hate to delete channels and start over entirely. This is DAQFactory 5.87c
  7. Can conversions be applied to serial device channels? (specifically in version 5.87c) * The Serial Guide demonstrates the use of "AddValue()" to insert data into channel history * but question 6.13.3 of the User Guide states AddValue() intentionally skips conversions Experimentation confirms I cannot apply conversions to channels of a serial device. Am I really expected to modify the serial protocol to achieve the effect of Conversions? Or some other feature I overlooked that serves this scenario?
  8. patrickokeeffe

    Components do not render

    Thank you! 👍 This is precisely correct and it was rather quick to fix from an Administrative command prompt: cd C:\DAQFactory regsvr32 iProfessionalLibrary.ocx regsvr32 isAnalogLibrary.ocx regsvr32 isDigitalLibrary.ocx
  9. patrickokeeffe

    Pin not properly configured for analog/digital

    Yes, the message was occuring again-and-again, even after restarting DAQFactory. As mentioned, resetting the Labjack unit with LJControlPanel does restore DAQFactory's automatic configuration capabilities. 👍
  10. patrickokeeffe

    Pin not properly configured for analog/digital

    Found a related topic (using external search engine). Since it's an error coming directly from the LabJack, I closed everything and launched LJControlPanel, then Reset the device. This seemed to resolve the problem DAQFactory was having setting the pin configuration. I am no longer receiving this error and am able to set Dig Out channels OK.
  11. Anyone know why these components do not render? I can't see LED/switch/knob/etc components - they are all invisible. Tried adding them to a new page: nothing. Turned off transparency: nothing. Restarted DAQFactory: nothing. What can I do to get screen components working? I'm using DAQFactory Base 5.87c Build 2050 on Windows 7 Ultimate x64.
  12. I start DAQFactory with a specific LabJack U3-HV and receive the following error message The Labjack is setup with two Dig Out channels: 6 and 7 (screenshot attached). What is DF trying to tell me? Is my LabJack broken? Is DAQFactory broken? (This is DAQFactory Base 5.87c Build 2050 running on Windows 7 Ultimate x64. I would upgrade all of this, if it was permitted.)
  13. patrickokeeffe

    Where Do 'local' Variables Go?

    Using `local transient` for the declaration has resolved my errors - nice & easy workaround. Thanks for your help!
  14. patrickokeeffe

    Where Do 'local' Variables Go?

    OK, I think I've ruled out that explanation: the same errors occur after quiting & re-opening the document, and after entering `Device.mydevice.InitComm()` into the command window. How would I continue to troubleshoot this? Since `onReceive` is part of custom protocols, I can't really address this problem by switching to sequence code. I wouldn't bother with a custom protocol except this project requires code be maintained under version control, and we use several of these devices in somewhat-transient DAQ setups.
  15. Using DAQFactory Express 5.87c Build 2050 on Windows 7 Ent. x64 SP1, Following the instructions of the Serial Guide, section Poll / Response and streaming data, produces errors for me. I successfully followed the previous section, Creating a protocol to accept non-polled data, but as soon as I try to reference local variables, 'C1000' errors occur. This version of my protocol file works just fine (it's largely boilerplate): U,MWE_LI840A I,Input,0,input,string ENDIO F,Poll,0 function Poll(string out, until) // this function will poll the port with given string and read // the response until the given character. Returns NULL (empty) // if there is an error if (argc < 2) throw("Invalid number of parameters") endif private string in try // lock the port if (!LockPort()) throw("Unable to lock port") endif // clear anything pending Purge() // output our string Write(out) // and read until the eol: in = ReadUntil(until) // release the port UnlockPort() // and return the response return(in) catch() // error occured UnlockPort() throw() endcatch // return NULL to indicate error. This should never happen // because of the throw() statement above return(NULL) ENDIO E,OnLoad local streamflag = 0 ENDIO E,OnUnload ENDIO E,OnReceive if (1) //streamflag) if (strIn == Chr(10)) private string datain = ReadUntil(10) Channel.AddValue(strDevice, 0, "Input", 0, datain) endif endif ENDIO E,OnSend ENDIO But when I de-comment the `streamflag` reference in function `OnReceive`, C1000 errors begin: U,MWE_LI840A I,Input,0,input,string ENDIO F,Poll,0 function Poll(string out, until) // this function will poll the port with given string and read // the response until the given character. Returns NULL (empty) // if there is an error if (argc < 2) throw("Invalid number of parameters") endif private string in try // lock the port if (!LockPort()) throw("Unable to lock port") endif // clear anything pending Purge() // output our string Write(out) // and read until the eol: in = ReadUntil(until) // release the port UnlockPort() // and return the response return(in) catch() // error occured UnlockPort() throw() endcatch // return NULL to indicate error. This should never happen // because of the throw() statement above return(NULL) ENDIO E,OnLoad local streamflag = 0 ENDIO E,OnUnload ENDIO E,OnReceive if (streamflag) if (strIn == Chr(10)) private string datain = ReadUntil(10) Channel.AddValue(strDevice, 0, "Input", 0, datain) endif endif ENDIO E,OnSend ENDIO I'm following the examples verbatim here! What am I doing wrong?