LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

program that work in PXI platform doesn't work in PCI

Hi,
I have written a step type for TS in LabVIEW that makes a regulation of a motor through it's serial port. The measured signal is acquired with a 6025 card. This code was written and it's been working perfect for a long time in a PXI, Pentium III with 256MB. Now we have installed a couple of new desktop computers (Pentium 4, 2.4Ghz, 512Mb RAM) and we use the same cards, instead in the PXI platform we use the PCI platform. Exactly the same code is now giving me problems. Every X time the computers hangs and it's not even possible to use the Crtl+Alt+Del to close the task. This regulation program is a LV code where at the beginning there are some initializations and afterwards two while loops are executing in parallel. The first one checks if the measured value is within the limits and fix the motor regulation speed and the second one just give continously via serial port the new speed parameters. This desktop PC is quicker than the PXI, there must be something related to this point.
Some ideas?

Thanks,

Angel
0 Kudos
Message 1 of 11
(3,826 Views)
hi

If your program did execute all the way into the two while loops, you might wanna check if the two while loops having any loop-delays (say 100ms) within the loop?

I am just giving it a guess... maybe...


Best regards
ian.f koo
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 11
(3,791 Views)
Hi,
I'm using LV 7.0. In 7.1 I know it's possible to handle with this loop delays, but how to do this with 7.0? Do you have some example? Thanks,

Angel
0 Kudos
Message 3 of 11
(3,788 Views)
hi Angel,

Please see attached image...


Cheers!
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 11
(3,784 Views)
Hi again,
yes, I had already written those delays. I thought you were talking about those Time Critical loop function of 7.1.
0 Kudos
Message 5 of 11
(3,781 Views)
hi Angel,

Does the program executes into the while loops?
How about the device number for your 6025 card? Have you got it correctly (you may check using MAX

Sorry but I really having no clues at the moment... hopefully someone (with clearer mind) could gives you some 🙂

If your code isn't too big, perhaps you wanna put it up here, and I believe someone, if not me, would be able to spot something, if it is really the code's problem.

Cheers & good luck!
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 6 of 11
(3,777 Views)
Hi Ian,
I cannot see any solution.... The same code running perfect in a PXI platform and with PCI crashes. The thing is this code is running for a while in the PCI computer, but after a while leaves everything hangt, also computer. I hope some Guru can have a look and give me positive news.
The main Vi is "Test AUTO Tilt Adjustment -....vi"
Thanks in advance,

Angel
0 Kudos
Message 7 of 11
(3,755 Views)
Sorry, I've forgotten the attachment
0 Kudos
Message 8 of 11
(3,755 Views)
test
0 Kudos
Message 9 of 11
(3,713 Views)
Hello,

i think you have a hardware and not a software problem.
There could be a error with your hardware resources.
You can try to change the slot of your 6025 card.

Second possibility:

SAVE EVERYTHING!!!

If this doesn't help, you can try to change the driver of your "computer" in the device-manager.

right click->details->search in a list->all hardware of this class->"standard pc"
(You could find other names. I have only the german version of windows.)

After this way you have to reboot your system and windows installs your complete hardware like the first time.

After this change your pc could have problems with automatically shutdown.
You have to decide if this is really a problem.

I hope i could help you.

Regards

Markus Weigl
NI
0 Kudos
Message 10 of 11
(3,657 Views)