LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't stop canalyzer measurements

Hello,

 

I'm trying to control the canalyzer program using an activeX control.

I can start the canalyzer, set the signals to measure and start the measurement.

In onSignal event I get the measurement results. It works fine.

But when I want to stop the measurements I get the following error messages: (see attachment).

 

Any idea why I get this behavior?

 

Thank you!

 

0 Kudos
Message 1 of 8
(4,645 Views)

Hi Nicku, 

 

It sounds like there is a problem with CANalyzer. The first error seems to be that canalyzer is in a state where it cannot be stopped and the rest are caused by trying to stop it. 

 

I am not familiar with canalyzer, is there a setting where cannot be stopped while it is acquiring? 

 

Jesse Dennis
Engineer
INTP
0 Kudos
Message 2 of 8
(4,626 Views)

It would also be easier to trouble shoot your code insted of guess at the problem. Could you post your code to make sure that you do not have a programming issue.

Tim
GHSP
0 Kudos
Message 3 of 8
(4,620 Views)

 Hi Tim,

 

No error code received.

Maybe it is an activeX control problem because I can start an stop the canalyzer measurements if I don't  choose "SetSignals2Record".

This is an activeX command which allowed me to choose the signals I get from the onSignal.vi (as a result of onSignal event) and I can use them in my program.

The activeX control I received from one of my colleagues which is on vacation now, so I can't ask him for help.

0 Kudos
Message 4 of 8
(4,611 Views)

Hi Nicku, 

 

"SetSignals2Record" sounds like it is writing to a file, there could be problems with not closing file references when you are trying to stop. However it is impossible to say without knowing more. Would you mind posting your labview VI so we can see what you are doing?

 

Thanks 

Jesse Dennis
Engineer
INTP
0 Kudos
Message 5 of 8
(4,600 Views)

Hi Jesse,

 

As I mention in one of my previous posts I got a control activeX version for the canalyzer as you can see in my attachment.

Normally I should start the measurements by sending the  "SetSignals2Record" command. This is true it is happening and works well.

But when I try to set another set of signals to record or to stop the measurements ( "stopExecution" command) then I get the errors.

 

Anyway it seems my colleagues will be back tomorrow and probably he will help me to find the proper solution for canalyzer measurements using this activeX control.

Many thanks for your support !

 

Nicku

0 Kudos
Message 6 of 8
(4,580 Views)

Hi Nicku, 

 

In your LabVIEW block diagram, where do you call the function to stop canalyzer measurements? Do you just manually select this option from your front panel? Also, does the CTRL CANalyzer function take any other inputs? It would be helpful if you posted your vi. Thanks! 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 7 of 8
(4,564 Views)

Hi Jullianne,

 

Thanks for your attention but my program is a part of a big Sequencer (automation program) and has by the hundreds VI so I can't post it here.

It is true, I choose manually the option from my front panel but it can be controlled also from the automated program).

 

Anyway the person which created the activeX control is now back from his vacation and will provide me the support i need.

It seems that the first message (can't stop the CANalyzer measurement) is a result of his activeX program due to a timeout problem.

We already solved the problem and now the program works. My colleague made some changes in his activeX program.

 

Once more thanks for your intention!

 

Nicku

0 Kudos
Message 8 of 8
(4,551 Views)