LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing ASCII Commands Sent to COM Port in LabVIEW


Here is the block diagram of the microscope stage controller. I’m working on a Python script for this, and I need to capture the ASCII string commands sent to the COM port. Does anyone know how I can do that? I added indicators and probes to the pink wire, but nothing appears—When I run the program, LabVIEW shows no value in the probe data. How can I fix that? . I’m a beginner with LabVIEW, so any advice or pointers would be greatly appreciated.

im3.PNG

0 Kudos
Message 1 of 17
(972 Views)

We cannot analyze a truncated picture full of value property nodes and local variables. we can't even see the event configuration, what's in the other cases, what's outside the visible area, or even where the terminals for your property nodes and local variables are. We can't even tell what that subVI does! Why do you read V_limit twice is a row? Do you really think the value changes in the nanosecond between the two reads? Why are there so many coercion dots?

 

Please attach your VI and dependencies, make sure to use "save for previous" (e.g. 2019), and make sure to add diagram comments for all relevant code sections.

0 Kudos
Message 2 of 17
(958 Views)

Herewith I have attached the VI file for your reference.

0 Kudos
Message 3 of 17
(921 Views)

Can you run NI IO Trace and look at that while your code is running?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 17
(915 Views)

@Sachith97 wrote:

Herewith I have attached the VI file for your reference.


Your Vi is in LabVIEW 2025, that many of us cannot open. Did you see my note about "save for previous"? Do you know how to do that?

0 Kudos
Message 5 of 17
(906 Views)

Yes, I think I’ve got it. Here’s the file I saved for the previous version (2019). Could you please check it and let me know if it’s working?

0 Kudos
Message 6 of 17
(897 Views)

The attachment got stuck in a virus scan. Can you try to attach it once more?

 

Here's what we see:

 

altenbach_0-1749752412181.png

 

0 Kudos
Message 7 of 17
(872 Views)
0 Kudos
Message 8 of 17
(858 Views)
0 Kudos
Message 9 of 17
(854 Views)

Still not working I think, could I send you a email, Don't know why it is stuck here?

0 Kudos
Message 10 of 17
(853 Views)