Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Ack CVI NC_FRMTYPE_ERR

Hi,
 
I have a big problem :
 
my project is to make a periodic frame (200 ms)  send it from cvi to the calculator (HS 500 M), und at the same time receive the calculator's frame, ok
 
but if the caculator is in reset mode (300 ms), i have to stop sending, until i receive any kind of frame frome the calculator,
 
so :
 
1) how can I  detecte tha calculator doesn't take care about the frames? (Akn .... or how)
 
I have used "NC_FRMTYPE_ERR"  to detecte any error on the bus, but I can't control the periodic frame (stop it until i receive a calulator's frame)
 
I have no better idea Smiley Indifferent
 
so any suggestion !
 
thank you
0 Kudos
Message 1 of 4
(4,167 Views)

Hi,

You could use the ncaction stop  function on your periodic written object to stop it if no frame comes from your device. You can restart this object then with ncaction start if your device is up and running again.

DirkW

0 Kudos
Message 2 of 4
(4,158 Views)

thanku Dirkw,

 

I have used ncAction , but i think stop und start are only used for CAN Network Interface not for CAN Object, in my application i use a CAn object to transmitte the periodic frame,

is there any other solution to stop und start the CAN object ? (if that http://forums.ni.com/ni/board/message?board.id=30&message.id=748&query.id=41774#M748     is realy so  Smiley Surprised

thank again

0 Kudos
Message 3 of 4
(4,155 Views)

Hi

yes you are right. We changed this with the latest driver 2.3.3 available on the web. Now you can use the ncaction to start your objects and now you can stop these objects again and restart them.

DirkW

0 Kudos
Message 4 of 4
(4,126 Views)