LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How does the RS232 callback work in Real-Time?

I am running a PXIe-1065 chassis with a PXIe-8133 RT dual boot controller and it is booted in Real-Time mode.

I have implemented a state machine that triggers on UDP callbacks and acts depending of which interface that was requested.

When an UDP message arrives it creates a thread and processes the request (this for multiple requests).

For RS232 we have a possibility to apply loopback which is implemented as a COM callback. It reads one byte and sends the byte again.

When the request is processed, we send an ACK or NACK depending of result and then the thread ends.

This results in that the RS232 callback routine stops receiving and sending bytes.

 

How is the callback installed? It seems as the callback must be triggered by running ProcessSystemEvents in the created thread for processing requests.

Is there any way to make the callback process outside of the thread created for requests?

Otherwise we have to implement our own callback routine....

 

Regards

Rikard

RikardBorst
0 Kudos
Message 1 of 2
(3,292 Views)

Hi, I'm not sure whether this is the right place for asking this question or not and if not, then please guide me to the right place for asking such question. Thanks.

I have a stepper motor with the Vector Network Analyzer Anritsu MS4623B. I got it up and running with the LabWindows/CVI. I need to sync the motion of the stepper motor with my data acquisition. Basically, I have to acquire the data in a way that in the start the motor will come back to home position wherever it was and then I want to move it to the specific position to do the measurements (For Example, I want to measure the 40 GHz channel between 1m to 3m movement of a stepper motor on a linear positioning system (ball-screw)). I've interfaced the VNA with the PC using LabWindows/CVI and I've controlled the clockwise and anti-clockwise movements of the stepper motor using LabWindows/CVI but I'm unable to sync the system in a way that whenever I run the code, the motor will run back to the home position and then move to a specific measurement start position and move till the end position and in between do the increment and stop and acquire the data. Is there any one to help me please? It's really urgent please and I'm doing this thing first time so please guide me in a proper way. I shall really apprecaite that and will be highly obliged with you. Thanks for your time and concern.

 

Thanks and Regards.

:smileyhappy:

0 Kudos
Message 2 of 2
(3,262 Views)