01-14-2015 11:26 AM
I am trying to read the inputs from an analyzer communicating with the computer through a USB port. I have tried to use the RS232 Input module in DASYlab, but it always says it is waiting for a signal. I have attached the protocol for the analyzer. What settings can I change to see these values?
Solved! Go to Solution.
01-14-2015 02:17 PM
Have you entered the data request command to request data?
Click on the Options button, and enable the data request.
01-14-2015 03:05 PM
I am assuming you are using some USB to serial converter. Right? USB itself has nothing to do with RS232.
01-15-2015 07:28 AM
We are not using any kind of converter. Is there a way on DASYlab to connect to this USB device without a converter? The computer we are using does not have an RS232 port.
01-15-2015 07:37 AM - edited 01-15-2015 07:38 AM
Basically, if your device has a USB adapter and this adapter is not simulating a RS232 port, you only have two choices:
1) the manufacturer will provide you with a DASYLab driver in the same manner as it might provide a LabView's one
2) The manufacturer as a programming library withe, at lease, a C or Python library. In this case you could write your own driver in Python by using the script module in DASYLab 13
If the unit does have a RS232 simulator then you will need to look into your manual and use the correct mnemonics.
01-15-2015 07:56 AM - edited 01-15-2015 07:57 AM
Thank you for your help. We will look into that.
01-15-2015 08:14 AM
From the manual, it looks like the device has a serial output. Typically that looks like a 9-pin connector on the back of the device.
If the device has a USB output, and not a serial connector, does it create a COM port when you plug the USB cable into the PC? You can check that with the device manager.
If it is a 9-pin connector, then you need a USB-RS232 converter. They're readily available, since almost no new computer has a 9-pin serial port.
05-19-2017 03:13 PM
Hello CJ Please I have a setup and my pressure sensors are connected but Dasy lab keeps reading values even when the experiment is not started. I want it to read 0 before the experiment begins. How can i do this?
05-19-2017 03:32 PM
Each time you hit the Start Measurement button, DASYLab resets the serial port.
You can optionally include start commands for the connected device that are sent once - possibly to zero the device at Measurement start.