LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can LabVIEW see devices on Windows XP?

Hi,

I am using COM1 on Windows XP sending a heartbeat signal out every second. 

Is there any way I can monitor the Windows XP to make sure if it sees the serial port continuously?



hellolv

0 Kudos
Message 1 of 9
(3,523 Views)
I don't quite understand your question or what you're trying to accomplish. What do you mean make sure if Windows XP sees the serial port continuously? The serial port is a device. Are you expecting it to disappear from the list of devices in XP's Device Manager? If so, you've got bigger problems.

Or, are you trying to monitor the existing of this signal, which is a completely different problem? Please rephrase your question or provide a better explanation of what you're trying to accomplish.
0 Kudos
Message 2 of 9
(3,516 Views)
Activity through devices such as COM1 can be seen by LabVIEW using VISA.or GPIB...
 
Maybe that answers your question, maybe not...I'm gonna go with not because your question could mean a number of things.  In agreement with smercurio, clarify or reword what you are trying to ask.
0 Kudos
Message 3 of 9
(3,513 Views)
I am writing a letter "G"  to COM1 every second.  The VISA Config VI is outside of my main while loop.  At times when I run the executable the letter "G" is just not written at all.   It seems to me right now the Windows has lost control of the serial port.

Any other advices on what might cause this to happen?




0 Kudos
Message 4 of 9
(3,506 Views)
Are you properly closing the port at the end of the program? Is the port in use by another application (i.e. Hyperterminal)?
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 9
(3,503 Views)
At this point I'd go for the "please post your code" response. Which I just did. It's easier to discern what's going on that way.
0 Kudos
Message 6 of 9
(3,497 Views)
I used VISA Close VI outside the while loop.  Is that proper? 

I am not using any hyerterminal.

This .exe automatically runs after the computer reboots.  Sometimes it fails right after reboots, sometimes fails after running for an hour or two.
0 Kudos
Message 7 of 9
(3,496 Views)
Where does the G go on the other end of the comm port?? If the cable is unplugged, does the vi fault out?? Maybe you are not sending data out the port and the buffer is filling up. Do you have any of the error terminals wired to indicators?? If not this could be hiding what is going on.
0 Kudos
Message 8 of 9
(3,457 Views)
Hi,

I have some questions for you.

1) Where did you get the driver for this device? Was this something you got from NI.com? or did you get it from the manufacturer of those modules? What mdules are you using? (Manufacturer, model number, etc).

2) Do you know what register holds that serial number? You should be able to do some low level VISA calls to just pull that number from the register it's on.

3) Are you getting any specific error messages with this?

We'll be able to help more with this information.
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 9 of 9
(3,425 Views)