01-18-2024 02:45 AM
Hello all,
Is it possible to change baud rate for serial communication between NI-cDAQ 9174 and PC or is it problem with my computer because sometimes i get interruption. I am using NI 9239 to measure voltage from LVDT sensor.
Thank you for your help
Best regards
01-18-2024 04:47 AM
01-18-2024 05:49 AM
Hi GerdW,
Thank you for your reply. It is connected with standard USB cable.What do you mean with that last question? It is connected into first sloth of cDAQ9174.
Best regards
01-18-2024 05:56 AM
Hi Nomis,
@NomisG wrote:
Thank you for your reply. It is connected with standard USB cable.
You cannot change speed (aka baudrate) of a USB connection…
What exactly is your problem with cDAQ-to-host connection?
@NomisG wrote:
What do you mean with that last question? It is connected into first sloth of cDAQ9174.
So the information on the NI9239 is irrelevant for your problem…
01-18-2024 06:27 AM
Hi GerdW,
I am using LVDT sensor for measuring displacement of a actuator that is moving from one to other position. This is done by setting start and end position of actuator. I am also reading current position of actuator and sometime it overshoots and I am reaserching what could be the problem. Maybe data is missed sometimes or it is something else (maybe sensor is the problem). I think that electronics part it is fast enough to do that.
I hope now it is more clear.
Best regards
01-18-2024 06:46 AM
Hi Nomis,
@NomisG wrote:
This is done by setting start and end position of actuator. I am also reading current position of actuator and sometime it overshoots and I am reaserching what could be the problem.
Does the actuator reach its end position even when it overshoots?
How is the actuator controlled?
01-18-2024 08:21 AM
Hi GerdW,
The actuator is controlled by H bridge mosfet transistors. National instrument digital output card drives those transistors. Yes everytime it reaches problem happens with higher frequency.
Best regards
01-18-2024 08:47 AM
Hi Nomis,
@NomisG wrote:
The actuator is controlled by H bridge mosfet transistors. National instrument digital output card drives those transistors.
Apparently there is a lag in your control loop between AI (reading of position sensor) and DO (driving the H bridge/actuator) which introduces those overshoots. Or the controller is not properly tuned…
@NomisG wrote:
problem happens with higher frequency.
Please define "higher frequency"…
01-18-2024 09:08 AM
Hi GerdW
Yes that are thoughts, Like it works fine on 2Hz and then I change to 3Hz displacment changes for 1 mm something like that. I general that is not much but for measurment is something. I was thinking trying with CompactRIO it has its own processor.
I dont know if I described it before but when you open like a browser on a computer while running control it lags.
Best regards
01-18-2024 10:54 AM
I have set in DAQ assistant :
Samples to read: 1
Rate (Hz) : 1kHz
I just checked switching time from electronics from low to high is like 700ns.
Best regards