LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NI PCI 485/8 connection

Hi everyone. I'm new in this filed and I need guide on this. I'm grateful for any advice. Thanks in advance.
 
I use NI PCI 485/8 to monitor quite a numbers of instruments.I already tested my devices using RS 232-RS 485 converter and it work. I connected both A & B device pins to the A & B pins at the converter.
 
However, the correct data response that I get from one of my device using NI card is actually from the A (device) to pin 5&9 (port connector) and Gnd device to pin 4&8 (port connector). I'm not sure why this happened because I already referred to the pinouts for NI serial interface connectors. Moreover, if  I set the port to be other than RS 485-4 wire in labview or MAX,  the program will not work. But actually I'm using RS-485 2-wire.
 
For another instrument, I tried to make the connection as I did before and even after swap the wire to each other (A,B,G) , still doesn't give me the right response. I'm not sure which part that we did wrong here. Please let me know if we miss on something else.
 
Thanks
0 Kudos
Message 1 of 2
(3,431 Views)
Glenn,
 
You can use the "InstallSysTrayIcon" function in CVI to add a system tray icon.
You can use  SetPanelAttribute(panel, ATTR_HAS_TASKBAR_BUTTON, 1); to add the panel the task bar.
 
No python or extrernal dependencies required.
 
Alternatively you can get the windows handle for the panel (ATTR_SYSTEM_WINDOW_HANDLE) and then use it the windows SDK functions to do anything windows can do including docking, move, resize, etc,etc.  This works fine for most parent windows but has problems with child windows. CVI child windows do not behave the same way as their parents... typical of most children.
 
Greg
0 Kudos
Message 2 of 2
(3,108 Views)