Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

no communication to serial device after buit application

Solved!
Go to solution

Hi,

 

I have some trouble with my fresh built application.

 

The little program uses serial/visa communication to gather data from a device via serial port.

 

Everything is working well on my development machine: The device is found and the COM port is assigned.

 

But when building an application and run it on the destination machine the serial device is not found.

 

So I built an application from the vi which is finding the communication port (e.g. COM4) to my device and it works properly on the desination machine.

 

Can you help me please.

 

development computer:

 - W7 32bit

 - LV 2012 Sp1

 - LV Run-Time 2012 SP1

 - NI-VISA 5.4

 - MAX 5.5

 - DAQmx 9.7

 

destination computer:

 - W7 64bit

 - LV Run-Time 2012 SP1 32bit

 - NI-VISA 16.0

 - MAX 16.0

 - DAQmx 16.0

 

Any hint is welcome.

 

Many Thanks and Best Regards,

Christian

 

 

0 Kudos
Message 1 of 8
(3,163 Views)

My initial guess is that you have the serial port hardcoded and it is the wrong port.  Would need to see code in order to provide any additional help.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(3,160 Views)

Hi Crossrulz,

 

thank you much for your reply.

 

No, the serial port is automaticaly assigned by using VISA-find and sending *IDN? Query in a For Loop. (I attached a picture).

 

On the development computer the device is found on different serial ports.

 

I tried a hardcoded version to comunicate to the known serial port (COM4) on the destination computer but this did not work.

 

Best Regards,

Christian

 

0 Kudos
Message 3 of 8
(3,150 Views)

did you install visa?

greetings from the Netherlands
0 Kudos
Message 4 of 8
(3,125 Views)

Hi guys,

 

I playd around a bit and noticed that the built application does not find my serial device when running on the development computer, too.

 

It is working well before the bult

 

Why can this happen?

 

Many Thanks,

Christian

0 Kudos
Message 5 of 8
(3,106 Views)

Hi,

 

when buiding an application from the vi that finds a serial device it works.

when using the same vi as SubVi it does not work after building an application.

 

Any hint is welcome.

0 Kudos
Message 6 of 8
(3,095 Views)

Why don't you upgrade / downgrade the VISA and DAQmx drivers on both the machines to be same?

0 Kudos
Message 7 of 8
(3,074 Views)
Solution
Accepted by topic author s1m0n

Hi grimmy123,

the problem occured on the development computer after building the application.

 

Enable debugging during application build solved that issue.

 

Many Thanks,

Christian

0 Kudos
Message 8 of 8
(3,065 Views)