06-10-2011 02:16 AM
Hi,
At the moment I am programming in LabVIEW but the more code I create, the more the PC is having a hard time processing it.
I have looked up the system requirements and it looks like I got the recommended specs.
2GHZ , 2GB RAM , 64Processor.
I was wondering if somebody could open the VI on there PC and see if it goes slow on there PC aswell.
The VI is attached.
06-10-2011 03:14 AM
Hi,
the first word that come in my mind is "WAAOOOOOOOOO !!!"
You're asking a wrong question : the problem is not to find the pc according to your configuration, but to code the program according to your PC (and to Labview rules) !
1) a Vi that make 2Mo is not a vi, it's a mistake, a monster, or whatever you want but not a vi !
2) a diagram which need Google Earth for being opened is not a diagram !
3) the word sub-vi is not a joke !
I suggest you to read the first step of Daqmx, to understand how a task work, and what it does :
for exemple, you don't need to create a task per line, you can create a task to write one or several ports !
I didn't found the courage to read your whole code, but I think your vi can take 100Ko (and not 2700 as yours)...
Best regards,
06-10-2011 03:52 AM
Thanks for the responds.
I must say, this is the first time I use a PXI as a solution, so I am very new to this. So I am learning as I go :manhappy: .
Isn't it so that I create my tasks only once ? On the left side of the while loop?
And to be honest, this is only half of the program. I should place 4 more cases and within those cases 10 more cases.
Brining the total program up to 44+44 =88 different cases.
Can u post an example of a program of the same size? Al the information I find is for small solutions but never a suitable example.
06-10-2011 04:05 AM - edited 06-10-2011 04:05 AM
Hi,
this is an exemple for writing 3 ports (3x8 lines) at the same time, each 200ms.
ONE task, so this is quick and efficient.
06-10-2011 04:11 AM
Is it possible to give some more information about the for loop?
And what is the blue line in the while loop? On the left of your writing VI?
Or can you upload the entire VI itself ?
06-10-2011 04:16 AM
And I need to adres my outputs at the EXACT same time because I use them for a bus-system.
So I can't have 10ms delay or whatever, each channel needs it's own tasks and those tasks need to be created at the same time.
If NI can not give me that ( same goes for the ADC in the PXI, it only has 1 convertor in it) i will need to look for another hardware solution.
06-10-2011 04:37 AM
Hi,
the task is made for writing at the same time ! There is no delay between writing the fist line of port0 and writing the last line of port 3 !
Contrary to mine, your code doesn't guaranty that each line are written at the same time.
In the while loop, I convert an array of bool in integer, and build an array of integer (blue line), that is written by my task.
The picture I attached is a Snippet : save it, and drag and drop it into a blank diagram, this will generate the vi.
Best regards,
06-10-2011 06:12 AM
ow i was not aware of that.
the problem is that this is my last day here, so i can not convert my entire code to the new way of programming.
but atleast I know that it is not the PC itself but my silly way of programming that is the problem.
thanks for the support
06-10-2011 07:12 AM
In french, we say "il vaut mieux tard que jamais", which could be translated in english by it's better to understand now but late than never...
06-10-2011 07:35 AM
Indeed, it is one thing doing something wrong and knowing what you did wrong.
It is an entire other thing to do something wrong and not knowing what went wrong.