Search the Community

Showing results for tags 'serial'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • DAQFactory
    • Alarming
    • Channels, Conversions and general data acquisition
    • Graphing
    • Logging
    • Modbus
    • Networking: web, email, FTP etc.
    • PID
    • Screen Components and User Interface
    • Sequences and scripting
    • Serial Communications
    • General DAQFactory
    • DAQFactory and the LabJack
    • DAQFactory Express
    • DAQConnect
    • DAQFactory New Feature Requests
    • The DAQFactory Guru's Articles
    • DAQFactory Newletters

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 7 results

  1. Hi I am a DaqFactory novice so please excuse my ignorance if the following is trivial I’m connected with a Sprint DC Variable Speed Drive through the RS232 port. Communication is established and I can perform basic parameter functions. Using the line below, I can set the speed to 100% device.Sprint.Write(chra({0x04,0x30,0x30,0x30,0x30,0x02,0x41,0x61,0x31,0x30,0x30,0x03,0x12})) (EOX) (GroupID)( Unit ID )(STX)( Mnemon)( Value )(ETX)(BCC) Where: EOX = End of transmission. Clears the line at start of new message STX = Start of Text ETX = End of text BCC = Block Check Character – verification check digit which is exclusive OR of Mnemon to ETX Mnemon = Two hex character ASCII mnemonic for parameter. Aa in this case = Speed Value = ASCII hex representation of parameter value. In this case 100 Whilst EOX, GroupID, Unit ID, STX and mnemonic can remain fixed in each transmission, I’d like to be able to dynamically change the value and check block (BCC) so that I can change the speed of the drive by reading a slider value (or similar). I’ve tried for many hours to place variables into the chra array to dynamically change the values and BCC, but I’ve failed miserably! Please can anyone help. With thanks
  2. I'm attempting to get coil status from a Click PLC from port #2 RS232 to the serial port on the PC. I'm running DAQ Factory Starter Release 16.3. DAQ is set to communicate through the serial port with Modbus RTU master to the PLC. The Com port setup appears to be identical, but the Alert that is coming up is: P-ModbusRTU 0010: Timeout with C1038 Timing lag, data acquisition stalled. Resetting timing: 1.000, offset: 0.000. I'm just getting familiar with this software and when completed I would like the PC to control a telescope and observatory so I'm going to need several I/O points going to and coming from the Click PLC. Any help would be appreciated.
  3. steveandrews

    2 device conflict?

    Hi, I'm having some issues I think with a conflict between 2 devices. I thought it was an electrical issue but i am now pretty sure it is daqfactory. I have a usb to rs232 connected to a flow controller and use a custom protocol to poll it via the virtual comm port as per the instructions in the manual, driven by 1 channel at a timing of 1 sec and add the parsed data to channels. This works great. I also have an arduino chip built into my embedded computer that is running a modbus protocol (although the chip is built in to the board, i think it also runs a usb to serial adapter chip). This also works great and i use a sequence to read some registers and put them in channels. To write to some registers i just use the modbus commands on the channel and set the channel. The problem I am having is that if i switch some valves on/off by setting the registers, sometimes the RS232 adapter to the flow controller will drop out and i have to unplug in order to then initcom(). I get a timing lag error. I think what is happening is maybe if the writing to the modbus registers happens at the same time as the channel timing talking to the flow controller, the flow controller comm port gets locked up somehow? I'm not sure if this is an accurate diagnosis. The modbus read doesn't seem to be affected but it is in a sequence with a try catch. I tried reading the flow controller in the sequence with the modbus, with both reads from the modbus and the flow controller on a 1 sec loop with 0.5 sec offset. They both have try catch and the data comes in fine. But writing rapidly to the modbus I can still get the flow controller to drop out. I was thinking to move the writing to modbus into the sequence also, so I can be sure it never sends data at the same time as the reads but I'm wondering if i'm going about this all wrong!? I don't understand how the two different devices can affect each other like this as it's a different device, different protocols and different ports??? Any ideas would be great Cheers
  4. dvalerio

    Set and Read Register

    Hi..! I am working with DAQFactory, and I want to know if it's possible to make a channel with ModbusRS485 Device Type to be an Read/Set Register at the same time. In the control I have, I can do it local, with a COM Tester, but with DAQFactoty I have reading channel or writing channel, but not both. Is there any way to establish a Channel to be readable and writable? Help..! Thanks.!
  5. Hello together, I have got following problem: I am trying to handle some data which I receive from a serial device. Sending request to the slave works so far. In the monitor I am able to see the Response string: Rx (15:43:25.533): \xC1\x14\x00d\x00\x00H\x07\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x11\x1F\x00\x04\x00\x00\x00`\x83 The values displayed here are valid. I have problems with further accessing/handling this data. I try to assign it to a string in following way: private.strOut = Device.RS485_Test.Read(46) The resulting string is 46 characters long. (checked with the GetLength function). The values it contains, don't really make sense - I guess I have to convert them? Subsequently I want to to use this string for accessing a particular value (e.g. the 35th character in the string) My goal is to assing this value to a channel and to log it (with a time stamp). Do you have any idea/solution for me? Best regards and thank you in advance SLK
  6. Hello, I am pretty new to DaqFactory and serial communication. My task is to read the pressure readings from the gauge per 1 second and display the reading by a text field on front page. I have set up the communications between the gauge and DaqFactory. In the Comm Monitor window, I got: Tx: #01RD\013 Rx: *01 9.99E+09\013 Tx: #01RD\013 Rx: *01 9.99E+09\013 Tx: #01RD\013 Rx: *01 9.99E+09\013 The gauge is based on ask-answer. When I send #01RD\013, it will return the reading I want. My problem now is that I can't figure out how to do it by sequence in an automatic fashion. I tried the following code: private string stin private in while(1) try device.vacuum_gauge.Purge() device.vacuum_gauge.Write("#01RD\r") stin = device.vacuum_gauge.ReadUntil(50) catch() ? strLastError endcatch delay(1) endwhile But I get an error: C1136 Timeout: read_pressure Line 7 Can anyone help me? Thank you so much! Lin
  7. Hi, I have an application that runs charge/discharge cycles on large battery packs. DaqFactory controls a U3HV for charger and electronic load control. I need to log data from the battery management system, which is on a CANBUS link. Has anyone setup CANBUS requests and retreived data before? The CANBUS connection is a USB to CANBUS adapter based ont the Silicon Labs CP210X USB to UART Bridge and is accessible via a COMx port. P.S.: I love DaqFactory Pierre