From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connection tcp labview problem with command.

Hello ,

I Have one qustion.

 

I have card relay with communication TCP . 

 

my commands  is char .

 

simple

 

char(254)

char(108)

char (0)

 

I have array  [254,108,0]

 

my communication is good with out error. but I dont know problem .

 

why this command  not work ???

 

this command  on the relay in bank 0  

 

ncd relay card.

 

 

0 Kudos
Message 1 of 8
(2,453 Views)

@maklevit wrote:

Hello ,

I Have one qustion.

 

I have card relay with communication TCP . 

 

my commands  is char .

 

simple

 

char(254)

char(108)

char (0)

 

I have array  [254,108,0]

 

my communication is good with out error. but I dont know problem .

 

why this command  not work ???

 

this command  on the relay in bank 0  

 

ncd relay card.

 

 


this is from the NCD site: http://assets.controlanything.com/Software/labview/RelayDriver.vi maybe you can adapt this to what you need?  It looks very similar...

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 2 of 8
(2,444 Views)

I suspect you need a termination character...

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 3 of 8
(2,443 Views)

Hi, billko, 

 

where did you find the command set [254 108 0] to switch relays? I cannot find them. If you could provide the source, it will be greatly appreciated. 

0 Kudos
Message 4 of 8
(2,378 Views)

@MengHuiHanTang wrote:

Hi, billko, 

 

where did you find the command set [254 108 0] to switch relays? I cannot find them. If you could provide the source, it will be greatly appreciated. 


Sorry, I didn't get them from anywhere.  I wasn't the original poster.  I only provided a link to the communications VI.

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 5 of 8
(2,375 Views)

I know this post was from last year, but did you resolve the issue? I am having the same issue. Trying to switch relays from LabVIEW, but don't know what command set to send to the WiFly by TCPIP.

0 Kudos
Message 6 of 8
(2,370 Views)

@MengHuiHanTang wrote:

I know this post was from last year, but did you resolve the issue? I am having the same issue. Trying to switch relays from LabVIEW, but don't know what command set to send to the WiFly by TCPIP.


If you were speaking to me, I wasn't the one with the problem.  I don't know if the original poster solved the issue or not.  There must be some documentation floating around on the internet somewhere - I hope!

 

Sorry i can't help you.

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 7 of 8
(2,360 Views)

http://zone.ni.com/reference/en-XX/help/371361J-01/lvcomm/tcp_vi_descriptions/

 

www.rovingnetworks.com/resources/.../93/wifly_user_manual

 

Maybe those two links will put you in the right direction.

 

Tim 

TimC
National Instruments
Applications Engineer
0 Kudos
Message 8 of 8
(2,326 Views)