LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I HAVE A VI BUT I'M GETTING SOME ERRORS.I TRIED DEBUGGING THEM BUT COULDN'T SOLVE ALL THE ERRORS.

THIS VI IS RELATED TO TESTING FLOW OF FLUID AND SIMULTANEOUSLY GIVING OUT CURRENT.CAN ANYBODY HELP ME OUT SOLVING THE ERRORS??
0 Kudos
Message 1 of 12
(3,451 Views)
Your basic problem is that the program calls two different VIs that return different data types. One, TSI4000SerialRead returns an array. The other, CME60AFlowmeterReading returns a scalar. The program has them connected to the same place and that is not allowed. I suspect that the fix is to modify TSI4000SerialRead to return just a scalar but without the instrument or a lot more details on it, I wouldn't know what would be required. The program itself is one that I would normally use as an example in how NOT to program LabVIEW. All of the nested sequence structures and local variables make the program very difficult to understand, debug, and maintain. I wish you luck.

p.s.

Please stop shouting your questions - that's what all caps means;)
Message 2 of 12
(3,451 Views)
I thought he was using an ASR-33.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 12
(3,451 Views)
Talk about a blast from the past. I wonder how many people here actually know what one of those is, let alone ever used one? Thanks, Ben.
0 Kudos
Message 4 of 12
(3,451 Views)
Thanks Dennis for your valuable feedback.
Now my program is supposed to read only TSI4000 flowmeter.So I'm not concerned with CME60A.Moreover,the large number of errors causes a lot of trouble in debugging.I also have an exe file related to this program but it does not read any data through the serial port.I tried installing VISA but that causes the program to stop executing and terminates giving errors.I checked in the other computer where this program has been installed.No VISA has been installed over there and still the flowmeter is able to read the data and the program is able to output the current through CB-68LP connector block.
I'm attaching that exe file.
0 Kudos
Message 5 of 12
(3,451 Views)
VISA has to be installed on the other computer. One thing to try is to go to the other computer and copy the file visaconf.ini from VXIpnp\WinNT\NIVisa and copy it to the same location on the other computer. The actual VISA resource name for com port 1 is actually ASRL1::INSTR and com port 2 is ASRL2::INSTR. You should be able on the executable to select these names but the actual source code is so convoluted with loacal variables, etc., you might have to have the VISA aliases created. Copying visaconf.ini will do this. Another thing to check is the serial settings of the flowmeter. The program sets the port for the TSI4000 to 38400 baud, 8 data bits, no parity, and 1 stop bit. It might also expect this to be on com port 2 and no other.
0 Kudos
Message 6 of 12
(3,451 Views)
Hi Dennis,
Thanks again for your extreme early reply.I copied the visaconf.ini file from the original machine to this one.And also changed the port settings as described above but nothing worked.I found that VISA has been installed in the original computer but I'm not able to get it's version.I installed VISA 320runtime but after installing it, my program stopped executing. Then, after uninstalling that one, I installed VISA 2.0.1 but that does not help.Now I would like to have a voice conversation with you so that i can explain you the problem more accurately and you can guide me better.Is it possible for you to give me your contact number so that I can call you up?I would be highly obliged to talk to you.
Thanking You
Vivek

0 Kudos
Message 7 of 12
(3,451 Views)
I'm afraid that I'm unwilling to post my phone number on a public forum. Do you have a local NI Sales engineer? Getting him or her to visit you might be the best solution unless you're willing to hire a LabVIEW consultant for a few hours.

One last suggestion that I have is to try communicating with the device using Hyperterminal. If that works, at least you would know that the problem is at least isolated to the VISA installation or the LabVIEW program itself.
0 Kudos
Message 8 of 12
(3,451 Views)
Never mind Dennis.I can understand that it's unsafe to post your number here.Well about the device,I already tried communicating with my flowmeter via serial port using a software that came with my device and it's working fine.Also the exe file is working fine in other computer.So it doesn't seem to be exe file's probelm either.
Moreover after installing various VISA RUNTIME ENGINES, the program does not start.So I cannot reach at any conclusion at this moment.But anyways, thanks so much for your profound interest in my problem.
0 Kudos
Message 9 of 12
(3,451 Views)
I installed your executable file and found out that it requires 2 software packages: NI-DAQ, NI-VISA and the LV Run-Time Engine. If you install these on a clean computer, then your executable should open without errors. I'm not sure if it sends any data but I know there are no errors when opening it.
0 Kudos
Message 10 of 12
(3,451 Views)