LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a bitstream using digital I/O/counter

Hi nbn,

 

maybe you should also use the "is done?" flag?

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 16
(681 Views)

thanks fo your help. i decided to generate PWM signals with finite samples using digital output (No counter). and read serial data using NI VISA.

My problem is im not sure if samples, rate and generated PWM signals are correct. 

 

the whole task is:

reading data stored on the PCB (in Actuator for exhaust valve, Test voltage 14V, 300Hz). When read out is activated data is sent over a serial protocol (identical on PWM-IN and PWMOUT line by grounding the signal). To activate readout the following command has to be applied on PWM-IN pin:

 

frequency 300 Hz ±5
1. Duty cycle 80 ±5 (10 periods)
2. Duty cycle 50 ±5 (10 periods)
3. Duty cycle 10 ±5 (10 periods)

 

The supply voltage has to be within the specified range during that time. Operation frequency has to be within valid range for the complete activation sequence, otherwise the sequence has to be restarted. Every duty cycle has to be applied for 10 periods. The order of duty cycles has to be complied. After the last duty cycle the data of 95 Byte will be transmitted.

 

After transmission of the starting sequence the PWM-IN has to be held high and PWM has to be deactivated. Afterwards the actuator transmits the data serially on the PWM-IN and the PWMOUT line. Preferably to be evaluated is the PWM-In line. Data is transmitted identically. During data transmission no monitoring and control will occur. For data transmission a baud rate of 9600Baud/s ±5% is used. To every byte a start and a stop bit is added, complying with an RS232 8N1 interface. A synchronization of the baud rate is recommended.

 

 

 

 

0 Kudos
Message 12 of 16
(600 Views)

thanks fo your help. i decided to generate PWM signals with finite samples using digital output (No counter). and read serial data using NI VISA.

My problem is im not sure if Samples, rate and generated PWM signals are correct. 

 

the whole task is:

reading data stored on the PCB (in Actuator for exhaust valve, Test voltage 14V, 300Hz). When read out is activated data is sent over a serial protocol (identical on PWM-IN and PWMOUT line by grounding the signal). To activate readout the following command has to be applied on PWM-IN pin:

 

frequency 300 Hz ±5
1. Duty cycle 80 ±5 (10 periods)
2. Duty cycle 50 ±5 (10 periods)
3. Duty cycle 10 ±5 (10 periods)

 

The supply voltage has to be within the specified range during that time. Operation frequency has to be within valid range for the complete activation sequence, otherwise the sequence has to be restarted. Every duty cycle has to be applied for 10 periods. The order of duty cycles has to be complied. After the last duty cycle the data of 95 Byte will be transmitted.

 

After transmission of the starting sequence the PWM-IN has to be held high and PWM has to be deactivated. Afterwards the actuator transmits the data serially on the PWM-IN and the PWMOUT line. Preferably to be evaluated is the PWM-In line. Data is transmitted identically. During data transmission no monitoring and control will occur. For data transmission a baud rate of 9600Baud/s ±5% is used. To every byte a start and a stop bit is added, complying with an RS232 8N1 interface. A synchronization of the baud rate is recommended.

 

 

 

 

0 Kudos
Message 13 of 16
(597 Views)

thanks fo your help. i decided to generate PWM signals with finite samples using digital output (No counter). and read serial data using NI VISA.

My problem is im not sure if samples, rate and generated PWM signals are correct. 

 

the whole task is:

reading data stored on the PCB (in Actuator for exhaust valve, Test voltage 14V, 300Hz). When read out is activated data is sent over a serial protocol (identical on PWM-IN and PWMOUT line by grounding the signal). To activate readout the following command has to be applied on PWM-IN pin:

 

frequency 300 Hz ±5
1. Duty cycle 80 ±5 (10 periods)
2. Duty cycle 50 ±5 (10 periods)
3. Duty cycle 10 ±5 (10 periods)

 

The supply voltage has to be within the specified range during that time. Operation frequency has to be within valid range for the complete activation sequence, otherwise the sequence has to be restarted. Every duty cycle has to be applied for 10 periods. The order of duty cycles has to be complied. After the last duty cycle the data of 95 Byte will be transmitted.

 

After transmission of the starting sequence the PWM-IN has to be held high and PWM has to be deactivated. Afterwards the actuator transmits the data serially on the PWM-IN and the PWMOUT line. Preferably to be evaluated is the PWM-In line. Data is transmitted identically. During data transmission no monitoring and control will occur. For data transmission a baud rate of 9600Baud/s ±5% is used. To every byte a start and a stop bit is added, complying with an RS232 8N1 interface. A synchronization of the baud rate is recommended.

 

 

 

 

Download All
0 Kudos
Message 14 of 16
(597 Views)

Thank you for your generous Help.

 

I decided to generate PWM Signals using Digital I/O and read Serial Data using NI VISA ( Using Serial to usb adapter). My Problems is, i'm not quite sure if generated PWM signals, Samples and Rate are correct. Sometime i'm not be able to read whole serial data.

 

 

the Whole Task is:  Reading data stored on the PCB (inside a Actuator for exhaust valve) can be read out via the electrical interface.

 

When read out is activated data is sent over a serial protocol (identical on PWM-IN and PWMOUT

line by grounding the signal). To activate readout the following command has to be applied on PWM-IN pin:


frequency 300 Hz
1. Duty cycle 80 (10 periods)
2. Duty cycle 50 (10 periods)
3. Duty cycle 10 (10 periods)


The supply voltage has to be within the specified range during that time. Operation frequency has to be within valid range for the complete activation sequence, otherwise the sequence has to be restarted. Every duty cycle has to be
applied for 10 periods. The order of duty cycles has to be complied. After the last duty cycle the data of 95 Byte will be transmitted. After transmission of the starting sequence the PWM-IN has to be held high and PWM has to be
deactivated. Afterwards the actuator transmits the data serially on the PWM-IN and the PWMOUT line. Preferably to be evaluated is the PWM-In line. Data is transmitted identically. During data transmission no monitoring and
control will occur. For data transmission a baud rate of 9600Baud/s ±5% is used. To every byte a start and a stop bit is added, complying with an RS232 8N1 interface. A synchronization of the baud rate is recommended.

0 Kudos
Message 15 of 16
(634 Views)

the other SubVIs

Download All
0 Kudos
Message 16 of 16
(624 Views)