03-13-2010 01:38 AM
I have labview vi for getting data from datalogger.
Firstly, it is excutable without error
, but when datalogger is connected to computer(serial port COM1), my labview vi shows the Error 1073807246.
I know a little about this error, it means open a visa that has been opened, but donot why error occurs when datalogger connect with computer.
I just copy this labview vi from previous lab computer, it did work well on that computer.
many thanks for any help.
Solved! Go to Solution.
03-13-2010 04:09 AM
As the error states, open your serial connection just once. You get this error if you try to open a serial connection that has been opened already. See here.
It looks like you have a loop around your code. If this loop executes several times either open the serial connection outside the loop or make sure you only open it at the first loop iteration.
Also make sure the serial port is not used by some other application like teraterm.
03-13-2010 01:46 PM
thanks
I check, no other application uses serial port.
The error always occurs once the serial port is connected to datlogger, otherwise, this vi is ok.
the datalogger I use is Campbell Scientific R23X, and supporting software is PC200W, I donot know that could be problem or not, in my precious pc, PC208W a different version supporting software is used.
many thanks for any help
03-13-2010 02:18 PM
03-13-2010 05:32 PM
Thanks Dennis, I try to state my problem and instrument I use as clearly as possible.
supporting software is for datalogger, I use this software to connect my datalogger with PC(please see image), otherwise my labview file cannot read any data from serial port.
But it looks like, once datalogger is connected to COM1 port, labview file error occurs when I run it.
these datalogger and labview file did work well on previous PC, the only difference I think is the way how datalooger is wired to PC port. on older pc, datalogger RS232 port connecting to PC com port firstly by common 9-pin wire and then self-made 9-pin wire which connect to both pc com1 and com2 port. on new PC, I just directly connect datalogger with PC by this white 9-pin wire.
I donot know whether this will cause errors, I read old thread, some one has the same error for his iv, but finnally he found out the straight throught cable he used causes this error, he changed to crossover cable, it is ok.
03-13-2010 07:11 PM - edited 03-13-2010 07:12 PM
It's pretty clear that you have some major, major misconceptions. The software from the vendor is not required for a LabVIEW program and in fact is causing the conflict. Windows will not allow more than a single program access to com ports and as long as you remain convinced that you have to keep running that program, the LabVIEW program will never run. The other pc is certainly set up to use one com port for that program and one for LabVIEW.
If in fact the other program is required, then the LabVIEW program was not written to be a complete control program.
03-14-2010 04:16 PM
Many thanks for your help.
Now I can understand why two com port in previous pc and that self-made wire were used. datalogger is connected to COM1, and by that self-made wire, data at the same time also transmit to COM2 for labview to read, I think that should be how they work on previous pc.
Thanks very much again.