LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Baud rate of NI-cDAQ 9174

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

0 Kudos
Message 1 of 16
(764 Views)

Hi Nomis,

 

how is the cDAQ9174 connected to your host computer?

How does the NI9239 come into play when asking about "serial communication"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 16
(730 Views)

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

 

0 Kudos
Message 3 of 16
(719 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 16
(713 Views)

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

0 Kudos
Message 5 of 16
(707 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 16
(700 Views)

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

0 Kudos
Message 7 of 16
(684 Views)

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"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 16
(679 Views)

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

0 Kudos
Message 9 of 16
(673 Views)

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 

0 Kudos
Message 10 of 16
(645 Views)