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,691 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,682 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,681 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,616 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,613 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,608 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,598 Views)

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/data-communication/protoc...

 

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,564 Views)